/*
 * BrightMind Hub — Examination Sets
 * Premium user-facing page styling.
 * Page-specific: does not modify app.css or other Hub pages.
 */

.examsets-page,
.examsets-page * {
    box-sizing: border-box;
}

.examsets-page {
    --bm-green: #15803d;
    --bm-green-dark: #116530;
    --bm-green-deep: #0c4f27;
    --bm-green-soft: #edf8f1;
    --bm-ink: #17221b;
    --bm-text: #334139;
    --bm-muted: #718078;
    --bm-border: #dfe8e2;
    --bm-white: #ffffff;
    --bm-bg: #f7faf8;
    --bm-violet: #6f5ce7;
    width: 100%;
    min-height: calc(100vh - 70px);
    padding: 22px 0 62px;
    background:
        radial-gradient(circle at 91% 4%, rgba(111,92,231,.065), transparent 25rem),
        linear-gradient(180deg, #f7faf8 0%, #ffffff 44%, #f9fbfa 100%);
    color: var(--bm-ink);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.examsets-page > * {
    width: min(1160px, 94%);
    margin-left: auto;
    margin-right: auto;
}

/* Hero */

.examsets-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    align-items: center;
    gap: 28px;
    min-height: 188px;
    padding: 30px 34px;
    border: 1px solid #dce9e0;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(237,248,241,.98), rgba(255,255,255,.98) 64%),
        #fff;
    box-shadow: 0 12px 34px rgba(15, 55, 31, .055);
    position: relative;
    overflow: hidden;
}

.examsets-hero::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -105px;
    top: -150px;
    border-radius: 50%;
    background: rgba(111,92,231,.08);
}

.examsets-hero::after {
    content: "";
    position: absolute;
    width: 115px;
    height: 115px;
    right: 80px;
    bottom: -82px;
    border-radius: 50%;
    background: rgba(21,128,61,.06);
}

.examsets-hero > div:first-child {
    position: relative;
    z-index: 1;
}

.exam-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 4px 9px;
    border: 1px solid #d4e8da;
    border-radius: 999px;
    background: rgba(255,255,255,.78);
    color: var(--bm-green-dark);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .11em;
}

.examsets-hero h1 {
    margin: 10px 0 7px;
    color: #13231a;
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.08;
    font-weight: 850;
    letter-spacing: -.04em;
}

.examsets-hero p {
    max-width: 710px;
    margin: 0;
    color: #65736a;
    font-size: 12px;
    line-height: 1.7;
}

.exam-hero-mark {
    display: grid;
    place-items: center;
    justify-self: end;
    width: 112px;
    height: 112px;
    border: 1px solid #d8e7dd;
    border-radius: 25px;
    background: rgba(255,255,255,.78);
    color: var(--bm-green);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
    box-shadow: 0 10px 25px rgba(20, 60, 35, .06);
    transform: rotate(3deg);
    position: relative;
    z-index: 1;
}

/* Search/filter bar */

.exam-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px auto auto;
    gap: 8px;
    align-items: center;
    margin-top: 15px;
    padding: 9px;
    border: 1px solid var(--bm-border);
    border-radius: 13px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 7px 22px rgba(18, 45, 29, .045);
}

.exam-filters input,
.exam-filters select {
    width: 100%;
    height: 38px;
    min-width: 0;
    border: 1px solid #dce5df;
    border-radius: 8px;
    outline: none;
    background: #fbfdfc;
    color: #27352c;
    padding: 0 11px;
    font: inherit;
    font-size: 10.5px;
    font-weight: 550;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.exam-filters input::placeholder {
    color: #9aa49e;
}

.exam-filters input:focus,
.exam-filters select:focus {
    border-color: #a8ceb5;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(21,128,61,.07);
}

.exam-filters button {
    height: 38px;
    border: 0;
    border-radius: 8px;
    padding: 0 16px;
    background: var(--bm-green);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}

.exam-filters button:hover {
    background: var(--bm-green-dark);
    transform: translateY(-1px);
    box-shadow: 0 7px 16px rgba(21,128,61,.16);
}

.exam-filters a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 11px;
    border-radius: 8px;
    color: #66746b;
    font-size: 10px;
    font-weight: 700;
}

.exam-filters a:hover {
    background: #f1f6f3;
    color: var(--bm-green-dark);
}

/* Heading */

.examsets-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    margin-top: 28px;
    margin-bottom: 11px;
}

.examsets-heading > div > span {
    display: block;
    margin-bottom: 2px;
    color: var(--bm-green);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .12em;
}

.examsets-heading h2 {
    margin: 0;
    color: #18251d;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 820;
    letter-spacing: -.025em;
}

.examsets-heading > strong {
    color: #77837b;
    font-size: 10px;
    font-weight: 750;
}

/* Cards */

.examset-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
}

.examset-card {
    display: flex;
    min-width: 0;
    min-height: 214px;
    flex-direction: column;
    padding: 16px;
    border: 1px solid var(--bm-border);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(19, 48, 31, .04);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.examset-card:hover {
    transform: translateY(-3px);
    border-color: #c8dccf;
    box-shadow: 0 14px 30px rgba(19, 48, 31, .085);
}

.examset-card-top {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.grade-pill,
.set-pill {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 7px;
    border-radius: 6px;
    font-size: 8.5px;
    font-weight: 850;
    letter-spacing: .03em;
}

.grade-pill {
    background: #e9f7ee;
    color: var(--bm-green-dark);
}

.set-pill {
    background: #f2f3f9;
    color: #5e5a7b;
}

.examset-card h3 {
    margin: 0;
    color: #1b2920;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: -.012em;
}

.examset-card p {
    display: -webkit-box;
    margin: 7px 0 12px;
    overflow: hidden;
    color: #77837b;
    font-size: 10px;
    line-height: 1.58;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.examset-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: auto;
    padding-top: 3px;
}

.examset-meta span {
    display: inline-flex;
    align-items: center;
    padding: 4px 6px;
    border: 1px solid #e3eae5;
    border-radius: 6px;
    background: #fafcfb;
    color: #7b867f;
    font-size: 8px;
    font-weight: 650;
}

.examset-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    padding-top: 11px;
    border-top: 1px solid #edf1ee;
}

.examset-bottom strong {
    color: var(--bm-green-dark);
    font-size: 15px;
    line-height: 1;
    font-weight: 850;
    letter-spacing: -.025em;
    white-space: nowrap;
}

.examset-bottom a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 31px;
    padding: 6px 10px;
    border-radius: 7px;
    background: var(--bm-green);
    color: #fff !important;
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
    transition: background .15s ease, transform .15s ease;
}

.examset-bottom a:hover {
    background: var(--bm-green-dark);
    transform: translateY(-1px);
}

/* Empty state */

.exam-empty {
    grid-column: 1 / -1;
    padding: 45px 20px;
    border: 1px dashed #d5e1d9;
    border-radius: 15px;
    background: #fff;
    text-align: center;
}

.exam-empty strong {
    display: block;
    color: #26352c;
    font-size: 13px;
}

.exam-empty p {
    margin: 5px 0 0;
    color: #7b867f;
    font-size: 10px;
}

/* Responsive */

@media (max-width: 980px) {
    .examset-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .examsets-hero {
        grid-template-columns: minmax(0, 1fr) 120px;
    }

    .exam-hero-mark {
        width: 94px;
        height: 94px;
    }
}

@media (max-width: 720px) {
    .examsets-page {
        padding-top: 12px;
    }

    .examsets-hero {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 22px 20px;
        border-radius: 17px;
    }

    .exam-hero-mark {
        justify-self: start;
        width: 76px;
        height: 42px;
        border-radius: 10px;
        transform: none;
        font-size: 9px;
    }

    .examsets-hero h1 {
        font-size: 24px;
    }

    .examsets-hero p {
        font-size: 10.5px;
    }

    .exam-filters {
        grid-template-columns: 1fr 1fr;
    }

    .exam-filters input {
        grid-column: 1 / -1;
    }

    .exam-filters button,
    .exam-filters a {
        width: 100%;
    }

    .examset-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .examsets-page {
        font-size: 12px;
    }

    .examsets-page > * {
        width: 94%;
    }

    .examsets-hero h1 {
        font-size: 21px;
    }

    .examsets-hero p {
        font-size: 10px;
        line-height: 1.6;
    }

    .exam-filters {
        grid-template-columns: 1fr;
        padding: 8px;
    }

    .exam-filters input {
        grid-column: auto;
    }

    .examsets-heading {
        margin-top: 21px;
    }

    .examsets-heading h2 {
        font-size: 15px;
    }

    .examset-card {
        min-height: 0;
        padding: 14px;
    }

    .examset-card h3 {
        font-size: 12.5px;
    }

    .examset-bottom strong {
        font-size: 14px;
    }
}
