/* PAGE SHELL */

.lb-body {
    margin: 0;
    min-height: 100vh;
    background-color: #000000;
    color: #ffffff;
    font-family: "Oswald", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}
/* ===========================
   HERO LOGO BANNER 
   =========================== */

/* ===========================
   HERO LOGO BANNER (HSL blend)
   =========================== */

.lb-hero {
    width: 100%;
    padding: 60px 0 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;

    /* YOUR EXACT COLORS */
    background: radial-gradient(circle at center,
            hsl(197, 9%, 15%) 0%,
            /* soft center glow */
            hsl(200, 33%, 4%) 70%,
            /* deep outer edge */
            hsl(200, 33%, 4%) 100%);
}

.lb-hero-logo {
    width: 520px;
    /* feel free to adjust */
    max-width: 90%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0px 0px 12px rgba(0, 0, 0, 1));
}

.lb-hero-logo {
    width: 420px;
    /* adjust size */
    max-width: 90%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0px 0px 14px rgba(0, 0, 0, 1));
}
.lb-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* top grey strip for logo */

.lb-top-strip {
    background-color: #d9d9d9;
    padding: 12px 24px;
}



/* main gradient card */

.lb-main-card {
    flex: 1 1 auto;

    /* subtle vertical blend using your HSL palette */
    background: linear-gradient(180deg,
            hsl(200, 33%, 4%) 0%,
            hsl(197, 9%, 15%) 40%,
            hsl(200, 33%, 4%) 100%);

    padding: 24px 40px 40px;
}

/* TITLES */

.lb-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.lb-kicker,
.lb-main-title {
    font-family: "Jomolhari", serif;
    font-size: 26px;
    color: #999999;
    line-height: 1.1;
    text-align: left;
}

.lb-kicker {
    text-transform: uppercase;
    border-bottom: 2px solid #2e57de;
    width: fit-content;
}

.lb-main-title {
    margin-top: 4px;
    text-transform: uppercase;
    border-bottom: 2px solid #2e57de;
    width: fit-content;
}

/* right (event + course) */

.lb-title-right {
    text-align: right;
}

.lb-event-name {
    font-family: "Labrada", serif;
    font-size: 28px;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    text-transform: uppercase;
}

.lb-course-name {
    margin-top: 4px;
    font-family: "Paytone One", sans-serif;
    font-size: 26px;
    letter-spacing: 1.8px;
    color: #fffdf5;
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

/* FLIGHT TABS */

.lb-flight-tabs {
    margin-bottom: 12px;
}

#flightTabs {
    display: flex;
    gap: 12px;
}

#flightTabs .nav-link {
    background: rgba(86, 109, 177, 0);
    color: #ffffff !important;
    border-radius: 8px;
    border: 2px solid #043dfb;
    padding: 10px 24px;
    font-family: "Oswald", sans-serif;
    font-size: 14px;
    text-align: center;
    box-shadow: inset 0 4px 4px rgba(0, 0, 0, 0.25);
    min-width: 170px;
}

#flightTabs .nav-link.active {
    background-color: #043dfb;
}
#flightTabs .nav-link:hover {
    background-color: #8395d0;
}
/* =========================================
   VIEW TABS: LEADERBOARD / SKINS / CTP
   ========================================= */

.lb-view-tabs {
    margin-top: 28px;
    /* space below flight buttons */
    margin-bottom: 18px;
    /* space above table */
}

/* dark bar the tabs sit on */
.lb-view-nav {
    padding: 6px 10px;
    display: inline-flex;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 999px;
    /* nice pill bar */
    border: 1px solid rgba(244, 182, 12, 0.35);
}

/* base appearance for all tabs */
.lb-view-nav .nav-link {
    border: none !important;
    background: transparent !important;
    color: #e5e5e5 !important;

    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;

    padding: 8px 18px;
    margin: 0 4px;
    border-radius: 999px !important;
    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease;
}

/* active tab – very obvious blue pill */
.lb-view-nav .nav-link.active {
    background-color: #2564eb5e !important;
    /* bright blue */
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
}

/* hover state for inactive tabs */
.lb-view-nav .nav-link:hover:not(.active) {
    background-color: rgb(124, 149, 204) !important;
    color: #ffffff !important;
}
/* RANK BANNER */

.user-rank-banner {
    text-align: center;
    margin: 6px 0 8px;
    font-family: "Oswald", sans-serif;
    font-size: 13px;
    color: #ffffff;
}

.user-rank-number {
    font-family: "Orelega One", cursive;
    font-size: 18px;
    color: #f2c308;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.7);
}

/* TABLE */

.lb-table-wrapper {
    margin-top: 4px;
}

.lb-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

/* kill Bootstrap backgrounds so it stays dark/white */

.lb-table> :not(caption)>*>* {
    background-color: transparent !important;
    color: #ffffff !important;
}

/* header */

/* HEADER ROW — consistent, bold, readable */
.lb-table thead th {
    font-size: 18px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em;
    color: #ffffff;
    padding-bottom: 12px;
}

/* body cells */

.lb-table tbody td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 8px;
    font-family: "Oswald", sans-serif;
    font-size: 13px;
    vertical-align: middle;
}

/* force Score + Points columns to line up */
.lb-table thead th.col-score,
.lb-table tbody td.col-score {
    text-align: right;
    padding-right: 10px;
}

.lb-table thead th.col-points,
.lb-table tbody td.col-points {
    text-align: right;
    padding-right: 10px;
    /* same gutter as Score */
}
/* PLAYER + VENUE TEXT — same size, same weight */
.lb-table tbody td.col-player,
.lb-table tbody td.col-venue {
    font-size: 17px !important;
    font-weight: 500 !important;
    color: #ffffff;
}

/* column widths */

.col-rank {
    width: 80px;
}

.col-player {
    width: 40%;
}

.col-venue {
    width: 30%;
}

.col-score {
    width: 110px;
    text-align: right;
}

.col-points {
    width: 80px;
    text-align: right;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    
    /* keeps digits evenly spaced */
}
/* row hover */

.lb-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.25);
}

/* RANK + TROPHY */

.lb-rank-cell {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lb-rank-number {
    font-size: 16px;
    font-weight: 600;
}

.trophy-icon {
    font-size: 18px;
}

/* AVATAR + NAME */

.player-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.player-name {
    font-size: 18px
}

/* SCORE (NO BORDER, LIKE OLD EVENT PAGE) */

/* SCORE (NO BORDER, INLINE LIKE OLD EVENT PAGE) */
/* ===========================
   SCORE HOVER (opens scorecard)
   =========================== */

.lb-score-link {
    cursor: pointer;
    text-decoration: none;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
}

/* hover effect: show it's clickable */
.lb-score-link:hover  {
    color: #f4b60c;                 /* gold highlight */
    text-decoration: underline;
    text-underline-offset: 3px;

}


/* gross / slash / net on one line */

/* SCORE FORMATTING — small gross, bold net */
.lb-score-gross {
    font-size: 16px;
    opacity: 0.7;
    /* slightly faded */
    font-weight: 400;
}

.lb-score-net {
    font-size: 22px;
    font-weight: 700;
    color: #f4b60c;
    /* same gold used in your existing UI */
    margin-left: 4px;
}



/* responsive tweaks */

@media (max-width: 768px) {
    .lb-main-card {
        padding: 14px 10px 24px;
    }

    #flightTabs {
        flex-wrap: wrap;
    }

    #flightTabs .nav-link {
        font-size: 10px;
        min-width: 130px;
        padding: 8px 16px;
    }

    .lb-event-name {
        font-size: 18px;
    }

    .lb-course-name {
        font-size: 16px;
    }

    .lb-table thead th,
    .lb-table tbody td {
        font-size: 10px;
    }

    .lb-score-gross {
        font-size: 10px;
    }

    .lb-score-net {
        font-size: 14px;
    }
}
/* ===========================
   DESKTOP FONT UPSCALE
   =========================== */
@media (min-width: 992px) {

    /* big page titles */
    .lb-kicker,
    .lb-main-title {
        font-size: 32px;
    }

    .lb-event-name {
        font-size: 28px;
    }

    .lb-course-name {
        font-size: 24px;
    }

    /* flight selector pills */
    #flightTabs .nav-link {
        font-size: 16px;
        padding: 10px 30px;
        min-width: 190px;
    }

    /* Leaderboard / Skins / CTP tabs */
    #viewTabs .nav-link {
        font-size: 14px;
        padding: 6px 18px 8px;
    }

    /* header + row text (Rank, Player, Home Venue, etc.) */
    .lb-table thead th {
        font-size: 14px;
    }

    .lb-table tbody td {
        font-size: 14px;
    }

    /* make points column read clearly */
    .lb-table tbody td.col-points {
        font-size: 16px;
        font-weight: 700;
    }

    /* score sizing: gross small, net big */
    .lb-score-gross {
        font-size: 13px;
    }

    .lb-score-net {
        font-size: 20px;
    }
}
/* =========================================
   MOBILE TWEAKS – HIDE HOME VENUE & SQUEEZE COLUMNS
   ========================================= */
@media (max-width: 768px) {

    .lb-main-card {
        padding: 14px 10px 24px;
    }

    .lb-table-wrapper {
        overflow-x: hidden;
        /* no horizontal scroll needed */
    }

    .lb-table {
        width: 100%;
        min-width: 100%;
        /* DO NOT be wider than the phone */
        table-layout: fixed;
        /* honor our % widths */
    }

    /* Hide Home Venue column completely on mobile */
    .lb-table thead th.col-venue,
    .lb-table tbody td.col-venue {
        display: none !important;
    }

    /* Column proportions on mobile (sum ~= 100%) */
    .col-rank {
        width: 12% !important;
        white-space: nowrap;
    }

    .col-player {
        width: 40% !important;
        /* smaller than before */
        max-width: 40% !important;
        overflow: hidden;
    }

    .col-score {
        width: 23% !important;
        /* give score more room */
        white-space: nowrap;
        text-align: right;
    }

    .col-points {
        width: 25% !important;
        /* and points even a bit more */
        white-space: nowrap;
        text-align: right;
    }

    /* Smaller headers & cells */
    .lb-table thead th {
        font-size: 10px !important;
        padding: 6px 4px !important;
    }

    .lb-table tbody td {
        font-size: 10px !important;
        padding: 6px 4px !important;
    }

    /* Player text & avatar */
    .player-info {
        gap: 4px;
    }

    .player-avatar {
        width: 20px;
        height: 20px;
    }

    .player-name {
        font-size: 11px !important;
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        /* truncate long usernames cleanly */
    }

    /* Score sizing */
    .lb-score-gross {
        font-size: 11px !important;
    }

    .lb-score-net {
        font-size: 15px !important;
    }
}
/* =========================================
   MOBILE – SHRINK TITLES / HEADERS / TABS
   ========================================= */
@media (max-width: 768px) {

    /* hero strip smaller */
    .lb-hero {
        padding: 28px 0 16px;
    }

    .lb-hero-logo {
        width: 300px;
        max-width: 85%;
    }

    /* stack titles & shrink fonts */
    .lb-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-bottom: 14px;
    }

    .lb-kicker,
    .lb-main-title {
        font-size: 18px;
        line-height: 1.05;
    }

    .lb-title-right {
        text-align: left;
    }

    .lb-event-name {
        font-size: 16px;
        letter-spacing: 1px;
    }

    .lb-course-name {
        font-size: 14px;
        letter-spacing: 0.8px;
    }

    /* flight buttons a bit smaller */
    #flightTabs .nav-link {
        font-size: 11px;
        padding: 6px 14px;
        min-width: 130px;
    }

    /* Leaderboard / Skins / CTP pills smaller too */
    .lb-view-nav {
        padding: 4px 8px;
    }

    .lb-view-nav .nav-link {
        font-size: 11px;
        padding: 5px 10px;
    }

    /* header row text not so chunky */
    .lb-table thead th {
        font-size: 9px !important;
        font-weight: 600 !important;
        letter-spacing: 0.03em;
        padding: 4px 3px !important;
    }
}
/* =========================================
   LEADERBOARD / SKINS / CTP – MATCH DASHBOARD THEME
   Graphite + Soft Gold, NO BLUE
   ========================================= */

/* Page background */
.lb-body {
    background-color: #0a0b0e; /* same base as dashboard */
}

/* Hero strip behind logo – neutral graphite glow */
.lb-hero {
    background: radial-gradient(
        circle at center,
        #2b2f37 0%,     /* soft center glow */
        #15171c 70%,    /* deep edge */
        #101217 100%
    );
}

/* Main content card under hero – graphite panel */
.lb-main-card {
    background: linear-gradient(
        180deg,
        #31343c 0%,      /* graphite */
        #3a3e48 40%,     /* lighter band */
        #2d3037 100%     /* dark steel */
    );
    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.75),
        0 0 12px rgba(0, 0, 0, 0.8);
}

/* Titles – swap blue underline for soft gold */
.lb-kicker,
.lb-main-title {
    color: #c5c7ce;
}

.lb-kicker,
.lb-main-title {
    border-bottom: 2px solid rgba(244, 182, 12, 0.75); /* gold accent line */
}

/* =========================
   FLIGHT TABS (Champ / A / B / etc.)
   ========================= */

#flightTabs .nav-link {
    background: rgba(16, 19, 26, 0.9);
    color: #f5f5f5 !important;
    border-radius: 999px;
    border: 1px solid rgba(244, 182, 12, 0.45); /* gold ring */
    padding: 8px 22px;
    font-family: "Oswald", sans-serif;
    font-size: 14px;
    text-align: center;
    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.7),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Active flight = subtle gold pill */
#flightTabs .nav-link.active {
    background: linear-gradient(
        135deg,
        #3b3f48,
        #5a5239,
        #8f7a49
    );
    border-color: rgba(244, 182, 12, 0.9);
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.85),
        0 0 14px rgba(244, 182, 12, 0.35);
}

/* Hover for inactive flights */
#flightTabs .nav-link:hover:not(.active) {
    background: rgba(60, 64, 75, 0.95);
    border-color: rgba(244, 182, 12, 0.65);
}

/* =========================
   VIEW TABS (Leaderboard / Skins / CTP)
   ========================= */

.lb-view-nav {
    padding: 6px 10px;
    display: inline-flex;
    background: rgba(10, 12, 18, 0.9);
    border-radius: 999px;
    border: 1px solid rgba(244, 182, 12, 0.45);
}

/* base appearance for all view tabs */
.lb-view-nav .nav-link {
    border: none !important;
    background: transparent !important;
    color: #e5e5e5 !important;

    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;

    padding: 7px 18px;
    margin: 0 4px;
    border-radius: 999px !important;
    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease;
}

/* Active view tab – gold/graphite pill */
.lb-view-nav .nav-link.active {
    background: linear-gradient(
        135deg,
        #3d414b,
        #5b5138,
        #8e7a4a
    ) !important;
    color: #ffffff !important;
    box-shadow:
        0 10px 22px rgba(0, 0, 0, 0.8),
        0 0 12px rgba(244, 182, 12, 0.35);
}

/* Hover state for inactive view tabs */
.lb-view-nav .nav-link:hover:not(.active) {
    background: rgba(63, 67, 78, 0.95) !important;
    color: #ffffff !important;
}

/* =========================
   TABLE + ROW HOVER
   ========================= */

.lb-table > :not(caption) > * > * {
    background-color: transparent !important;
    color: #ffffff !important;
}

/* Row hover – soft graphite, not black */
.lb-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.04);
}
/* =========================================
   GLOBAL BACK BUTTON (AG)
   Use on ALL pages: class="ag-back-btn"
   ========================================= */

.ag-back-btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 18px auto 10px;
  padding: 10px 16px;
  border-radius: 999px;

  font-family: "Oswald", sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;

  color: #ffffff;

  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(244,182,12,0.55);

  box-shadow:
    0 10px 22px rgba(0,0,0,0.55),
    0 0 14px rgba(244,182,12,0.35);
}

.ag-back-btn:hover{
  background: rgba(0,0,0,0.55);
  border-color: rgba(244,182,12,0.75);
  box-shadow:
    0 12px 26px rgba(0,0,0,0.65),
    0 0 18px rgba(244,182,12,0.55);
}

@media (max-width: 768px){
  .ag-back-btn{
    margin: 14px 12px 10px;
  }
}
