/* ===================================
   CSS VARIABLES & RESET
   =================================== */
:root {
    /* Color Palette - Bold & Distinctive */
    --primary: #FF6B35;
    --primary-dark: #E85A2A;
    --secondary: #004E89;
    --secondary-dark: #003A68;
    --accent: #F7C948;
    --text-dark: #1A1A2E;
    --text-light: #6B7280;
    --bg-light: #FEFEFE;
    --bg-cream: #FFF8F0;
    --border: #E5E7EB;
    
    /* Typography */
    --font-display: 'Fraunces', serif;
    --font-body: 'Work Sans', sans-serif;
    
    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-light);
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===================================
   HEADER
   =================================== */
.site-header {
    background: white;
    border-bottom: 2px solid var(--border);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 900;
    color: var(--text-dark);
}

.logo .accent {
    color: var(--primary);
}

nav {
    display: flex;
    gap: 32px;
}

nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

nav a:hover {
    color: var(--primary);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    padding: 80px 0 100px;
    background: linear-gradient(135deg, var(--bg-cream) 0%, white 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 72px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.title-line {
    display: block;
}

.title-line.highlight {
    color: var(--primary);
    position: relative;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.7;
    max-width: 500px;
}

/* ===================================
   AD CONTAINER - CLEARLY MARKED
   =================================== */
.ad-container {
    margin: 32px 0;
    width: 100%;
    max-width: 728px;
}

.ad-placeholder {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px dashed var(--secondary);
    padding: 40px 20px;
    text-align: center;
    border-radius: 8px;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ad-placeholder p {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 8px;
}

.ad-placeholder small {
    font-size: 14px;
    color: var(--text-light);
}

/* ===================================
   CTA BUTTON
   =================================== */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--primary);
    color: white;
    padding: 18px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
    margin-top: 16px;
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.4);
}

.cta-button svg {
    transition: transform 0.3s ease;
}

.cta-button:hover svg {
    transform: translateX(4px);
}

/* ===================================
   HERO STATS
   =================================== */
.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 48px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-top: 8px;
    font-weight: 500;
}

/* ===================================
   HERO VISUAL - ANIMATED CARDS
   =================================== */
.quiz-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.preview-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
    animation: floatIn 0.6s ease-out forwards;
    opacity: 0;
}

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

.preview-card:hover {
    transform: translateY(-8px) scale(1.05);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.card-text {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 16px;
}

/* ===================================
   FEATURES SECTION
   =================================== */
.features {
    padding: var(--section-padding) 0;
    background: white;
}

.section-title {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: 32px;
    background: var(--bg-cream);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.15);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ===================================
   CATEGORIES PREVIEW
   =================================== */
.categories-preview {
    padding: var(--section-padding) 0;
    background: linear-gradient(to bottom, white, var(--bg-cream));
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 48px;
}

.category-tag {
    background: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-dark);
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    cursor: default;
}

.category-tag:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.cta-secondary {
    text-align: center;
}

.btn-secondary {
    display: inline-block;
    padding: 16px 48px;
    background: var(--secondary);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 18px;
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    transform: scale(1.05);
}

/* ===================================
   FOOTER
   =================================== */
.site-footer {
    background: var(--text-dark);
    color: white;
    padding: 40px 0;
    margin-top: 80px;
}

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

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 56px;
    }
    
    .quiz-preview {
        max-width: 400px;
        margin: 0 auto;
    }
    
    nav {
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 42px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-stats {
        gap: 24px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .ad-container {
        max-width: 100%;
    }
    
    nav {
        display: none;
    }
}

/* ===================================
   QUIZ PAGES STYLES
   =================================== */
.quiz-page {
    min-height: 100vh;
    background: var(--bg-cream);
}

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.page-header {
    text-align: center;
    margin-bottom: 32px;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.page-header p {
    font-size: 18px;
    color: var(--text-light);
}

/* Progress Bar */
.progress-container {
    background: white;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 32px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.progress-text {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-dark);
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #E5E7EB;
    border-radius: 50px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 50px;
    transition: width 0.4s ease;
}

/* Question Card */
.question-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 32px;
}

.question-category {
    display: inline-block;
    background: var(--bg-cream);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.question-text {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 32px;
    line-height: 1.4;
}

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

.option {
    display: flex;
    align-items: center;
    padding: 20px;
    background: var(--bg-cream);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.option:hover {
    border-color: var(--primary);
    background: white;
    transform: translateX(8px);
}

.option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 16px;
    cursor: pointer;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.btn-secondary-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.btn-secondary-link:hover {
    color: var(--primary);
}

/* Results Page */
.results-card {
    background: white;
    padding: 48px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.score-circle {
    width: 200px;
    height: 200px;
    margin: 0 auto 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.3);
}

.score-number {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 900;
    color: white;
    line-height: 1;
}

.score-label {
    color: white;
    font-size: 16px;
    margin-top: 8px;
    opacity: 0.9;
}

.results-title {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.results-subtitle {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 32px;
}

.share-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
}

.share-btn {
    padding: 12px 24px;
    border: 2px solid var(--border);
    background: white;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-dark);
}

.share-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.05);
}
