/* 
 * Quiz Culture Générale - Styles
 * culture-generale.chiffrex.fr
 * Design inspiré - Warm Cream & Gold
 */

/* ===== Import Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ===== Variables CSS ===== */
:root {
    /* Warm Color Palette */
    --primary: #C4973B;
    --primary-light: #D4A84C;
    --primary-dark: #A67C2E;
    --accent: #8B4513;
    --success: #5D8C3E;
    --error: #C45C4A;
    --warning: #D4A84C;

    /* Backgrounds */
    --bg-main: #F5E6C8;
    --bg-card: #FFFBF0;
    --bg-cream: #FAF3E3;
    --bg-dark: #2C2416;

    /* Text Colors */
    --text-primary: #2C2416;
    --text-secondary: #6B5D4D;
    --text-muted: #9A8B7A;
    --text-gold: #C4973B;

    /* Borders & Shadows */
    --border-color: #E8DCC8;
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;

    --shadow-sm: 0 2px 8px rgba(44, 36, 22, 0.06);
    --shadow-md: 0 4px 16px rgba(44, 36, 22, 0.08);
    --shadow-lg: 0 8px 32px rgba(44, 36, 22, 0.12);
    --shadow-xl: 0 16px 48px rgba(44, 36, 22, 0.15);

    /* Fonts */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --transition: all 0.25s ease;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-main);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

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

img {
    max-width: 100%;
    height: auto;
}

/* ===== Layout ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== Navbar ===== */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background: var(--bg-card);
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    margin: 0 16px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-logo {
    font-size: 1.75rem;
}

.navbar-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.navbar-menu {
    display: flex;
    gap: 8px;
}

.navbar-link {
    padding: 10px 20px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 50px;
    transition: var(--transition);
}

.navbar-link:hover,
.navbar-link.active {
    background: var(--bg-cream);
    color: var(--text-primary);
}

.navbar-auth {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-user {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.navbar-loading {
    font-size: 1rem;
    animation: pulse 1s ease infinite;
}

.btn-nav {
    padding: 10px 24px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    border-radius: 50px;
    transition: var(--transition);
}

.btn-nav-primary {
    background: var(--bg-dark);
    color: white;
}

.btn-nav-primary:hover {
    background: #3D3428;
    color: white;
}

/* ===== Hero Section ===== */
.hero {
    text-align: center;
    padding: 80px 24px 60px;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: var(--bg-card);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero h1 em {
    font-style: normal;
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.hero-stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Categories Section ===== */
.categories-section {
    padding: 40px 24px 60px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-top: -16px;
    margin-bottom: 40px;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 40px 24px;
}

.cta-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-xl);
    padding: 48px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
}

.cta-card h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 12px;
}

.cta-card p {
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Footer ===== */
.footer {
    margin-top: auto;
    padding: 32px 24px;
    background: var(--bg-card);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    margin: 16px;
    margin-bottom: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary);
}

/* ===== Header / Navbar ===== */
.header {
    background: var(--bg-card);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    margin: 16px;
    margin-bottom: 0;
}

.header-back {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
}

.header-back svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.header-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.header-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    background: var(--bg-cream);
    padding: 8px 16px;
    border-radius: 50px;
}

.timer-icon {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

/* ===== User Bar ===== */
.user-bar {
    background: var(--bg-card);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--border-radius-lg);
    margin: 16px;
    box-shadow: var(--shadow-sm);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.user-email {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.auth-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    padding: 10px 20px;
    border: 2px solid var(--primary);
    border-radius: 50px;
    transition: var(--transition);
}

.auth-link:hover {
    background: var(--primary);
    color: white;
}

/* ===== Progress Bar ===== */
.progress-container {
    padding: 20px 32px;
    margin: 0 16px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
}

.progress-text {
    font-size: 0.85rem;
    color: var(--text-gold);
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.progress-bar {
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

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

/* ===== Main Content ===== */
.main-content {
    flex: 1;
    padding: 32px;
}

/* ===== Hero Section ===== */
.home-hero {
    text-align: center;
    padding: 60px 24px;
}

.home-hero h1 {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.home-hero p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ===== Section Title ===== */
.section-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    padding: 0 32px;
}

/* ===== Question Section ===== */
.question-section {
    margin-bottom: 32px;
    text-align: center;
}

.question-text {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== Answer Options ===== */
.answers-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.answer-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px 24px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

.answer-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.answer-card.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(196, 151, 59, 0.08) 0%, rgba(196, 151, 59, 0.03) 100%);
}

.answer-card.selected .answer-check {
    opacity: 1;
    transform: scale(1);
}

.answer-card.correct {
    border-color: var(--success);
    background: rgba(93, 140, 62, 0.1);
}

.answer-card.incorrect {
    border-color: var(--error);
    background: rgba(196, 92, 74, 0.1);
}

.answer-text {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-primary);
}

.answer-check {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: var(--transition);
}

.answer-check svg {
    width: 14px;
    height: 14px;
    color: white;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 36px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: var(--font-sans);
}

.btn-primary {
    background: var(--bg-dark);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: #3D3428;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

.btn-icon {
    width: 18px;
    height: 18px;
}

/* ===== Footer Action ===== */
.footer-action {
    padding: 24px 32px;
    background: transparent;
}

/* ===== Category Cards ===== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding: 0 16px;
}

.category-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-color);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

.category-name {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: block;
}

.category-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== Results Page ===== */
.results-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-xl);
    padding: 48px 32px;
    text-align: center;
    margin-bottom: 32px;
    box-shadow: var(--shadow-lg);
}

.results-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.results-score {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.results-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.results-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-top: 32px;
    border-top: 2px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.results-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
}

/* ===== Leaderboard ===== */
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.leaderboard-item {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.leaderboard-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.leaderboard-rank {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.leaderboard-rank.gold {
    background: linear-gradient(135deg, #C4973B, #E6C068);
    color: white;
}

.leaderboard-rank.silver {
    background: linear-gradient(135deg, #9CA3AF, #D1D5DB);
    color: white;
}

.leaderboard-rank.bronze {
    background: linear-gradient(135deg, #CD7F32, #E6A65C);
    color: white;
}

.leaderboard-info {
    flex: 1;
}

.leaderboard-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.leaderboard-category {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.leaderboard-score {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
}

/* ===== Leaderboard Hero ===== */
.leaderboard-hero {
    text-align: center;
    padding: 48px 24px 32px;
}

.leaderboard-hero h1 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.leaderboard-hero p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* ===== Filter Bar ===== */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    padding: 20px 24px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.filter-bar label {
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.filter-bar .form-select {
    flex: 1;
    max-width: 300px;
}

/* ===== Podium ===== */
.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 48px;
    padding: 0 24px;
}

.podium-item {
    text-align: center;
    flex: 1;
    max-width: 160px;
}

.podium-avatar {
    font-size: 3rem;
    margin-bottom: 12px;
}

.podium-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.podium-score {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.podium-bar {
    height: 80px;
    background: var(--bg-card);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    box-shadow: var(--shadow-md);
}

.podium-gold .podium-bar {
    height: 120px;
    background: linear-gradient(180deg, #C4973B 0%, #E6C068 100%);
}

.podium-silver .podium-bar {
    height: 90px;
    background: linear-gradient(180deg, #9CA3AF 0%, #D1D5DB 100%);
}

.podium-bronze .podium-bar {
    height: 60px;
    background: linear-gradient(180deg, #CD7F32 0%, #E6A65C 100%);
}

/* ===== Forms ===== */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-sans);
    background: var(--bg-card);
    color: var(--text-primary);
    transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(196, 151, 59, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* ===== Alerts ===== */
.alert {
    padding: 20px 24px;
    border-radius: var(--border-radius);
    margin-bottom: 24px;
    font-weight: 500;
}

.alert-success {
    background: rgba(93, 140, 62, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
}

.alert-error {
    background: rgba(196, 92, 74, 0.1);
    color: var(--error);
    border: 1px solid var(--error);
}

/* ===== Status Badges ===== */
.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: rgba(196, 151, 59, 0.15);
    color: var(--primary-dark);
}

.status-approved {
    background: rgba(93, 140, 62, 0.15);
    color: var(--success);
}

.status-rejected {
    background: rgba(196, 92, 74, 0.15);
    color: var(--error);
}

/* ===== Loading ===== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }
}

.pulse {
    animation: pulse 0.6s ease;
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-muted);
}

.empty-state p {
    font-size: 1.1rem;
}

/* ===== Burger Menu ===== */
.navbar-burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.navbar-burger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.navbar-burger.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.navbar-burger.is-active span:nth-child(2) {
    opacity: 0;
}

.navbar-burger.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        padding: 16px 20px;
        margin: 0 12px;
    }

    .navbar-burger {
        display: flex;
        order: 2;
    }

    .navbar-brand {
        flex: 1;
        order: 1;
    }

    .navbar-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        order: 3;
        padding-top: 20px;
        gap: 8px;
    }

    .navbar-menu.is-active {
        display: flex;
    }

    .navbar-menu .navbar-link {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        background: var(--bg-cream);
        border-radius: var(--border-radius);
    }

    .navbar-auth {
        display: none;
        flex-direction: column;
        width: 100%;
        order: 4;
        padding-top: 16px;
        gap: 12px;
        text-align: center;
    }

    .navbar-auth.is-active {
        display: flex;
    }

    .navbar-auth .navbar-user {
        width: 100%;
    }

    .navbar-auth .btn-nav {
        width: 100%;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .home-hero h1 {
        font-size: 2rem;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .question-text {
        font-size: 1.35rem;
    }

    .results-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .header,
    .user-bar {
        margin: 12px;
        padding: 16px 20px;
    }

    .main-content {
        padding: 24px 16px;
    }

    /* Footer responsive */
    .footer {
        margin: 12px;
        margin-bottom: 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }

    .footer-links a {
        padding: 8px 0;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 900px;
    }
}

/* ===== Utilities ===== */
.text-center {
    text-align: center;
}

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

.text-right {
    text-align: right;
}

.mt-1 {
    margin-top: 12px;
}

.mt-2 {
    margin-top: 24px;
}

.mt-3 {
    margin-top: 36px;
}

.mb-1 {
    margin-bottom: 12px;
}

.mb-2 {
    margin-bottom: 24px;
}

.mb-3 {
    margin-bottom: 36px;
}

.hidden {
    display: none !important;
}