
/* =========================================
   ASHER VERAH — BASKETBALL PAGE
   Separate stylesheet; existing pages untouched
========================================= */

:root {
    color-scheme: light;
    --basket-bg: #f5f5f7;
    --basket-surface: #ffffff;
    --basket-text: #1d1d1f;
    --basket-muted: #6e6e73;
    --basket-border: rgba(0, 0, 0, 0.09);
    --basket-accent: #c87535;
    --basket-soft: #ece5dc;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --basket-bg: #101010;
    --basket-surface: #191919;
    --basket-text: #f5f5f7;
    --basket-muted: #a1a1a6;
    --basket-border: rgba(255, 255, 255, 0.12);
    --basket-accent: #e5a36e;
    --basket-soft: #26211d;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--basket-bg);
    color: var(--basket-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
    -webkit-font-smoothing: antialiased;
    transition: background 0.25s ease, color 0.25s ease;
}

.basketball-page,
.basketball-footer {
    width: min(1100px, calc(100% - 48px));
    margin-inline: auto;
}

.basketball-page *,
.basketball-footer * {
    box-sizing: border-box;
}

.basketball-page a,
.basketball-footer a {
    color: inherit;
    text-decoration: none;
}

/* NAVIGATION */

.navbar {
    width: min(1100px, calc(100% - 48px));
    min-height: 58px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--basket-border);
}

.nav-brand {
    font-size: 21px;
    font-weight: 750;
    letter-spacing: -1.3px;
    color: var(--basket-text);
    text-decoration: none;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    font-size: 12px;
    color: var(--basket-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--basket-text);
}

/* SHARED TYPOGRAPHY */

.eyebrow,
.card-category,
.content-footnote,
.art-label,
.hero-caption,
.opinion-label {
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 1.7px;
}

.eyebrow {
    margin: 0 0 22px;
    color: var(--basket-muted);
}

.basketball-page h1,
.basketball-page h2,
.basketball-page h3,
.basketball-page p {
    overflow-wrap: break-word;
}

.basketball-page h1,
.basketball-page h2,
.basketball-page h3 {
    letter-spacing: -0.055em;
}

.basketball-page h2 {
    margin: 0;
    font-size: clamp(32px, 4.5vw, 51px);
    line-height: 1.08;
    font-weight: 650;
}

.basketball-page h3 {
    margin: 0;
    font-size: 23px;
    line-height: 1.2;
    font-weight: 650;
}

.basketball-page p {
    line-height: 1.7;
}

/* HERO */

.basketball-hero {
    padding-top: 105px;
    text-align: center;
}

.basketball-hero .eyebrow {
    margin-bottom: 25px;
}

.basketball-hero h1 {
    margin: 0;
    font-size: clamp(58px, 10vw, 112px);
    font-weight: 700;
    letter-spacing: -0.085em;
    line-height: 0.98;
}

.basketball-hero h1 span,
.basketball-outro h2 span {
    color: var(--basket-muted);
}

.hero-description {
    max-width: 440px;
    margin: 28px auto 22px;
    color: var(--basket-muted);
    font-size: 16px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--basket-accent);
    font-size: 13px;
    font-weight: 600;
    transition: gap 0.2s ease;
}

.text-link:hover {
    gap: 16px;
}

.text-link span {
    color: var(--basket-accent);
}

/* ABSTRACT BASKETBALL ART */

.hero-art {
    position: relative;
    isolation: isolate;
    height: clamp(240px, 40vw, 410px);
    margin-top: 65px;
    overflow: hidden;
    border-radius: 5px;
    background:
        radial-gradient(ellipse at 50% 110%,
            rgba(210, 136, 78, 0.28), transparent 55%),
        linear-gradient(145deg, #28231f, #100f0e 75%);
}

.hero-art::before {
    position: absolute;
    z-index: -1;
    content: "";
    inset: 0;
    opacity: 0.14;
    background-image:
        linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent);
}

.court {
    position: absolute;
    left: 50%;
    border: 1px solid rgba(239, 179, 126, 0.45);
    border-radius: 50%;
    transform: translateX(-50%);
}

.court-one {
    bottom: -72%;
    width: 105%;
    aspect-ratio: 1;
}

.court-two {
    bottom: -58%;
    width: 76%;
    aspect-ratio: 1;
}

.court-three {
    bottom: -42%;
    width: 47%;
    aspect-ratio: 1;
}

.hero-ball {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(105px, 18vw, 180px);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 207, 161, 0.5);
    border-radius: 50%;
    background:
        linear-gradient(90deg, transparent 48%, rgba(34, 20, 11, .75) 49%, rgba(34, 20, 11, .75) 51%, transparent 52%),
        linear-gradient(0deg, transparent 48%, rgba(34, 20, 11, .75) 49%, rgba(34, 20, 11, .75) 51%, transparent 52%),
        radial-gradient(circle at 30% 25%, #e5ad78, #a65c2b 65%, #5d301b);
    box-shadow:
        inset -13px -12px 24px rgba(0, 0, 0, 0.32),
        0 18px 65px rgba(0, 0, 0, 0.35);
    transform: translate(-50%, -55%) rotate(-20deg);
}

.hero-ball::before,
.hero-ball::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(34, 20, 11, 0.7);
    border-radius: 50%;
}

.hero-ball::before {
    inset: 0 27%;
}

.hero-ball::after {
    inset: 27% 0;
}

.art-label {
    position: absolute;
    bottom: 22px;
    left: 24px;
    color: rgba(255, 255, 255, 0.65);
}

.hero-caption {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    color: var(--basket-muted);
    font-size: 9px;
}

/* INTRO */

.intro-section {
    padding: 125px 0 110px;
    border-bottom: 1px solid var(--basket-border);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    align-items: start;
    gap: 60px;
}

.intro-grid h2 {
    font-size: clamp(40px, 6vw, 68px);
}

.intro-grid > p {
    max-width: 430px;
    margin: 3px 0 0;
    color: var(--basket-muted);
    font-size: 15px;
}

/* CONTENT SECTIONS */

.content-section {
    padding: 105px 0;
    border-bottom: 1px solid var(--basket-border);
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 38px;
}

.section-heading .eyebrow {
    margin-bottom: 15px;
}

.section-note {
    max-width: 200px;
    margin: 0 0 4px;
    color: var(--basket-muted);
    font-size: 12px;
    text-align: right;
}

/* PLAYER CARDS */

.player-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.player-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--basket-border);
    border-radius: 5px;
    background: var(--basket-surface);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.player-card:hover {
    transform: translateY(-5px);
    border-color: var(--basket-accent);
}

.player-image {
    position: relative;
    display: flex;
    min-height: 250px;
    align-items: end;
    justify-content: space-between;
    overflow: hidden;
    padding: 18px;
    color: white;
    background-color: #24211e;
}

.player-image::before {
    position: absolute;
    content: "";
    inset: 0;
    opacity: 0.8;
    background:
        radial-gradient(ellipse at 50% 15%, rgba(255,255,255,.14), transparent 50%),
        linear-gradient(145deg, transparent, rgba(0,0,0,.75));
}

.player-lebron {
    background: linear-gradient(145deg, #473b29, #181512);
}

.player-curry {
    background: linear-gradient(145deg, #343b50, #13141b);
}

.player-jokic {
    background: linear-gradient(145deg, #344950, #14191b);
}

.player-number {
    position: absolute;
    top: 8px;
    right: 12px;
    color: rgba(255,255,255,.12);
    font-size: clamp(90px, 12vw, 150px);
    font-weight: 800;
    letter-spacing: -0.1em;
    line-height: 1;
}

.player-tag,
.card-category {
    position: relative;
    z-index: 1;
}

.player-tag {
    font-size: 9px;
    letter-spacing: 1.5px;
}

.card-copy {
    padding: 22px;
}

.card-category {
    margin: 0 0 12px;
    color: var(--basket-accent);
    font-size: 9px;
}

.card-copy h3 {
    margin-bottom: 10px;
}

.card-copy > p:last-child {
    margin: 0;
    color: var(--basket-muted);
    font-size: 13px;
}

.content-footnote {
    margin: 22px 0 0;
    color: var(--basket-muted);
    font-size: 9px;
    line-height: 1.6;
}

/* TEAMS */

.teams-section {
    background: var(--basket-soft);
    box-shadow: 0 0 0 100vmax var(--basket-soft);
    clip-path: inset(0 -100vmax);
}

.team-list {
    border-top: 1px solid var(--basket-border);
}

.team-row {
    display: grid;
    grid-template-columns: 64px 1fr 40px;
    align-items: center;
    gap: 22px;
    padding: 25px 0;
    border-bottom: 1px solid var(--basket-border);
    transition: padding 0.2s ease;
}

.team-row:hover {
    padding-inline: 8px;
}

.team-mark {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 1px solid var(--basket-border);
    border-radius: 50%;
    font-size: 25px;
    font-weight: 750;
}


.mark-spurs {
    color: #ffffff;
    background: #111111;
    border-color: #c4ced4;
}

.mark-lakers {
    color: #e2c45f;
    background: #382c62;
}

.mark-warriors {
    color: #f1d365;
    background: #174b8d;
}


.team-info .card-category {
    margin-bottom: 7px;
}

.team-info h3 {
    font-size: 20px;
}

.team-info > p:last-child {
    margin: 6px 0 0;
    color: var(--basket-muted);
    font-size: 12px;
}

.team-index {
    color: var(--basket-muted);
    font-size: 11px;
    text-align: right;
}

/* OPINIONS */

.opinion-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.opinion-card {
    position: relative;
    display: flex;
    min-height: 270px;
    flex-direction: column;
    align-items: flex-start;
    padding: 25px;
    border: 1px solid var(--basket-border);
    border-radius: 5px;
    background: var(--basket-surface);
    transition: transform 0.25s ease;
}

.opinion-card:hover {
    transform: translateY(-4px);
}

.opinion-number {
    margin-bottom: 35px;
    color: var(--basket-muted);
    font-size: 12px;
}

.opinion-card .card-category {
    margin-bottom: 12px;
}

.opinion-card h3 {
    font-size: 22px;
    line-height: 1.25;
}

.opinion-card > p:not(.card-category) {
    color: var(--basket-muted);
    font-size: 13px;
}

.opinion-label {
    margin-top: auto;
    padding-top: 15px;
    color: var(--basket-accent);
    font-size: 9px;
}

/* CLOSING */

.basketball-outro {
    padding: 125px 0 110px;
    text-align: center;
}

.basketball-outro .eyebrow {
    margin-bottom: 20px;
}

.basketball-outro h2 {
    margin: 0 0 28px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.06;
}

.basketball-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
    border-top: 1px solid var(--basket-border);
    color: var(--basket-muted);
    font-size: 11px;
}

.basketball-footer > a:first-child {
    color: var(--basket-text);
    font-size: 17px;
    font-weight: 750;
}

/* RESPONSIVE */

@media (max-width: 760px) {
    .basketball-hero {
        padding-top: 75px;
    }

    .intro-section {
        padding: 85px 0;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .content-section {
        padding: 80px 0;
    }

    .player-grid {
        grid-template-columns: 1fr 1fr;
    }

    .player-card:first-child {
        grid-column: 1 / -1;
    }

    .player-card:first-child .player-image {
        min-height: 280px;
    }

    .player-image {
        min-height: 210px;
    }

    .opinion-grid {
        grid-template-columns: 1fr;
    }

    .opinion-card {
        min-height: 230px;
    }
}

@media (max-width: 520px) {
    .basketball-page,
    .basketball-footer,
    .navbar {
        width: calc(100% - 32px);
    }

    .navbar {
        align-items: flex-start;
        padding: 17px 0;
    }

    .nav-links {
        justify-content: flex-end;
        gap: 12px;
        max-width: 260px;
    }

    .nav-links a {
        font-size: 11px;
    }

    .basketball-hero {
        padding-top: 65px;
    }

    .basketball-hero h1 {
        font-size: clamp(54px, 13vw, 76px);
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-art {
        margin-top: 45px;
        height: 250px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .section-note {
        text-align: left;
    }

    .player-grid {
        grid-template-columns: 1fr;
    }

    .player-card:first-child {
        grid-column: auto;
    }

    .player-image,
    .player-card:first-child .player-image {
        min-height: 245px;
    }

    .team-row {
        grid-template-columns: 48px 1fr 22px;
        gap: 13px;
    }

    .team-mark {
        width: 46px;
        height: 46px;
        font-size: 20px;
    }

    .team-info h3 {
        font-size: 17px;
    }

    .team-info > p:last-child {
        font-size: 11px;
    }

    .basketball-footer {
        flex-wrap: wrap;
        padding: 20px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .basketball-page *,
    .basketball-footer * {
        transition: none !important;
    }
}
