/* ========================================
   FEATURED PROJECT STYLES
   Marvel Quiz Game Component
   ======================================== */

/* Featured Section */
.flagship-demo {
    padding: 6rem 2rem 8rem;
    background: radial-gradient(circle at top right, rgba(80, 200, 120, 0.08) 0%, transparent 50%),
                radial-gradient(circle at bottom left, rgba(53, 94, 59, 0.08) 0%, transparent 50%);
    position: relative;
    overflow: hidden;
}

.flagship-content {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(80, 200, 120, 0.1);
    border: 1px solid rgba(80, 200, 120, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--light-contrast) 0%, rgba(245, 245, 245, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* Demo Showcase Container */
.demo-showcase {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 4rem 3rem;
    margin: 3rem 0;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.demo-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary-accent) 50%, var(--primary) 100%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Project Content Grid */
.project-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 3rem;
}

.project-info {
    padding-right: 1rem;
}

.project-preview {
    padding-left: 1rem;
    position: sticky;
    top: 2rem;
}

/* Quiz Embed Container */
.quiz-embed-container {
    width: 100%;
    max-height: 85vh;
    min-height: 400px;
    height: auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 1rem;
    margin-bottom: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.quiz-preview-screen {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

/* Quiz Header */
.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.quiz-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--light-contrast);
    margin: 0;
}

.quiz-stats {
    display: flex;
    gap: 0.5rem;
}

.stat-badge {
    background: rgba(80, 200, 120, 0.2);
    color: var(--primary);
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(80, 200, 120, 0.3);
    backdrop-filter: blur(10px);
}

/* Quiz Content */
.quiz-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 1rem;
}

.question-container {
    margin-bottom: 2rem;
}

.question-number {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

.question-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--light-contrast);
    line-height: 1.4;
}

/* Quiz Options */
.quiz-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.quiz-option {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    font-size: 0.95rem;
    color: var(--light-contrast);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
}

.quiz-option:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(80, 200, 120, 0.4);
    transform: translateY(-2px);
}

.quiz-option.correct {
    background: rgba(80, 200, 120, 0.2);
    border-color: var(--primary);
}

.quiz-option.incorrect {
    background: rgba(255, 82, 82, 0.2);
    border-color: #ff5252;
}

/* Quiz Progress */
.quiz-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.btn-next {
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary-accent) 100%);
    color: var(--accent-black);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(80, 200, 120, 0.3);
}

/* Pause Overlay */
.pause-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 11, 11, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.quiz-embed-container:hover .pause-overlay {
    opacity: 1;
    pointer-events: all;
}

.pause-content {
    text-align: center;
}

.pause-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.pause-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--light-contrast);
    margin-bottom: 0.5rem;
}

.pause-subtext {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .flagship-demo {
        padding: 4rem 1.5rem 6rem;
    }
    
    .demo-showcase {
        padding: 3rem 2rem;
        margin: 2rem 0;
    }
    
    .project-content {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .flagship-demo {
        padding: 3rem 1rem 4rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .demo-showcase {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .project-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .project-info, .project-preview {
        padding: 0;
    }
    
    .project-preview {
        position: static;
    }
    
    .quiz-options {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .quiz-option {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .flagship-demo {
        padding: 2rem 0.75rem 3rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .demo-showcase {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }
    
    .quiz-embed-container {
        min-height: 350px;
        padding: 0.75rem;
    }
    
    .quiz-content {
        padding: 1.5rem 0.75rem;
    }
    
    .question-text {
        font-size: 1.1rem;
    }
    
    .quiz-option {
        padding: 0.625rem;
        font-size: 0.8rem;
    }
}
