/* ==========================================================
   VETERINARY WORLD PUBLISHER — EXPLORE + PLAY
   Uses the existing site variables from header-footer.css
   ========================================================== */

.explore-hero,
.game-hero {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 48px 0 52px;
}

.game-hero {
    background: #f7f7f7;
}

.compact-game-hero {
    padding-bottom: 40px;
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 38px;
    font-size: .78rem;
    color: #888;
}

.crumbs a {
    color: #666;
}

.crumbs a:hover {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.crumbs span {
    color: #bbb;
}

.crumbs strong {
    color: var(--text-primary);
}

.eyebrow,
.play-label {
    display: block;
    margin-bottom: 9px;
    color: var(--accent);
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: 1.35px;
    text-transform: uppercase;
}

.explore-hero h1,
.game-hero h1 {
    max-width: 900px;
    margin: 0 0 16px;
    font-family: 'Merriweather', serif;
    font-size: clamp(2.7rem, 6vw, 5rem);
    line-height: 1;
    letter-spacing: -2px;
    color: var(--text-primary);
}

.game-hero h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
}

.hero-copy,
.game-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 850px;
    margin-top: 38px;
    border-top: 4px solid var(--theme);
}

.hero-stats > div {
    padding: 18px 20px 0 0;
}

.hero-stats > div + div {
    padding-left: 22px;
    border-left: 1px solid var(--border-color);
}

.hero-stats strong {
    display: block;
    font-family: 'Merriweather', serif;
    font-size: 1.8rem;
    color: var(--text-primary);
}

.hero-stats span {
    display: block;
    margin-top: 4px;
    color: #777;
    font-size: .75rem;
}

/* headings */

.editorial-heading {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 16px;
    margin-bottom: 30px;
    border-bottom: 3px solid var(--theme);
}

.editorial-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 80px;
    height: 3px;
    background: var(--accent);
}

.editorial-heading h2 {
    margin: 0;
    font-family: 'Merriweather', serif;
    font-size: 2rem;
    color: var(--text-primary);
}

/* countries */

.countries-page-section {
    padding: 65px 0 75px;
    background: #fff;
}

.countries-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(340px, .65fr);
    gap: 38px;
    align-items: start;
}

.countries-map-card {
    border-top: 4px solid var(--theme);
    border-bottom: 1px solid var(--border-color);
    padding: 18px 0 8px;
    background: #fff;
}

#all-countries-map {
    width: 100%;
    height: 580px;
}

.country-browser-panel {
    border-top: 4px solid var(--accent);
}

.country-filter-form {
    padding-bottom: 14px;
    border-bottom: 2px solid var(--theme);
}

.filter-search {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
}

.filter-search i {
    margin-left: 13px;
    color: #888;
}

.filter-search input {
    width: 100%;
    height: 44px;
    border: 0;
    outline: 0;
    padding: 0 12px;
    font-family: 'Noto Sans', sans-serif;
    font-size: .85rem;
}

.country-sort-links {
    display: flex;
    gap: 18px;
    margin-top: 12px;
}

.country-sort-links a {
    color: #777;
    font-size: .76rem;
    font-weight: 700;
}

.country-sort-links a.active,
.country-sort-links a:hover {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.country-list {
    max-height: 550px;
    overflow-y: auto;
}

.country-list-row {
    display: grid;
    grid-template-columns: 35px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    color: inherit;
}

.country-list-row:hover .country-list-main strong {
    color: var(--accent);
}

.country-list-rank {
    font-size: .7rem;
    font-weight: 700;
    color: #aaa;
}

.country-list-main strong {
    display: block;
    color: var(--text-primary);
    font-family: 'Merriweather', serif;
    font-size: .92rem;
}

.country-list-main small {
    display: block;
    margin-top: 4px;
    color: #888;
    font-size: .7rem;
}

.country-list-count {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 800;
}

/* Play promo */

.play-promo-section {
    padding: 65px 0 80px;
    background: #f5f5f5;
    border-top: 1px solid var(--border-color);
}

.play-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--theme);
    border-bottom: 1px solid var(--theme);
}

.play-card {
    position: relative;
    min-height: 300px;
    padding: 28px;
    color: var(--text-primary);
    background: #fff;
    transition: background .2s ease;
}

.play-card + .play-card {
    border-left: 1px solid var(--border-color);
}

.play-card:hover {
    background: #fafafa;
}

.play-card:hover h3,
.play-card:hover .play-link {
    color: var(--accent);
}

.play-number {
    display: block;
    margin-bottom: 38px;
    color: #aaa;
    font-size: .72rem;
    font-weight: 700;
}

.play-card h3 {
    margin: 0 0 12px;
    font-family: 'Merriweather', serif;
    font-size: 1.45rem;
    line-height: 1.35;
}

.play-card p {
    margin: 0 0 22px;
    color: #666;
    font-size: .86rem;
    line-height: 1.7;
}

.play-link {
    position: absolute;
    left: 28px;
    bottom: 26px;
    font-size: .78rem;
    font-weight: 800;
}

/* Game shell */

.game-shell {
    max-width: 980px;
}

.narrow-shell {
    max-width: 760px;
}

.game-section {
    min-height: 560px;
    padding: 55px 0 85px;
    background: #fff;
}

.game-progress-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 9px;
    color: #777;
    font-size: .74rem;
    font-weight: 700;
}

.progress-track {
    width: 100%;
    height: 4px;
    margin-bottom: 34px;
    background: #e7e7e7;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
}

.quiz-question {
    display: none;
}

.quiz-question.active {
    display: block;
}

.quiz-question h2,
.case-card h2 {
    margin: 0 0 28px;
    font-family: 'Merriweather', serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.4;
    color: var(--text-primary);
}

.answer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.answer-option {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 68px;
    padding: 12px 15px;
    border: 1px solid #ccc;
    background: #fff;
    color: var(--text-primary);
    font-family: 'Noto Sans', sans-serif;
    font-size: .9rem;
    text-align: left;
    cursor: pointer;
}

.answer-option:hover {
    border-color: var(--theme);
}

.answer-option.selected {
    border: 2px solid var(--theme);
}

.answer-option.correct {
    border-color: #1c7c4d;
    background: #eef8f2;
}

.answer-option.incorrect {
    border-color: var(--accent);
    background: #fff3f2;
}

.answer-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    height: 30px;
    background: var(--theme);
    color: #fff;
    font-size: .75rem;
    font-weight: 800;
}

.answer-feedback,
.case-result {
    display: none;
    margin-top: 24px;
    padding: 22px 0 0;
    border-top: 3px solid var(--theme);
}

.answer-feedback.visible,
.case-result.visible {
    display: block;
}

.feedback-status {
    margin-bottom: 7px;
    font-family: 'Merriweather', serif;
    font-size: 1.2rem;
    font-weight: 700;
}

.answer-feedback p,
.case-result p {
    color: #555;
    line-height: 1.75;
}

.answer-feedback a,
.case-result a,
.vetword-finish a {
    display: inline-block;
    margin-top: 10px;
    color: var(--accent);
    font-size: .8rem;
    font-weight: 800;
}

.game-actions {
    display: flex;
    gap: 10px;
    margin-top: 28px;
}

.game-primary,
.game-secondary {
    min-height: 44px;
    padding: 0 20px;
    border: 2px solid var(--theme);
    font-family: 'Noto Sans', sans-serif;
    font-size: .8rem;
    font-weight: 800;
    cursor: pointer;
}

.game-primary {
    background: var(--theme);
    color: #fff;
}

.game-primary:hover {
    border-color: var(--accent);
    background: var(--accent);
}

.game-secondary {
    background: #fff;
    color: var(--theme);
}

.game-secondary:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.next-question-btn {
    display: none;
}

.quiz-complete {
    display: none;
    padding: 25px 0;
}

.quiz-complete.visible {
    display: block;
}

.quiz-complete h2 {
    margin: 0 0 10px;
    font-family: 'Merriweather', serif;
    font-size: 2.3rem;
}

.final-score {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 24px 0;
}

.final-score strong {
    font-family: 'Merriweather', serif;
    font-size: 5rem;
    line-height: 1;
    color: var(--accent);
}

.final-score span {
    font-size: 1.4rem;
    color: #777;
}

/* Case */

.case-card {
    border-top: 4px solid var(--theme);
    padding-top: 28px;
}

.case-header {
    margin-bottom: 25px;
}

.case-image {
    margin-bottom: 25px;
}

.case-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.case-summary {
    padding: 22px 0;
    margin-bottom: 28px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    color: #444;
    line-height: 1.8;
}

.case-question {
    margin: 0 0 18px;
    font-family: 'Merriweather', serif;
    font-size: 1.35rem;
}

.case-result h3 {
    margin: 0 0 12px;
    font-family: 'Merriweather', serif;
    font-size: 1.8rem;
}

/* VetWord */

.vetword-topline {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
    color: #777;
    font-size: .76rem;
    font-weight: 700;
}

.vetword-topline button {
    border: 0;
    background: none;
    color: var(--accent);
    font-weight: 800;
    cursor: pointer;
}

.vetword-clue {
    display: none;
    margin-bottom: 20px;
    padding: 13px 15px;
    border-left: 4px solid var(--accent);
    background: #f7f7f7;
    color: #444;
    font-size: .85rem;
}

.vetword-clue.visible {
    display: block;
}

.vetword-board {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0 auto 24px;
}

.vetword-row {
    display: flex;
    justify-content: center;
    gap: 7px;
}

.vetword-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border: 2px solid #d3d3d3;
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
}

.vetword-cell.filled {
    border-color: #777;
}

.vetword-cell.correct,
.vetword-key.correct {
    border-color: #268653;
    background: #268653;
    color: #fff;
}

.vetword-cell.present,
.vetword-key.present {
    border-color: #c99a18;
    background: #c99a18;
    color: #fff;
}

.vetword-cell.absent,
.vetword-key.absent {
    border-color: #555;
    background: #555;
    color: #fff;
}

.vetword-message {
    min-height: 28px;
    margin-bottom: 12px;
    text-align: center;
    color: var(--accent);
    font-size: .82rem;
    font-weight: 800;
}

.vetword-keyboard {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 15px;
}

.vetword-key-row {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.vetword-key {
    min-width: 34px;
    height: 46px;
    padding: 0 7px;
    border: 0;
    background: #dedede;
    color: #1c1c1c;
    font-size: .74rem;
    font-weight: 800;
    cursor: pointer;
}

.vetword-key.wide {
    min-width: 62px;
}

.vetword-finish {
    display: none;
    margin-top: 35px;
    padding-top: 28px;
    border-top: 4px solid var(--theme);
}

.vetword-finish.visible {
    display: block;
}

.vetword-finish h2 {
    margin: 0 0 12px;
    font-family: 'Merriweather', serif;
    font-size: 2.4rem;
    color: var(--accent);
}

.vetword-finish p {
    color: #555;
    line-height: 1.75;
}

.empty-state {
    padding: 40px 0;
    color: #666;
}

.large-empty {
    min-height: 350px;
}

.empty-state h2,
.empty-state h3 {
    margin: 0 0 8px;
    font-family: 'Merriweather', serif;
    color: var(--text-primary);
}

/* Map controls */

.jvm-container {
    background: transparent !important;
}

.jvm-tooltip {
    padding: 8px 12px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--theme) !important;
    color: #fff !important;
    font-family: 'Noto Sans', sans-serif !important;
    font-size: .78rem !important;
}

.jvm-zoom-btn {
    width: 30px !important;
    height: 30px !important;
    border-radius: 0 !important;
    background: var(--theme) !important;
    color: #fff !important;
}

.jvm-zoom-btn:hover {
    background: var(--accent) !important;
}

@media (max-width: 1000px) {
    .countries-layout {
        grid-template-columns: 1fr;
    }

    .country-list {
        max-height: none;
    }

    .play-grid {
        grid-template-columns: 1fr;
    }

    .play-card + .play-card {
        border-left: 0;
        border-top: 1px solid var(--border-color);
    }
}

@media (max-width: 768px) {
    .explore-hero,
    .game-hero {
        padding: 35px 0 40px;
    }

    .explore-hero h1,
    .game-hero h1 {
        letter-spacing: -1px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-stats > div {
        padding: 14px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .hero-stats > div + div {
        padding-left: 0;
        border-left: 0;
    }

    .countries-page-section,
    .play-promo-section {
        padding: 45px 0 55px;
    }

    #all-countries-map {
        height: 390px;
    }

    .answer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    #all-countries-map {
        height: 300px;
    }

    .vetword-cell {
        width: 43px;
        height: 43px;
        font-size: 1rem;
    }

    .vetword-key {
        min-width: 28px;
        height: 42px;
        padding: 0 4px;
        font-size: .65rem;
    }

    .vetword-key.wide {
        min-width: 50px;
    }
}
