* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    background: #f8f8f8;
    color: #1a1a1a;
    line-height: 1.5;
    min-height: 100vh;
    min-height: 100%;
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}


/* Hero Section */
.quiz-hero {
    position: relative;
    height: 320px;
    background-image: url('../images/hero-vegas.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1a1a; /* Fallback if image doesn't load */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 102, 255, 0.3));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-logo-link {
    display: inline-block;
    text-decoration: none;
    margin-bottom: 12px;
}

.hero-logo {
    font-size: 64px;
    font-weight: 900;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    letter-spacing: -2px;
    line-height: 1;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.quiz-wrapper {
    min-height: calc(100vh - 240px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -80px;
    padding: 0 24px 60px;
    width: 100%;
}

.quiz-container {
    max-width: 680px;
    width: 100%;
    background: white;
    padding: 56px 48px;
    border-radius: 2px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    position: relative;
    z-index: 3;
}

/* Progress Bar - Bold Blue Line */
.progress-section {
    margin-bottom: 48px;
}

.progress-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 16px;
}

.progress-bar {
    height: 4px;
    background: #e8e8e8;
    position: relative;
    border-radius: 2px;
}

.progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: #0066FF;
    transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 2px;
}

/* Question */
.question-section {
    margin-bottom: 40px;
}

.question-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    line-height: 1.1;
    letter-spacing: -0.8px;
}

.question-subtitle {
    font-size: 17px;
    color: #666;
    line-height: 1.5;
    font-weight: 400;
}

/* Options - Card Grid (Visual Interest) */
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* Single column for questions with many options */
.options-grid.single-column {
    grid-template-columns: 1fr;
}

.option-card {
    background: #fafafa;
    border: 2px solid #e8e8e8;
    padding: 28px 24px;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.option-card:hover {
    border-color: #0066FF;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.12);
}

.option-card.selected {
    border-color: #0066FF;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.15);
}

.option-card.selected::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #0066FF;
}

.option-card.selected::after {
    content: "✓";
    position: absolute;
    top: 16px;
    right: 16px;
    width: 24px;
    height: 24px;
    background: #0066FF;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.option-label {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
    letter-spacing: -0.2px;
}

.option-description {
    font-size: 14px;
    color: #999;
    line-height: 1.4;
}

/* Icon styling */
.option-icon {
    width: 24px;
    height: 24px;
    stroke: #999;
    stroke-width: 2;
    fill: none;
    transition: stroke 0.2s ease;
    flex-shrink: 0;
}

.option-card:hover .option-icon {
    stroke: #0066FF;
}

.option-card.selected .option-icon {
    stroke: #0066FF;
}

/* Image background option cards */
.option-card.has-image {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 160px;
    overflow: hidden;
    background-color: #2a2a2a;
}

.option-card.has-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    transition: background 0.2s ease;
    z-index: 1;
}

.option-card.has-image:hover::before {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.8), rgba(0, 102, 255, 0.6));
}

.option-card.has-image.selected::before {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.85), rgba(0, 102, 255, 0.7));
}

.option-card.has-image .option-content {
    position: relative;
    z-index: 2;
}

.option-card.has-image .option-label {
    color: white;
}

.option-card.has-image .option-description {
    color: rgba(255, 255, 255, 0.9);
}

.option-card.has-image .option-icon {
    stroke: white;
}

.option-card.has-image.selected::after {
    background: white;
    color: #0066FF;
}

.option-card.has-image.selected::before {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.85), rgba(0, 102, 255, 0.7));
}

/* Icon + text layout */
.option-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.option-text {
    flex: 1;
}

/* Multi-select styling */
.options-grid.multi-select .option-card.selected::after {
    content: "✓";
}

/* Optional Details Section */
.optional-section {
    margin-top: 56px;
    padding-top: 48px;
    border-top: 2px solid #e8e8e8;
}

.optional-badge {
    display: inline-block;
    font-size: 10px;
    color: #0066FF;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-bottom: 20px;
    padding: 6px 12px;
    background: rgba(0, 102, 255, 0.08);
    border-radius: 2px;
}

.optional-label {
    display: inline-block;
    font-size: 10px;
    color: #0066FF;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-bottom: 20px;
    padding: 6px 12px;
    background: rgba(0, 102, 255, 0.08);
    border-radius: 2px;
}

.optional-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    letter-spacing: -0.4px;
}

.optional-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 24px;
}

.text-input {
    width: 100%;
    min-height: 140px;
    padding: 20px;
    border: 2px solid #e8e8e8;
    border-radius: 2px;
    font-family: inherit;
    font-size: 16px;
    color: #1a1a1a;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.2s ease;
}

.text-input:focus {
    outline: none;
    border-color: #0066FF;
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.08);
}

.text-input::placeholder {
    color: #aaa;
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: #999;
    margin-top: 8px;
    font-weight: 500;
}

/* Navigation */
.quiz-navigation {
    margin-top: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.nav-buttons-right {
    display: flex;
    gap: 16px;
    margin-left: auto;
}

.btn {
    padding: 18px 36px;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.btn-start-over {
    background: transparent;
    color: #999;
    border: none;
    padding: 12px 20px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.btn-start-over:hover {
    color: #0066FF;
}

.btn-back {
    background: transparent;
    color: #666;
    border: 2px solid #e8e8e8;
}

.btn-back:hover {
    border-color: #999;
    color: #1a1a1a;
}

.btn-next {
    background: #0066FF;
    color: white;
    flex: 1;
    max-width: 280px;
    margin-left: auto;
}

.btn-next:not(:disabled):hover {
    background: #0052CC;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.btn-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-btn-back,
.nav-btn-next {
    padding: 18px 36px;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.nav-btn-back {
    background: transparent;
    color: #666;
    border: 2px solid #e8e8e8;
}

.nav-btn-back:hover {
    border-color: #999;
    color: #1a1a1a;
}

.nav-btn-next {
    background: #0066FF;
    color: white;
    flex: 1;
    max-width: 280px;
    margin-left: auto;
}

.nav-btn-next:not(:disabled):hover {
    background: #0052CC;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.nav-btn-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Warning Toast */
.warning-toast {
    position: fixed;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: white;
    padding: 16px 28px;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.warning-toast.show {
    opacity: 1;
}

/* Loading Screen */
#quiz-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.loading-content {
    text-align: center;
    max-width: 600px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(255, 193, 7, 0.1);
    border-top-color: #FFC107;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 40px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-title {
    font-size: 36px;
    font-weight: 700;
    color: #FFC107;
    margin-bottom: 12px;
    text-align: center;
}

.loading-subtitle {
    font-size: 18px;
    color: #999;
    margin-bottom: 60px;
    text-align: center;
}

.trivia-container {
    max-width: 600px;
    width: 100%;
    padding: 30px;
    background: rgba(255, 193, 7, 0.05);
    border-left: 4px solid #FFC107;
    border-radius: 8px;
    margin-bottom: 40px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.trivia-label {
    font-size: 14px;
    font-weight: 600;
    color: #FFC107;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.trivia-fact {
    font-size: 18px;
    line-height: 1.6;
    color: #e0e0e0;
    transition: opacity 0.3s ease;
    margin: 0;
}

.trivia-fact.fade-out {
    opacity: 0;
}

.loading-time {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    html, body {
        width: 100vw;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .quiz-hero {
        height: 240px;
        width: 100%;
    }
    
    .hero-logo {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .quiz-wrapper {
        margin-top: -60px;
        padding: 0 16px 32px;
        width: 100%;
        min-width: 0;
    }
    
    .quiz-container {
        padding: 32px 20px;
        width: 100%;
        min-width: 0;
    }
    
    .question-title {
        font-size: 28px;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .option-card {
        padding: 24px 20px;
        min-height: 100px;
    }
    
    .btn-next,
    .nav-btn-next {
        max-width: 100%;
    }
    
    .loading-title {
        font-size: 28px;
    }
    
    .loading-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }
    
    .trivia-container {
        padding: 20px;
    }
    
    .trivia-fact {
        font-size: 16px;
    }
}

/* Smooth transitions between questions */
.question-container {
    animation: fadeInUp 0.4s ease-out;
}

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