@import url('https://fonts.googleapis.com/css2?family=Fjalla+One&display=swap');

:root {
        /* Colors (site-wide variables) */
        --color-primary: #2e235f;
        --bg-dark: #14102b;
        --bg-card: #1c1333;
        --bg-dark-alt: #191030; /* used for alternating row/background stripes */
        --accent: #7b3fb8;
        --text-light: #f4f4f8;
        --text-muted: #b5afc7;

        /* Radii (rounded corners) */
        --radius-l: 10px;
        --radius-m: 8px;
        --radius-s: 6px;

        /* Shadows (depth: raised = outside, inset = inside) 
           basically raised makes stuff look like it's popping out, inset makes it look pressed in */
        --shadow-raised: 0 4px 8px rgba(0, 0, 0, 0.3);
        --shadow-inset: inset 0 2px 4px rgba(255, 255, 255, 0.04);

        /* Motion (animation timing helpers) 
           these make transitions feel smooth instead of robotic */
        --ease-fast: .18s ease;
        --ease-faster: .12s linear;
}

/* ========== GLOBAL / BASE ========== */
/* Think of this section as the "default rules" before we style specific components. */
* {
    box-sizing: border-box; /* makes width/height include padding & borders - way easier to work with */
}

body {
    margin: 0;
    padding: 20px;
    background-color: var(--bg-card);
}

main {
    /* We use the display font for headings and main shell for a sporty vibe */
    font-family: "Fjalla One", Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    max-width: 1200px;
    padding: 32px 24px;
    border-radius: var(--radius-l);
    margin: 0 auto;
}

/* Headings: force them to use "Fjalla One" so they look consistent. */
h1, h2, h3, h4, h5, h6 { 
    font-family: "Fjalla One", Arial, sans-serif;
    padding: 6px 10px;
    box-sizing: border-box;
}

/* Small underline under h3 inside panels to separate title from content */
.panel h3 {
    margin: 6px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--bg-card);
}

/* Body text: use system font for readability and a softer color */
p, li {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-muted);
}


.float-left {
    float: left;
    /* Use margin (not padding) so the picture keeps its rounded-edge look */
    margin: 20px 32px 20px 0; /* bigger right gap = easier to read wrapped text */
}

.float-right {
    float: right;
    /* Same idea on the other side */
    margin: 20px 0 20px 32px; /* bigger left gap */
}

/* Clearfix: classic trick to make a parent wrap around its floated children 
   basically forces the parent to "see" floated stuff inside it so it doesn't collapse */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* On small screens, we turn off floats so content stacks in a single column. 
   floats are kinda annoying on mobile anyway */
@media (max-width: 700px) {
    .float-left,
    .float-right {
        float: none;
        display: block;
        margin: 0 0 20px 0; /* keep a bit of space below the image */
    }
}

/* ========== REUSABLE SURFACES & UTILITIES ========== */
.panel, .card, .surface-dark {
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-raised), var(--shadow-inset);
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card);
    border-radius: var(--radius-m);
    box-shadow: none;
}

.surface-dark {
    background: var(--bg-dark);
    border: 2px solid var(--bg-dark);
}

/* Accent utilities */
.accent-text { color: var(--accent); }
.accent-border { border-left: 2px solid var(--accent); }
.accent-section {
    border-left: 4px solid var(--accent);
    background: rgba(123, 63, 184, 0.03);
}

/* Simple enhanced links */
.accent-text {
    color: var(--accent);
    transition: color 0.2s ease;
}

a[href^="mailto:"] {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent);
    transition: all 0.2s ease;
}

a[href^="mailto:"]:hover { 
    border-bottom-style: solid;
    color: var(--text-light);
}

/* ========== SIMPLE BUTTON SYSTEM ========== */
/* Clean, minimal buttons with solid colors */

.btn, .game-list button {
    display: inline-block;
    background: var(--bg-card);
    color: var(--text-light);
    border: 1px solid var(--bg-dark);
    border-radius: 6px;
    padding: 12px 24px;
    font-family: "Fjalla One", Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn:hover, .game-list button:hover {
    background: var(--color-primary);
    border-color: var(--accent);
    color: var(--text-light);
}

.btn:active, .game-list button:active {
    background: var(--bg-dark);
}

.img-raised {
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-raised);
}

/* ========== ANIMATIONS ========== */
/* this animation makes stuff slide in with a little bounce - looks way cooler than just fading in */
@keyframes slideIn {
    0% { opacity: 0; transform: translate(var(--from-x, 0), var(--from-y, 40px)) scale(0.98); }
    60% { opacity: 1; transform: translate(calc(var(--from-x, 0) * -0.1), calc(var(--from-y, 40px) * -0.1)) scale(1.02); }
    100% { opacity: 1; transform: none; }
}

.animate-slide-in-up, .animate-slide-in-left, .animate-fade-in {
    animation: slideIn 0.8s cubic-bezier(.5,.8,.5,1.1) both;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.animate-slide-in-up { --from-y: 40px; }
.animate-slide-in-left { --from-x: -40px; --from-y: 0; }
.animate-fade-in { --from-x: 0; --from-y: 0; animation-duration: 1.1s; animation-delay: 0.1s; }

/* ========== HEADER ========== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    background-color: var(--color-primary);
    padding: 18px 16px;
    box-shadow: var(--shadow-raised), var(--shadow-inset);
    border-radius: var(--radius-l) var(--radius-l) 0 0;
}

header img {
    height: 80px;
    width: 80px;
}

/* Image button navigation: these are links that look like buttons using background images. */
.image-nav {
    display: flex;
    gap: 12px;
    justify-content: flex-end; /* right aligned */
    flex-wrap: wrap;
}

.nav-btn {
    width: 120px;
    height: 40px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}


.nav-btn {
     --img-default: none;               /* Fallback if a variant forgets to set images */
     --img-active: var(--img-default);  /* Default: active == default (safe fallback) */
     background-image: var(--img-default);
    transition: all var(--ease-fast), background-image var(--ease-faster);
}

/* Variant buttons: we just override the two image variables per button type */
.nav-btn.home  { 
     --img-default: url("images/buttons/home-button.png");
     --img-active:  url("images/buttons/home-button-ACTIVE.png");
}
.nav-btn.about {
     --img-default: url("images/buttons/about-button.png");
     --img-active:  url("images/buttons/about-button-ACTIVE.png");
}
.nav-btn.join  {
     --img-default: url("images/buttons/join-button.png");
     --img-active:  url("images/buttons/join-button-ACTIVE.png");
}

/* Simple hover states for navigation */
.nav-btn:is(:hover, :focus-visible),
.nav-btn[aria-current="page"] {
     background-image: var(--img-active);
     filter: brightness(1.1);
}

/* Accessibility: keyboard users get a clear outline; current page also shows it */
.nav-btn[aria-current="page"] { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Small screens: stack the header content so it fits nicely */
@media (max-width: 800px) {
    /* Mobile: stack logo above nav and center buttons */
    header {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        text-align: center;
    }
    .image-nav { 
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .nav-btn {
        width: 160px;
        height: 50px;
    }
}

/* ========== LAYOUT ELEMENTS ========== */
section, article {
    padding: 24px 18px;
    box-sizing: border-box;
}

/* ========== FOOTER ========== */
/* Footer matches the header color to visually "close off" the page.
   Placed at the bottom of <main> so it sits inside the rounded container. */
footer.site-footer {
    background: var(--color-primary);
    color: var(--text-light);
    padding: 20px 18px;
    margin-top: 20px; /* space above footer so it doesn't crash into content */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 0 0 var(--radius-l) var(--radius-l); /* round only the bottom corners */
    box-shadow: var(--shadow-inset);
}
footer.site-footer p { margin: 4px 0; color: var(--text-light); }
footer.site-footer a { color: var(--text-light); text-decoration: none; opacity: .9; }
footer.site-footer a:is(:hover, :focus-visible) { opacity: 1; text-decoration: underline; }

@media (max-width: 700px) {
    footer.site-footer {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }
}

/* ========== HERO IMAGE ========== */

.hero-img {
    width: 100%;
    height: 400px;
    margin-top: 20px;
    border-radius: 0 0 var(--radius-l) var(--radius-l);
    box-shadow: var(--shadow-raised);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed; /* parallax effect */
    display: block; /* make div behave like an image */
    transition: height 0.8s cubic-bezier(.5,.8,.5,1.1);
}

/* Fix mobile hero image display - disable parallax and adjust sizing */
@media (max-width: 800px) {
    .hero-img {
        background-attachment: scroll; /* disable parallax on mobile for better performance and display */
        background-size: cover;
        background-position: center top; /* show more of the top portion on mobile */
        height: 300px; /* slightly shorter on mobile */
    }
    
    .hero-img.secondary {
        background-attachment: scroll;
        background-position: center top;
        height: 200px;
    }
}

.hero-img.secondary {
    height: 250px; /* shorter height for secondary pages */
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    border-radius: 0 0 var(--radius-l) var(--radius-l);
    box-shadow: var(--shadow-raised);
    display: block;
}

/* ========== WELCOME SECTION ========== */
.welcome-section {
    margin-top: 30px;
    margin-bottom: 30px; 
}

/* ========== JOIN PAGE (simple, reusing existing styles) ========== */
.join-section { padding: 14px 16px 18px; }

/* Video Container - responsive YouTube embed 
   this weird padding trick forces the container to keep a 16:9 ratio no matter the screen size */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio (9/16 = 0.5625) - math is fun lol */
    height: 0; /* height 0 because padding-bottom does the work */
    overflow: hidden;
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-raised);
    margin: 20px 0;
    background: var(--bg-dark);
}

.video-container iframe {
    position: absolute; /* this makes the iframe fill the container we made above */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius-l);
}

.next-session.ticker { 
    display: grid; 
    grid-template-columns: auto auto 1fr auto; /* creates 4 columns: icon, label, stretch space, time */
    align-items: center; 
    gap: 10px; 
    padding: 10px 12px; 
    margin: 10px 0 14px; 
}

.tick-label { color: var(--text-light); }

.tick-item { 
    color: var(--text-muted); 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

.tick-item time {
    color: var(--accent);
    font-weight: 600;
}
.panel-enhanced { background: rgba(123, 63, 184, 0.02); border: 1px solid rgba(123, 63, 184, 0.1); }

/* Join Form Styles */
.join-wrapper { 
    padding: 18px;
}

.join-wrapper h3 { 
    margin: 8px 0 12px;
}

.join-form { 
    display: block; 
}

.form-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 12px; /* 2 columns on desktop */
}

/* ========== FORM STYLES ========== */
.form-field { display: flex; flex-direction: column; gap: 6px; }

.form-field label { 
    font: 600 13px/1 "Fjalla One", Arial, sans-serif; 
    letter-spacing: .4px; 
    color: var(--text-light);
}

.form-field label[for="name"]::after,
.form-field label[for="email"]::after,
.form-field label[for="phone"]::after {
    content: "*";
    color: var(--accent);
    margin-left: 4px;
}

.form-field input, .form-field textarea {
    padding: 10px 12px;
    border-radius: var(--radius-s);
    border: 1px solid var(--bg-card);
    background: var(--bg-dark);
    color: var(--text-light);
    outline: none;
    width: 100%;
    transition: all var(--ease-fast);
}

.form-field input:focus, .form-field textarea:focus { border-color: var(--accent); }
.form-field textarea { resize: vertical; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--text-muted); }

.form-span { grid-column: 1 / -1; }
.form-actions { margin-top: 20px; }

/* Primary button - simple accent color */
.btn-primary {
    background: var(--accent);
    border: 1px solid var(--accent);
    color: #ffffff;
    font-weight: 700;
}

.btn-primary:hover {
    background: var(--color-primary);
    border-color: var(--accent);
    color: var(--text-light);
}

.btn-primary:active {
    background: var(--bg-dark);
}



/* Responsive design for join form */
@media (max-width: 800px) { 
    /* stack the ticker + form on small screens */ 
    .next-session.ticker { 
        grid-template-columns: 1fr; 
        gap: 8px; 
    } 
    
    .tick-item { 
        white-space: normal; 
    } 
    
    .form-grid { 
        grid-template-columns: 1fr; 
    }
    
    /* Video container adjustments for mobile */
    .video-container {
        margin: 15px 0;
        border-radius: var(--radius-m); /* slightly smaller radius on mobile */
    }
    
    .video-container iframe {
        border-radius: var(--radius-m);
    }
    
    /* Mobile adjustments */
    .join-wrapper {
        padding: 16px;
    }
    
    .upcoming-games {
        padding: 2px 10px 8px 10px;
    }
    
    .news-section {
        padding: 12px 14px 16px;
    }
}


/* ========== UPCOMING GAMES SECTION ========== */
.upcoming-games {
    padding: 2px 12px 10px 12px;
}

.upcoming-games h3 {
    margin: 10px 0 12px;
}

/* Game List Container */
.game-list {
    padding: 15px;
    margin-top: 20px;
    text-align: right; /* by default, items align to the right */
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.3);
    position: relative; /* any absolute children would anchor to this */
}

.game-list p,
.game-list button {
    display: inline-block;
    margin: 10px 45px;
    vertical-align: middle;
    font-size: 18px;
    color: var(--text-muted);
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.3);
    font-weight: bold;
    transition: all 0.2s ease;
}

/* Paragraph items get lighter weight so buttons stand out more */
.game-list p {
    font-weight: 400;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.25);
}

.game-list .game-date {
    margin-left: 0;
    margin-right: 170px;
    color: var(--text-light);
}

/* We want the date on the left, everything else on the right.
   Trick: float only the date left; the rest stays inline and right-aligned. 
   it's like having two columns but without the grid headache */
.game-item .game-date {
    float: left;
    text-align: left;
    margin-left: 0;
}

.game-list p:hover {
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.6);
    color: var(--text-light);
    transform: scale(1.02);
}

/* Note: buttons in the game list reuse the shared .btn styles above */

/* Individual Game Items */
/* Reusable list item styles */
.game-item, .news-list .news-item {
    padding: 12px 6px;
    background: var(--bg-dark);
    transition: all var(--ease-fast);
    border-left: 3px solid transparent;
}

.game-item {
    border-bottom: 1px solid var(--bg-dark);
}

.game-item:nth-child(even) { background: var(--bg-dark-alt); } /* zebra stripes to make scanning easier */
.game-item:hover, .news-list .news-item:hover {
    background: var(--color-primary);
    border-left-color: var(--accent);
}
.game-item:last-child { border-bottom: 0; }

/* Team logos in upcoming games */
.game-team-logo {
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .4));
    margin-right: 8px;
    vertical-align: middle;
}


/* ========== RECENT NEWS SECTION ========== */
.recent-news {
    margin-top: 34px;
    padding: 2px 12px 12px 12px;
}

.recent-news h3 {
    margin: 10px 0 12px;
}

.news-strip {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
}

/* News Section (for about.html) */
.news-section {
    padding: 14px 16px 18px;
}

.news-section h2 {
    margin: 8px 0 12px;
}

.news-list {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.news-list .news-item {
    padding: 15px;
    border-radius: var(--radius-m);
}

.news-list .news-item:hover { transform: translateY(-2px); }

.news-list .news-item h3 {
    margin: 0 0 10px 0;
    color: var(--text-light);
    font-size: 18px;
}

.news-list .news-item p {
    margin: 0 0 10px 0;
    line-height: 1.6;
}

.news-date, .tick-label, .conf-title {
    font: 600 12px/1 "Fjalla One", Arial, sans-serif;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-item {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 10px;
    row-gap: 2px;
    align-items: baseline;
    padding: 10px 12px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
}

.news-item time {
    font: 600 12px/1.1 "Fjalla One", Arial, sans-serif;
    letter-spacing: .3px;
    color: var(--text-muted);
    white-space: nowrap;
}

.news-item span {
    font-size: 15px;
    line-height: 1.35;
    color: var(--text-light);
}

.news-item:is(:hover, :focus-visible) {
    background: var(--color-primary);
    color: var(--text-light);
    border-color: var(--accent);
}


@media (min-width: 700px) {
    .news-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
    .news-strip { grid-template-columns: repeat(3, 1fr); }
}

/* respect user preferences - some people get motion sick from animations */
@media (prefers-reduced-motion: reduce) {
    .news-item { transition: none; }
    .news-item:is(:hover, :focus-visible) { transform: none; }
}


/* ========== ABOUT US SECTION ========== */
.about-us {
    overflow: hidden;
    margin-top: 40px;
    padding: 20px;
    background-color: var(--bg-card);
}

/* Default: images just stack. Add .float-left or .float-right to wrap text around them. */
.about-us img {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
    margin: 0 auto 20px;
}

/* If the image floats, we give it outer margins so text doesn't crash into it.
   These override the generic .about-us img margins above. */
.about-us img.float-left {
    margin: 0 32px 20px 0;
}
.about-us img.float-right {
    margin: 20px 0 20px 32px;
}

.about-us p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.22);
}

/* ========== STANDINGS SECTION (OTHER PAGES) ========== */
.standings-wrapper {
    margin-top: 40px;
    padding: 18px 20px 24px;
    background: var(--bg-card);
}

.conf-title { 
    margin: 6px 0 14px;
    font-size: 14px;
    line-height: 1.15;
    letter-spacing: .6px;
}

.standings-scroll {
    overflow-x: auto;
    padding: 4px 6px 10px;
}

.standings-table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
    font-size: 13.5px;
    line-height: 1.25;
    color: var(--text-muted);
}

.standings-table thead th {
    position: sticky;
    top: 0;
    background: var(--color-primary);
    color: var(--text-light);
    font-weight: 600;
    padding: 10px 14px;
    border-bottom: 2px solid var(--accent);
    font-size: 14px;
    letter-spacing: .4px;
}

.standings-table th:first-child,
.standings-table td:first-child {
    text-align: left;
    padding-left: 18px;
}

.standings-table tr:not(:first-child) {
    background: var(--bg-dark);
    transition: .18s;
}

.standings-table tr:nth-child(odd):not(:first-child) {
    background: var(--bg-dark-alt);
}

.standings-table tr:not(:first-child):hover {
    background: var(--color-primary);
    color: var(--text-light);
}

.standings-table td {
    padding: 10px 14px;
    text-align: center;
    border-bottom: 1px solid var(--bg-card);
    white-space: nowrap;
    font-size: 13.5px;
}

.standings-table tr:last-child td {
    border-bottom: 0;
}

.team-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-light);
    font-size: 14px;
}

.team-cell img {
    /* Square logo box: object-fit keeps weird logos from stretching */
    width: 24px;
    height: 24px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center;
    flex-shrink: 0; /* stop the logo from squishing in tight spaces */

    /* Visual polish so all logos look consistent on dark rows */
    padding: 2px; /* small inner gap so edges don’t touch */
    border-radius: 6px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--bg-card);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .4));
}

.stat-pos {
    color: var(--accent);
    font-weight: 600;
}

.streak-hot {
    color: #36d672;
    font-weight: 600;
}

.streak-cold {
    color: #ff5d5d;
    font-weight: 600;
}

/* ========== RESPONSIVE DESIGN ========== */

@media (max-width: 1200px) {

    .game-list p,
    .game-list button {
        margin: 8px 30px;
        font-size: 16px;
    }

    .game-list .game-date {
        margin-right: 120px;
    }

    .game-team-logo {
        width: 28px;
        height: 28px;
        margin-right: 6px;
    }

    .standings-table {
        min-width: 650px;
        font-size: 12.5px;
    }

    .standings-table thead th,
    .standings-table td {
        padding: 8px 10px;
    }

    .team-cell img {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 900px) {
    .game-list p,
    .game-list button {
        display: block;
        margin: 8px auto;
        text-align: center;
    }

    .game-list .game-date { margin-right: 0; }
    .game-list button { margin-top: 12px; }

    /* Mobile override: we still keep the date left so it's easy to scan */
    .game-item .game-date {
        float: none;
        display: block;
        margin: 8px 0;
        text-align: left;
    }

    .game-team-logo { width: 24px; height: 24px; margin-right: 6px; }

    .standings-table { min-width: 500px; font-size: 11px; }
    .standings-table thead th,
    .standings-table td { padding: 6px 8px; }
    .team-cell img { width: 20px; height: 20px; }
}

/* ========== GALLERY PAGE ========== */
.gallery-content {
    margin-bottom: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* magic! makes columns that fit but never go below 200px */
    gap: 15px;
    margin-top: 20px;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-raised);
    transition: transform 0.2s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

.caption {
    text-align: center;
    margin: 16px 0 8px;
    letter-spacing: .5px;
    /* Slightly increased letter spacing helps readability */
    font-size: 14px;
    color: var(--text-muted);
}

.caption a {
    color: var(--accent);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: var(--radius-s);
    display: inline-block;
    background: transparent;
    transition: background .25s ease, color .25s ease, transform var(--ease-fast);
}

.caption a:hover,
.caption a:focus-visible {
    color: var(--text-light);
    background: rgba(123, 63, 184, .18);
    transform: translateY(-2px);
}

.caption a:active {
    transform: translateY(0);
    background: rgba(123, 63, 184, .28);
}

/* ========== ACCESSIBILITY ========== */
/* Simple focus styles */
.btn:focus-visible, .btn-primary:focus-visible, .game-list button:focus-visible,
a[href^="mailto:"]:focus-visible, .news-item:focus-visible, .caption a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ========== MATCHUP COMPONENT (Games pages) ========== */
.matchup {
    --home-color: var(--color-primary);
    --away-color: #146c43; /* default away tint (green) */
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

/* Add padding inside key sections so content doesn't touch edges */
section.panel { padding: 16px; }
.two-col > .panel { padding: 12px; }
.game-meta { padding: 6px 8px; }

.matchup-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: var(--radius-l);
    overflow: hidden;
    box-shadow: var(--shadow-raised);
}

.team-band {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #fff;
}
.team-band.home { background: var(--home-color); }
.team-band.away { background: var(--away-color); }

.team-logo {
    width: 44px;
    height: 44px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    box-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.team-logo img { width: 100%; height: 100%; object-fit: contain; }

.team-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.team-name { font: 700 18px/1 "Fjalla One", Arial, sans-serif; letter-spacing: .3px; }
.team-badge {
    display: inline-block;
    margin-top: 4px;
    font: 600 11px/1 "Fjalla One", Arial, sans-serif;
    letter-spacing: .4px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.4);
    background: rgba(0,0,0,.16);
    color: #fff;
}

.game-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
}
.game-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }

.glance {
    padding: 12px; /* give breathing room inside the glance card */
}
.glance-rows { display: grid; }
.glance-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* left stat, center label, right stat - like a mirror */
    align-items: center;
    gap: 10px;
    padding: 12px 10px;
}
.glance-row + .glance-row { border-top: 1px solid var(--bg-card); }
.stat-side { display: flex; align-items: baseline; gap: 8px; }
.stat-value { font: 700 22px/1 "Fjalla One", Arial, sans-serif; color: var(--text-light); }
.stat-rank { font: 600 11px/1 "Fjalla One", Arial, sans-serif; color: var(--text-muted); letter-spacing: .3px; }
.stat-label { font: 600 12px/1 "Fjalla One", Arial, sans-serif; color: var(--text-muted); letter-spacing: .3px; text-transform: uppercase; }

.two-col { display: grid; grid-template-columns: 1fr; gap: 12px; } /* starts as one column */
@media (min-width: 800px) { .two-col { grid-template-columns: 1fr 1fr; } } /* becomes two equal columns on wider screens */

.leader-list, .injury-list { display: grid; gap: 10px; }
.leader-item {
    display: grid;
    grid-template-columns: auto 1fr auto; /* avatar, player info (stretches), stat number */
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    border-radius: var(--radius-m);
    background: var(--bg-card);
    border: 1px solid var(--bg-card);
}
.leader-item .avatar { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display:flex; align-items:center; justify-content:center; }
.leader-item .avatar img { width: 70%; height: 70%; object-fit: contain; }
.leader-item .who { display: flex; align-items: center; gap: 8px; }
.leader-item .who .name { font-weight: 700; color: var(--text-light); }
.leader-item .who .pos { font: 600 11px/1 "Fjalla One", Arial, sans-serif; text-transform: uppercase; letter-spacing: .4px; padding: 2px 6px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.12); color: #fff; }
.leader-item .sub { font-size: 12px; color: var(--text-muted); }
.leader-item .sub .metric { font: 700 11px/1 "Fjalla One", Arial, sans-serif; text-transform: uppercase; letter-spacing: .4px; color: var(--text-light); margin-right: 6px; }
.leader-item .stat { font-weight: 700; color: var(--text-light); }

.injury-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    border-radius: var(--radius-m);
    background: var(--bg-card);
    border: 1px solid var(--bg-card);
    /* Keep all entries visually consistent in height */
    min-height: 44px;
}
.injury-item .player { display: inline-flex; align-items: center; gap: 8px; }
.injury-item .player .name {
    font-weight: 600;
    color: var(--text-light);
    /* Prevent multi-line wrapping that causes uneven row heights 
       clamp() is sick - it gives us a min, preferred, and max width all in one */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* adds the "..." when text is too long */
    max-width: clamp(120px, 30vw, 220px);
}
.injury-item .player .pos { font: 600 10px/1 "Fjalla One", Arial, sans-serif; text-transform: uppercase; letter-spacing: .4px; padding: 2px 6px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.12); color: #fff; }
.injury-item .participation {
    justify-self: end;
    font: 600 11px/1 "Fjalla One", Arial, sans-serif;
    letter-spacing: .4px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.12);
    color: #fff;
    white-space: nowrap;
}
/* Tint participation badge to match status 
   the ~ selector is cool - it targets elements that come AFTER another element with that class */
.injury-item .status-ok ~ .participation {
    background: rgba(54, 214, 114, .18);
    border-color: rgba(54, 214, 114, .5);
    color: #d8ffe8;
}
.injury-item .status-limited ~ .participation {
    background: rgba(255, 176, 32, .18);
    border-color: rgba(255, 176, 32, .5);
    color: #fff2d6;
}
.injury-item .status-dnp ~ .participation {
    background: rgba(255, 93, 93, .18);
    border-color: rgba(255, 93, 93, .5);
    color: #ffe1e1;
}
.status-dot { width: 10px; height: 10px; border-radius: 50%; }
.status-ok { background: #36d672; }
.status-limited { background: #ffb020; }
.status-dnp { background: #ff5d5d; }

/* Theme helpers for matchup colors (swap classes to change colors) 
   just add one of these classes to change the whole matchup color scheme */
.theme-minotaurs-rebels { --home-color:#2e235f; --away-color:#8c0c0c; }
.theme-minotaurs-admirals { --home-color:#2e235f; --away-color:#bf2e1a; }
.theme-trojans-minotaurs { --home-color:#1a6307; --away-color:#2e235f; }

/* Utility: small subhead spacing so we avoid writing inline styles */
.subhead { margin: 6px 0; }