/* ================= GLOBAL ================= */

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f4f6fb;
    color: #333;
}

section {
    padding: 70px 20px;
}

/* ================= HERO ================= */

.quiz-hero {
    background: linear-gradient(135deg, #4e73df, #1cc88a);
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.quiz-hero h1 {
    font-size: 40px;
    margin-bottom: 10px;
}

.quiz-hero p {
    font-size: 16px;
    opacity: 0.9;
}

/* ================= QUIZ GRID ================= */

.quiz-section {
    max-width: 1200px;
    margin: auto;
}

.quiz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

/* ================= QUIZ CARD ================= */

.quiz-card {
    background: white;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quiz-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

.quiz-card h3 {
    margin-bottom: 10px;
    color: #4e73df;
}

.quiz-meta {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    background: #eef2ff;
    color: #4e73df;
    margin-bottom: 10px;
}

/* ================= BUTTONS ================= */

.quiz-card button {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s ease;
    margin-top: 10px;
}

/* Start Button */
.start-btn {
    background: #1cc88a;
    color: white;
}

.start-btn:hover {
    background: #17a673;
}

/* Leaderboard Button */
.leaderboard-btn {
    background: #f59e0b;
    color: white;
}

.leaderboard-btn:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* ================= LOCKED SUNDAY ================= */

.locked {
    background: #fff3cd;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    color: #856404;
    margin-top: 10px;
    text-align: center;
}

.countdown {
    margin-top: 6px;
    font-weight: bold;
    color: #b45309;
}

/* ================= EMPTY ================= */

.empty-message {
    text-align: center;
    margin-top: 40px;
    font-size: 16px;
    color: #777;
}

@media (max-width: 768px) {
    section {
        padding: 56px 16px;
    }

    .quiz-hero {
        padding: 72px 16px;
    }

    .quiz-hero h1 {
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .quiz-hero h1 {
        font-size: 26px;
    }

    .quiz-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .quiz-card {
        padding: 18px;
    }
}