/*
Purpose: Styles for Vibe Coding page - dark mode, minimalist design
Author: Minds4AI Team
Last Modified: 2025-01-26
*/

/* === ROOT VARIABLES === */
:root {
    --vibe-dark-bg: #0A0A0A;
    --vibe-section-bg: #111111;
    --vibe-card-bg: #1A1A1A;
    --vibe-purple: #7C3AED;
    --vibe-blue: #3B82F6;
    --vibe-accent: #06B6D4;
    --vibe-text-white: #FFFFFF;
    --vibe-text-gray: #D1D5DB;
    --vibe-text-muted: #9CA3AF;
    --vibe-border: #2D2D2D;
    --vibe-gradient: linear-gradient(135deg, var(--vibe-purple) 0%, var(--vibe-blue) 100%);
}

/* === HERO SECTION === */
.vibe-hero {
    background: var(--vibe-dark-bg);
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.vibe-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
}

.vibe-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.vibe-hero-left h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--vibe-text-white);
}

.vibe-hero-left h1 .gradient-text {
    background: var(--vibe-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vibe-hero-left .subhead {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--vibe-text-gray);
    margin-bottom: 20px;
}

.vibe-hero-left .description {
    font-size: 1.1rem;
    color: var(--vibe-text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 500px;
}

.vibe-cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.vibe-btn {
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.vibe-btn-primary {
    background: var(--vibe-gradient);
    color: var(--vibe-text-white);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.vibe-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
}

.vibe-btn-secondary {
    background: transparent;
    color: var(--vibe-text-white);
    border: 2px solid var(--vibe-border);
}

.vibe-btn-secondary:hover {
    border-color: var(--vibe-purple);
    background: rgba(124, 58, 237, 0.1);
}

/* === CODE DEMO SECTION === */
.vibe-code-demo {
    background: var(--vibe-card-bg);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--vibe-border);
    position: relative;
    overflow: hidden;
}

.vibe-code-demo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: linear-gradient(90deg, #FF5F56 0%, #FFBD2E 33%, #27CA3F 66%);
    border-radius: 16px 16px 0 0;
}

.vibe-code-demo::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 16px;
    width: 12px;
    height: 12px;
    background: #FF5F56;
    border-radius: 50%;
    box-shadow: 20px 0 0 #FFBD2E, 40px 0 0 #27CA3F;
}

.code-content {
    margin-top: 40px;
    font-family: 'Fira Code', 'Monaco', 'Menlo', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: var(--vibe-text-gray);
    background: var(--vibe-dark-bg);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
}

.code-line {
    opacity: 0.4;
    transition: opacity 0.5s ease;
}

.code-line.highlight {
    opacity: 1;
    background: rgba(124, 58, 237, 0.1);
    margin: 0 -20px;
    padding: 0 20px;
    border-left: 3px solid var(--vibe-purple);
}

.code-keyword { color: #F472B6; }
.code-string { color: #34D399; }
.code-property { color: #60A5FA; }
.code-value { color: #FBBF24; }

/* === HOW IT WORKS SECTION === */
.vibe-how-it-works {
    background: var(--vibe-section-bg);
    padding: 100px 0;
}

.vibe-section-header {
    text-align: center;
    margin-bottom: 80px;
}

.vibe-section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--vibe-text-white);
    margin-bottom: 16px;
}

.vibe-section-header p {
    font-size: 1.2rem;
    color: var(--vibe-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.vibe-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.vibe-step {
    background: var(--vibe-card-bg);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--vibe-border);
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
}

.vibe-step:hover {
    transform: translateY(-8px);
    border-color: var(--vibe-purple);
}

.vibe-step-number {
    width: 60px;
    height: 60px;
    background: var(--vibe-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--vibe-text-white);
    margin: 0 auto 24px;
}

.vibe-step h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--vibe-text-white);
    margin-bottom: 16px;
}

.vibe-step p {
    color: var(--vibe-text-muted);
    line-height: 1.6;
}

/* === TRY IT SECTION === */
.vibe-try-it {
    background: var(--vibe-dark-bg);
    padding: 100px 0;
    text-align: center;
}

.vibe-try-it-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
}

.vibe-try-it h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--vibe-text-white);
    margin-bottom: 24px;
}

.vibe-try-it p {
    font-size: 1.2rem;
    color: var(--vibe-text-muted);
    margin-bottom: 40px;
}

/* === QUICK LINKS SECTION === */
.vibe-quick-links {
    background: var(--vibe-section-bg);
    padding: 100px 0;
}

.vibe-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

.vibe-link-card {
    background: var(--vibe-card-bg);
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid var(--vibe-border);
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    color: var(--vibe-text-white);
}

.vibe-link-card:hover {
    transform: translateY(-8px);
    border-color: var(--vibe-purple);
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.2);
}

.vibe-link-icon {
    width: 60px;
    height: 60px;
    background: var(--vibe-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 1.5rem;
}

.vibe-link-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.vibe-link-card p {
    color: var(--vibe-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* === VIDEO MODAL === */
.vibe-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.vibe-modal.active {
    display: flex;
}

.vibe-modal-content {
    background: var(--vibe-card-bg);
    border-radius: 16px;
    padding: 40px;
    max-width: 800px;
    width: 90%;
    position: relative;
}

.vibe-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--vibe-text-white);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.vibe-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.vibe-video-placeholder {
    width: 100%;
    height: 400px;
    background: var(--vibe-dark-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vibe-text-muted);
    font-size: 1.1rem;
    border: 2px dashed var(--vibe-border);
}

/* === TESTIMONIALS SECTION === */
.vibe-testimonials {
    background: var(--vibe-section-bg);
    padding: 100px 0;
    position: relative;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.testimonials-carousel {
    position: relative;
    background: var(--vibe-card-bg);
    border-radius: 20px;
    padding: 60px;
    border: 1px solid var(--vibe-border);
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
    width: 300%;
}

.testimonial-slide {
    width: 33.333%;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.testimonial-slide.active {
    opacity: 1;
}

.testimonial-quote {
    text-align: center;
    margin: 0;
}

.testimonial-quote p {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--vibe-text-white);
    margin-bottom: 30px;
    font-style: italic;
    position: relative;
}

.testimonial-quote p::before {
    content: '"';
    font-size: 4rem;
    color: var(--vibe-purple);
    position: absolute;
    top: -20px;
    left: -40px;
    font-family: serif;
    opacity: 0.3;
}

.testimonial-quote p::after {
    content: '"';
    font-size: 4rem;
    color: var(--vibe-purple);
    position: absolute;
    bottom: -40px;
    right: -40px;
    font-family: serif;
    opacity: 0.3;
}

.testimonial-attribution {
    font-size: 1.1rem;
    color: var(--vibe-accent);
    font-weight: 600;
    font-style: normal;
}

.testimonials-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.testimonial-btn {
    background: var(--vibe-purple);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.testimonial-btn:hover,
.testimonial-btn:focus {
    background: var(--vibe-blue);
    transform: scale(1.1);
    outline: 2px solid var(--vibe-accent);
    outline-offset: 2px;
}

.testimonial-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.testimonials-dots {
    display: flex;
    gap: 12px;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: var(--vibe-border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot.active,
.testimonial-dot:hover,
.testimonial-dot:focus {
    background: var(--vibe-purple);
    transform: scale(1.2);
    outline: 2px solid var(--vibe-accent);
    outline-offset: 2px;
}

/* Mobile Stacked View */
.testimonials-mobile {
    display: none;
    gap: 30px;
}

.testimonial-card {
    background: var(--vibe-card-bg);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid var(--vibe-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.1);
}

.testimonial-card .testimonial-quote p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.testimonial-card .testimonial-quote p::before,
.testimonial-card .testimonial-quote p::after {
    display: none;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .vibe-hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        padding: 0 20px;
    }
    
    .vibe-hero-left h1 {
        font-size: 2.5rem;
    }
    
    .vibe-hero-left .subhead {
        font-size: 1.25rem;
    }
    
    .vibe-cta-buttons {
        justify-content: center;
    }
    
    .vibe-steps {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .vibe-links-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .vibe-section-header h2 {
        font-size: 2rem;
    }
    
    .vibe-try-it h2 {
        font-size: 2rem;
    }
    
    .vibe-modal-content {
        padding: 20px;
        margin: 20px;
    }
    
    .vibe-video-placeholder {
        height: 250px;
    }
    
    /* Testimonials Mobile */
    .testimonials-carousel {
        display: none;
    }
    
    .testimonials-mobile {
        display: flex;
        flex-direction: column;
        padding: 0 20px;
    }
    
    .testimonial-card {
        padding: 30px 20px;
    }
    
    .testimonials-container {
        padding: 0;
    }
}

@media (max-width: 480px) {
    .vibe-hero-left h1 {
        font-size: 2rem;
    }
    
    .vibe-btn {
        padding: 14px 24px;
        font-size: 0.9rem;
    }
    
    .vibe-step,
    .vibe-link-card {
        padding: 30px 20px;
    }
    
    .testimonial-card .testimonial-quote p {
        font-size: 1.1rem;
    }
    
    .testimonial-attribution {
        font-size: 1rem;
    }
}