/* =========================================================
   STUDYAGORA — DAILY QUIZ SEO HUB
   Path: /quiz/daily/style.css
   ========================================================= */

:root {
    --bg: #000000;
    --bg-soft: #080808;
    --card: #0b0b0b;
    --card-hover: #111111;

    --primary: #ff4ecd;
    --secondary: #b200ff;

    --text: #ffffff;
    --muted: #aaaaaa;
    --subtle: #cccccc;

    --border: rgba(255, 255, 255, 0.09);

    --shadow:
        0 12px 40px rgba(0, 0, 0, 0.55),
        0 0 30px rgba(178, 0, 255, 0.16);
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    background:
        radial-gradient(
            circle at top,
            #2b0040 0%,
            #120018 28%,
            #000000 70%
        );

    color: var(--text);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Oxygen,
        Ubuntu,
        Cantarell,
        Arial,
        sans-serif;

    line-height: 1.6;
}


/* =========================================================
   LINKS — GLOBAL
========================================================= */

a {
    color: inherit;
}

a:hover {
    color: inherit;
}


/* =========================================================
   MAIN WRAPPER
========================================================= */

.daily-page {
    width: 100%;
    max-width: 1100px;

    margin: 0 auto;
    padding: 0 20px;
}


/* =========================================================
   HEADER
========================================================= */

.daily-header {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 24px 0;
}

.back-link {
    color: var(--subtle);

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.back-link:hover {
    color: #ffffff;
    transform: translateX(-2px);
}

.brand {
    font-size: 18px;
    font-weight: 700;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--secondary)
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}


/* =========================================================
   HERO
========================================================= */

.hero-section {
    text-align: center;

    padding:
        60px 20px
        45px;
}

.eyebrow {
    display: inline-block;

    margin-bottom: 14px;

    color: var(--primary);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1.5px;
}

.hero-section h1 {
    max-width: 850px;

    margin:
        0 auto
        18px;

    font-size: clamp(
        34px,
        6vw,
        58px
    );

    line-height: 1.1;

    font-weight: 800;

    letter-spacing: -1px;

    background:
        linear-gradient(
            90deg,
            #ff4ecd,
            #b200ff,
            #ff9800
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.hero-description {
    max-width: 720px;

    margin:
        0 auto
        30px;

    color: var(--subtle);

    font-size: 17px;
}


/* =========================================================
   LATEST QUIZ
========================================================= */

.latest-card {
    width: 100%;
    max-width: 650px;

    margin: 35px auto 0;

    padding: 30px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 78, 205, 0.08),
            rgba(178, 0, 255, 0.08)
        ),
        var(--card);

    border:
        1px solid
        rgba(255, 78, 205, 0.18);

    border-radius: 24px;

    box-shadow: var(--shadow);
}

.latest-label {
    margin-bottom: 8px;

    color: var(--primary);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1.4px;
}

.latest-card h2 {
    margin:
        0 0
        8px;

    font-size: 25px;
    line-height: 1.3;
}

.latest-card p {
    margin:
        0 0
        22px;

    color: var(--muted);

    font-size: 14px;
}


/* =========================================================
   BUTTONS
========================================================= */

.primary-button,
.quiz-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    text-decoration: none;

    font-weight: 700;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.primary-button {
    min-height: 50px;

    padding:
        0 28px;

    border-radius: 30px;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--secondary)
        );

    color: #ffffff;

    box-shadow:
        0 5px 20px
        rgba(178, 0, 255, 0.4);
}

.primary-button:hover {
    transform: scale(1.03);

    opacity: 0.96;

    color: #ffffff;

    box-shadow:
        0 8px 28px
        rgba(178, 0, 255, 0.55);
}


/* =========================================================
   STATS
========================================================= */

.stats-section {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 16px;

    margin:
        0 auto
        50px;

    max-width: 850px;
}

.stat-card {
    padding: 22px 15px;

    background: var(--card);

    border:
        1px solid
        var(--border);

    border-radius: 18px;

    text-align: center;

    box-shadow:
        0 8px 25px
        rgba(0, 0, 0, 0.35);
}

.stat-card strong {
    display: block;

    margin-bottom: 3px;

    font-size: 25px;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--secondary)
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.stat-card span {
    color: var(--muted);

    font-size: 13px;
}


/* =========================================================
   CONTENT SECTIONS
========================================================= */

.content-section,
.archive-section,
.related-section {
    margin-bottom: 55px;
}

.content-section {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.content-section h2,
.archive-section h2,
.related-section h2 {
    margin:
        0 0
        16px;

    font-size: 27px;

    line-height: 1.25;
}

.content-section h2::after,
.archive-section h2::after,
.related-section h2::after {
    content: "";

    display: block;

    width: 55px;
    height: 3px;

    margin-top: 10px;

    border-radius: 5px;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--secondary)
        );
}

.content-section p {
    color: var(--subtle);

    font-size: 16px;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.section-heading {
    margin-bottom: 22px;
}

.section-kicker {
    color: var(--primary);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.4px;
}


/* =========================================================
   DAILY QUIZ LIST
========================================================= */

.quiz-list {
    display: flex;

    flex-direction: column;

    gap: 14px;
}

.quiz-card {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 20px 22px;

    background: var(--card);

    border:
        1px solid
        var(--border);

    border-radius: 18px;

    box-shadow:
        0 8px 25px
        rgba(0, 0, 0, 0.3);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.quiz-card:hover {
    transform: translateY(-2px);

    background: var(--card-hover);

    border-color:
        rgba(255, 78, 205, 0.3);
}

.quiz-card-content {
    min-width: 0;
}

.quiz-date {
    display: block;

    margin-bottom: 4px;

    color: var(--primary);

    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.8px;
}

.quiz-card h3 {
    margin:
        0 0
        5px;

    font-size: 17px;

    line-height: 1.4;
}

.quiz-card h3 a {
    color: #ffffff;

    text-decoration: none;
}

.quiz-card h3 a:hover {
    color: var(--primary);
}

.quiz-card p {
    margin: 0;

    color: var(--muted);

    font-size: 13px;
}

.quiz-button {
    flex-shrink: 0;

    min-width: 90px;
    min-height: 42px;

    padding:
        0 18px;

    border:
        1px solid
        rgba(255, 78, 205, 0.4);

    border-radius: 25px;

    color: #ffffff;

    background:
        rgba(255, 78, 205, 0.06);
}

.quiz-button:hover {
    transform: scale(1.04);

    color: #ffffff;

    border-color:
        var(--primary);

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--secondary)
        );

    box-shadow:
        0 5px 18px
        rgba(178, 0, 255, 0.35);
}


/* =========================================================
   INDIVIDUAL DAILY QUIZ NAVIGATION
========================================================= */

.navigation-section {
    width: 100%;
    max-width: 850px;

    margin:
        50px auto;
}

.navigation-section h2 {
    margin:
        0 0
        20px;

    font-size: 27px;
    line-height: 1.25;
}

.navigation-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;

    width: 100%;
}

.navigation-card {
    display: flex;

    flex-direction: column;

    justify-content: center;

    min-width: 0;

    min-height: 110px;

    padding: 20px;

    background: var(--card);

    border:
        1px solid
        var(--border);

    border-radius: 18px;

    color: #ffffff !important;

    text-decoration: none !important;

    box-shadow:
        0 8px 25px
        rgba(0, 0, 0, 0.3);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.navigation-card:hover {
    transform: translateY(-2px);

    background: var(--card-hover);

    border-color:
        rgba(255, 78, 205, 0.45);

    color: #ffffff !important;

    box-shadow:
        0 10px 30px
        rgba(178, 0, 255, 0.16);
}

.navigation-card span {
    display: block;

    margin-bottom: 7px;

    color: var(--primary) !important;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1px;

    text-transform: uppercase;
}

.navigation-card strong {
    display: block;

    color: #ffffff !important;

    font-size: 17px;

    line-height: 1.35;
}

.navigation-card small {
    display: block;

    margin-top: 5px;

    color: var(--muted) !important;

    font-size: 13px;

    line-height: 1.4;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.empty-state {
    padding: 35px 25px;

    text-align: center;

    background: var(--card);

    border:
        1px solid
        var(--border);

    border-radius: 18px;
}

.empty-state h3 {
    margin:
        0 0
        8px;

    font-size: 18px;
}

.empty-state p {
    margin: 0;

    color: var(--muted);
}


/* =========================================================
   PREPARATION TIPS
========================================================= */

.tips-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 16px;

    margin-top: 25px;
}

.tip-card {
    padding: 22px;

    background: var(--card);

    border:
        1px solid
        var(--border);

    border-radius: 18px;

    box-shadow:
        0 8px 25px
        rgba(0, 0, 0, 0.3);
}

.tip-card strong {
    display: block;

    margin-bottom: 8px;

    color: var(--primary);

    font-size: 13px;

    letter-spacing: 1px;
}

.tip-card h3 {
    margin:
        0 0
        7px;

    font-size: 18px;
}

.tip-card p {
    margin: 0;

    color: var(--muted);

    font-size: 14px;
}


/* =========================================================
   RELATED LINKS
========================================================= */

.related-links {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 12px;
}

.related-links a {
    display: block;

    padding: 16px 18px;

    background: var(--card);

    border:
        1px solid
        var(--border);

    border-radius: 14px;

    color: #ffffff;

    text-decoration: none;

    font-weight: 600;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.related-links a:hover {
    transform: translateY(-2px);

    border-color:
        rgba(255, 78, 205, 0.4);

    background: var(--card-hover);

    color: #ffffff;
}


/* =========================================================
   FOOTER
========================================================= */

.daily-footer {
    padding:
        35px 0
        45px;

    text-align: center;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.06);
}

.daily-footer p {
    margin: 5px 0;

    color: #777777;

    font-size: 12px;
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

a:focus-visible {
    outline:
        2px solid
        var(--primary);

    outline-offset: 3px;
}


/* =========================================================
   ANSWER KEY (PAST QUIZZES)
========================================================= */

.answer-key-section {
    max-width: 850px;
    margin: 0 auto 55px;
}

.answer-key-section > p {
    color: var(--subtle);
    font-size: 16px;
    margin: 0 0 24px;
}

.answer-key-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.answer-key-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.answer-key-item[open] {
    border-color: rgba(255, 78, 205, 0.3);
    background: var(--card-hover);
}

.answer-key-item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 22px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: #ffffff;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.answer-key-item summary::-webkit-details-marker {
    display: none;
}

.answer-key-item summary::after {
    content: "+";
    flex-shrink: 0;
    margin-left: auto;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
    transition: transform 0.2s ease;
}

.answer-key-item[open] summary::after {
    content: "−";
    transform: rotate(180deg);
}

.answer-key-item summary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.answer-key-body {
    padding: 0 22px 22px;
}

.options-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.options-list li {
    padding: 10px 14px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--subtle);
    font-size: 14px;
}

.correct-answer {
    margin: 0 0 10px;
    padding: 12px 16px;
    background: rgba(178, 0, 255, 0.08);
    border: 1px solid rgba(255, 78, 205, 0.25);
    border-radius: 12px;
    color: #ffffff;
    font-size: 14px;
}

.correct-answer strong {
    color: var(--primary);
}

.explanation {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 760px) {

    .daily-page {
        padding: 0 16px;
    }

    .hero-section {
        padding:
            45px 10px
            35px;
    }

    .hero-section h1 {
        font-size: 38px;
    }

    .stats-section {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .tips-grid {
        grid-template-columns:
            1fr;
    }

    .navigation-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 560px) {

    .daily-header {
        padding: 18px 0;
    }

    .hero-section {
        padding:
            35px 5px
            30px;
    }

    .hero-section h1 {
        font-size: 32px;

        letter-spacing: -0.5px;
    }

    .hero-description {
        font-size: 15px;
    }

    .latest-card {
        padding: 24px 18px;

        border-radius: 20px;
    }

    .latest-card h2 {
        font-size: 21px;
    }

    .stats-section {
        grid-template-columns:
            1fr;

        gap: 10px;

        margin-bottom: 40px;
    }

    .stat-card {
        padding: 17px;
    }

    .content-section h2,
    .archive-section h2,
    .related-section h2,
    .navigation-section h2 {
        font-size: 24px;
    }

    .quiz-card {
        align-items: flex-start;

        flex-direction: column;

        padding: 18px;
    }

    .quiz-button {
        width: 100%;
    }

    .related-links {
        grid-template-columns:
            1fr;
    }

    .navigation-section {
        width: 100%;

        margin:
            40px auto;
    }

    .navigation-grid {
        grid-template-columns:
            1fr;

        gap: 12px;
    }

    .navigation-card {
        min-height: 95px;

        padding: 18px;
    }

    .answer-key-item summary {
        padding: 15px 16px;
        font-size: 15px;
    }

    .answer-key-body {
        padding: 0 16px 18px;
    }

}


/* =========================================================
   VERY SMALL DEVICES
========================================================= */

@media (max-width: 360px) {

    .daily-page {
        padding: 0 12px;
    }

    .hero-section h1 {
        font-size: 29px;
    }

    .hero-description {
        font-size: 14px;
    }

    .primary-button {
        width: 100%;
    }

    .navigation-card {
        padding: 16px;
    }

    .navigation-card strong {
        font-size: 16px;
    }

}