/**
 * En Masse - Components Stylesheet
 * Additional component styles
 */

/* ========================================================================
   Terminal Demo Component
   ======================================================================== */
.terminal-demo {
    background: rgba(15, 20, 25, 0.9);
    border: 1px solid var(--accent-color);
    border-radius: 12px;
    padding: 1.5rem;
    font-family: var(--font-mono);
    box-shadow: 0 8px 32px rgba(29, 209, 161, 0.2);
    max-width: 500px;
    margin: 0 auto;
}

.terminal-header {
    display: flex;
    gap: 8px;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(29, 209, 161, 0.2);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-color);
}

.terminal-dot:nth-child(2) {
    background: #fbbf24;
}

.terminal-dot:nth-child(3) {
    background: #ef4444;
}

.terminal-content {
    font-size: 0.9rem;
}

.terminal-line {
    margin: 0.75rem 0;
    opacity: 0;
    animation: typeIn 0.8s ease forwards;
}

.terminal-line:nth-child(1) { animation-delay: 0.5s; }
.terminal-line:nth-child(2) { animation-delay: 1s; }
.terminal-line:nth-child(3) { animation-delay: 1.5s; }
.terminal-line:nth-child(4) { animation-delay: 2s; }
.terminal-line:nth-child(5) { animation-delay: 2.5s; }

@keyframes typeIn {
    from { 
        opacity: 0; 
        transform: translateX(-10px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

.terminal-prompt {
    color: var(--accent-color);
    font-weight: bold;
}

.terminal-command {
    color: var(--text-light);
}

/* ========================================================================
   AI Chat Demo Component
   ======================================================================== */
.ai-chat-demo {
    background: rgba(15, 20, 25, 0.9);
    border: 1px solid var(--accent-color);
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
}

.chat-message {
    background: rgba(26, 35, 50, 0.8);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border-left: 3px solid var(--accent-color);
    opacity: 0.7;
    transition: all var(--transition-base);
}

.chat-message:hover {
    opacity: 1;
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(29, 209, 161, 0.2);
}

.chat-agent {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.chat-text {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========================================================================
   Service Grid
   ======================================================================== */
.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: var(--primary-color);
}

/* ========================================================================
   Hero Section Enhancements
   ======================================================================== */
.hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 2rem 0;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-actions {
    flex-wrap: wrap;
}

/* ========================================================================
   Showcase Section
   ======================================================================== */
.showcase-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.showcase-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.showcase-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.showcase-actions {
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* ========================================================================
   Form Messages
   ======================================================================== */
.form-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-message-success {
    background: rgba(72, 187, 120, 0.1);
    border: 1px solid #48bb78;
    color: #48bb78;
}

.form-message-error {
    background: rgba(245, 101, 101, 0.1);
    border: 1px solid #f56565;
    color: #f56565;
}

/* ========================================================================
   FAQ Styles
   ======================================================================== */
.faq-item {
    background: rgba(26, 35, 50, 0.8);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(29, 209, 161, 0.2);
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item:hover {
    border-color: var(--accent-color);
    transform: translateX(5px);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    color: var(--text-white);
    font-size: 1.2rem;
    font-weight: 600;
    transition: all var(--transition-base);
    font-family: inherit;
}

.faq-question:hover {
    background: rgba(29, 209, 161, 0.05);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: transform var(--transition-base);
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.faq-item.active .faq-answer {
    padding: 0 2rem 2rem;
    max-height: 500px;
}

/* ========================================================================
   Mobile Responsiveness Enhancements
   ======================================================================== */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .terminal-demo {
        max-width: 100%;
    }
    
    .ai-chat-demo {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .terminal-demo {
        padding: 1rem;
        font-size: 0.8rem;
    }
    
    .chat-message {
        padding: 0.75rem 1rem;
    }
}

/* ========================================================================
   Print Styles
   ======================================================================== */
@media print {
    .header,
    .mobile-menu,
    .mobile-menu-overlay,
    .hero-visual,
    .ai-chat-demo,
    .terminal-demo {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .container {
        max-width: 100%;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .btn {
        border: 1px solid #000;
    }
}
