/* ============================================
   GENAI SECTIONS - Text Visibility & Alignment Fixes
   ============================================ */

/* Global alignment fixes */
.genai-process-flow .container,
.genai-image-demo .container,
.genai-chatbot-demo .container,
.genai-content-demo .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Process Section - Better text visibility */
.genai-process-flow .genai-section-badge {
    color: #667eea;
    font-weight: 800;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    border: 2px solid rgba(102, 126, 234, 0.4);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
}

.genai-process-flow .genai-process-title {
    color: #393285;
    text-align: center;
    background: linear-gradient(135deg, #393285 0%, #667eea 40%, #764ba2 70%, #f093fb 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.genai-process-flow .genai-process-subtitle {
    color: #393285;
    text-align: center;
    font-weight: 500;
    opacity: 0.85;
}

.genai-process-card-title {
    color: #393285;
    text-align: center;
    font-weight: 800;
}

.genai-process-card-desc {
    color: #393285;
    text-align: center;
    font-weight: 500;
    opacity: 0.85;
}

.genai-process-list li {
    color: #393285;
    font-weight: 600;
}

/* Image Generation Demo - Better text visibility */
.genai-image-demo .genai-section-badge {
    color: #f093fb;
    font-weight: 800;
}

.genai-image-demo .genai-demo-title {
    color: #ffffff;
    text-align: center;
}

.genai-image-demo .genai-demo-subtitle {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.genai-demo-tab {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
}

.genai-demo-tab.active,
.genai-demo-tab:hover {
    color: #ffffff;
}

.genai-demo-prompt-box .prompt-label {
    color: #667eea;
    font-weight: 800;
}

.genai-demo-prompt-box .prompt-text {
    color: rgba(255, 255, 255, 0.98);
    font-weight: 500;
}

.image-placeholder span {
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.image-meta span {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

/* ChatBot Demo - Better text visibility */
.genai-chatbot-demo .genai-section-badge {
    color: #667eea;
    font-weight: 800;
}

.genai-chatbot-demo .genai-demo-title {
    color: #ffffff;
    text-align: center;
}

.genai-chatbot-demo .genai-demo-subtitle {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.genai-chat-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
}

.genai-bot-name {
    color: #ffffff !important;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.genai-bot-status {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 600;
}

.genai-chat-badge {
    color: #ffffff !important;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.genai-message-text {
    color: rgba(255, 255, 255, 0.98) !important;
    font-weight: 500;
}

.genai-message-list .list-item {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500;
}

.genai-message-time {
    color: rgba(255, 255, 255, 0.7);
}

.genai-chat-input input {
    color: #ffffff;
    font-weight: 500;
}

.genai-chat-input input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.genai-suggestion-btn {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

.genai-suggestion-btn:hover {
    color: #ffffff;
}

/* Content Creation Demo - Better text visibility */
.genai-content-demo .genai-section-badge {
    color: #667eea;
    font-weight: 800;
}

.genai-content-demo .genai-demo-title {
    color: #ffffff;
    text-align: center;
}

.genai-content-demo .genai-demo-subtitle {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.genai-content-type-badge {
    color: #ffffff !important;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.genai-content-prompt {
    background: rgba(10, 14, 39, 0.8);
}

.genai-content-prompt .prompt-label {
    color: #667eea;
    font-weight: 800;
}

.genai-content-prompt .prompt-text-small {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

.genai-content-output .output-label {
    color: #f093fb;
    font-weight: 800;
}

.genai-content-output pre {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(10, 14, 39, 0.9);
    border-color: rgba(102, 126, 234, 0.3);
}

.genai-content-meta span {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* Ensure all section badges are properly aligned */
.genai-section-badge {
    display: inline-block;
    text-align: center;
    margin: 0 auto 25px;
}

/* Center all section headers */
.genai-demo-header {
    text-align: center !important;
}

.genai-demo-header > * {
    text-align: center !important;
}

/* Better spacing and alignment */
.genai-demo-tabs {
    justify-content: center;
    align-items: center;
}

.genai-output-showcase {
    align-items: stretch;
}

.genai-content-grid {
    align-items: stretch;
}

/* Responsive text sizes */
@media (max-width: 768px) {
    .genai-process-title,
    .genai-demo-title {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .genai-process-subtitle,
    .genai-demo-subtitle {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .genai-bot-name {
        font-size: 1.1rem;
    }
    
    .genai-bot-status {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .genai-process-title,
    .genai-demo-title {
        font-size: 1.75rem;
    }
    
    .genai-section-badge {
        font-size: 0.75rem;
        padding: 10px 20px;
    }
    
    .genai-demo-tab {
        font-size: 0.9rem;
        padding: 12px 18px;
    }
}
