/* Aviation Quiz Premium Styling */

/* Quiz Container */
.quiz-container {
    padding-top: 80px;
    min-height: 100vh;
    background: var(--stone-950);
}

/* Hero Section */
.quiz-hero {
    padding: 60px 32px 80px;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.12) 0%, 
        rgba(29, 78, 216, 0.08) 50%,
        rgba(15, 23, 42, 0.95) 100%);
    border-bottom: 1px solid rgba(250, 250, 249, 0.08);
    position: relative;
    overflow: hidden;
}

.quiz-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(29, 78, 216, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(29, 78, 216, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 24px;
    color: var(--blue-400);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.hero-text h1 {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 800;
    color: var(--stone-50);
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-text p {
    font-size: 18px;
    color: var(--stone-300);
    line-height: 1.6;
    max-width: 500px;
    font-weight: 500;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    background: linear-gradient(135deg, 
        rgba(250, 250, 249, 0.08) 0%, 
        rgba(250, 250, 249, 0.03) 100%);
    border: 1px solid rgba(250, 250, 249, 0.12);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 120px;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--blue-400);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 12px;
    color: var(--stone-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Start Screen */
.start-screen {
    padding: 60px 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.start-content {
    background: linear-gradient(135deg, 
        rgba(250, 250, 249, 0.05) 0%, 
        rgba(250, 250, 249, 0.02) 100%);
    border: 1px solid rgba(250, 250, 249, 0.1);
    border-radius: 24px;
    padding: 48px;
    backdrop-filter: blur(20px);
    text-align: center;
}

.quiz-preview h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--stone-50);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.quiz-preview p {
    font-size: 16px;
    color: var(--stone-300);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.preview-topics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.topic-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(250, 250, 249, 0.03);
    border: 1px solid rgba(250, 250, 249, 0.08);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.topic-item:hover {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.2);
}

.topic-item i {
    color: var(--blue-400);
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.topic-item span {
    color: var(--stone-200);
    font-weight: 500;
    font-size: 14px;
}

.quiz-rules {
    background: rgba(250, 250, 249, 0.03);
    border: 1px solid rgba(250, 250, 249, 0.08);
    border-radius: 16px;
    padding: 32px;
    text-align: left;
    margin-bottom: 40px;
}

.quiz-rules h3 {
    color: var(--stone-50);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.quiz-rules ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quiz-rules li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--stone-300);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
    line-height: 1.5;
}

.quiz-rules li::before {
    content: '✓';
    color: var(--blue-400);
    font-weight: 600;
    width: 16px;
    text-align: center;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    min-width: 200px;
}

/* Quiz Interface */
.quiz-interface {
    padding: 40px 32px;
    max-width: 900px;
    margin: 0 auto;
}

.quiz-progress {
    margin-bottom: 40px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.question-counter {
    font-size: 14px;
    color: var(--stone-400);
    font-weight: 600;
}

.time-remaining {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--blue-400);
    font-size: 14px;
    font-weight: 600;
}

.progress-bar {
    height: 6px;
    background: rgba(250, 250, 249, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--blue-500) 0%, var(--blue-400) 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
}

/* Question Card */
.question-card {
    background: linear-gradient(135deg, 
        rgba(250, 250, 249, 0.05) 0%, 
        rgba(250, 250, 249, 0.02) 100%);
    border: 1px solid rgba(250, 250, 249, 0.1);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(20px);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.question-category {
    padding: 6px 12px;
    background: rgba(59, 130, 246, 0.15);
    color: var(--blue-400);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.difficulty-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--stone-400);
    font-size: 12px;
    font-weight: 600;
}

.question-text {
    font-size: 24px;
    font-weight: 600;
    color: var(--stone-50);
    line-height: 1.4;
    margin-bottom: 32px;
    letter-spacing: -0.01em;
}

.answer-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

/* Stagger animation for answer options */
.answer-option:nth-child(1) { animation: slideInUp 0.4s ease 0.1s both; }
.answer-option:nth-child(2) { animation: slideInUp 0.4s ease 0.2s both; }
.answer-option:nth-child(3) { animation: slideInUp 0.4s ease 0.3s both; }
.answer-option:nth-child(4) { animation: slideInUp 0.4s ease 0.4s both; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.answer-option {
    padding: 20px 24px;
    background: rgba(250, 250, 249, 0.03);
    border: 2px solid rgba(250, 250, 249, 0.1);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.answer-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(59, 130, 246, 0.1), 
        transparent);
    transition: left 0.6s ease;
}

.answer-option:hover {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.answer-option:hover::before {
    left: 100%;
}

.answer-option.selected {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.15) 0%, 
        rgba(29, 78, 216, 0.1) 100%);
    border-color: var(--blue-500);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3);
}

.answer-option .option-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(250, 250, 249, 0.1);
    border-radius: 50%;
    font-weight: 600;
    font-size: 14px;
    color: var(--stone-400);
    margin-right: 16px;
    transition: all 0.2s ease;
}

.answer-option.selected .option-letter {
    background: var(--blue-500);
    color: white;
}

.answer-option:focus {
    outline: 2px solid var(--blue-500);
    outline-offset: 2px;
}

.btn:focus {
    outline: 2px solid var(--blue-500);
    outline-offset: 2px;
}

.answer-option {
    tabindex: 0;
}

.answer-option .option-text {
    color: var(--stone-200);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
}

.question-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Results Screen */
.results-screen {
    padding: 60px 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.results-content {
    background: linear-gradient(135deg, 
        rgba(250, 250, 249, 0.05) 0%, 
        rgba(250, 250, 249, 0.02) 100%);
    border: 1px solid rgba(250, 250, 249, 0.1);
    border-radius: 24px;
    padding: 48px;
    backdrop-filter: blur(20px);
    text-align: center;
}

.score-display {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 40px;
}

.score-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: conic-gradient(
        var(--blue-500) 0deg,
        var(--blue-500) calc(var(--score, 87) * 3.6deg),
        rgba(250, 250, 249, 0.1) calc(var(--score, 87) * 3.6deg),
        rgba(250, 250, 249, 0.1) 360deg
    );
    padding: 8px;
    position: relative;
}

.score-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--stone-900);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(250, 250, 249, 0.1);
}

.score-percentage {
    font-size: 36px;
    font-weight: 800;
    color: var(--blue-400);
    line-height: 1;
}

.score-label {
    font-size: 12px;
    color: var(--stone-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-top: 4px;
}

.score-details {
    text-align: left;
}

.score-details h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--stone-50);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.score-details p {
    font-size: 16px;
    color: var(--stone-300);
    line-height: 1.6;
    margin-bottom: 32px;
}

.score-breakdown {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(250, 250, 249, 0.05);
}

.breakdown-label {
    color: var(--stone-400);
    font-size: 14px;
    font-weight: 500;
}

.breakdown-value {
    color: var(--stone-100);
    font-size: 16px;
    font-weight: 600;
}

.results-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Footer Message */
.footer-message {
    margin-top: 60px;
    padding: 40px 32px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(29, 78, 216, 0.03) 100%);
    border-top: 1px solid rgba(250, 250, 249, 0.08);
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: center;
    justify-content: center;
}

.footer-content i {
    color: var(--blue-400);
    font-size: 20px;
    opacity: 0.8;
}

.footer-content p {
    font-size: 14px;
    color: var(--stone-300);
    font-weight: 500;
    line-height: 1.6;
    font-style: italic;
    max-width: 600px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-stats {
        flex-direction: row;
        justify-content: center;
    }
    
    .score-display {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    
    .score-details {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .quiz-hero {
        padding: 40px 20px 60px;
    }
    
    .start-content,
    .question-card,
    .results-content {
        padding: 32px 24px;
    }
    
    .hero-text h1 {
        font-size: 32px;
    }
    
    .question-text {
        font-size: 20px;
    }
    
    .preview-topics {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .results-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 640px) {
    .quiz-interface,
    .start-screen,
    .results-screen {
        padding: 40px 16px;
    }
    
    .question-actions {
        flex-direction: column;
        gap: 16px;
    }
    
    .question-actions .btn {
        width: 100%;
    }
}