/**
 * locker-room.css
 * ============================================================
 * Extracted styles for the Locker Room dashboard section.
 * Previously, these were all inline styles scattered throughout
 * index.html. Centralised here for maintainability.
 * ============================================================
 */

/* ──────────────────────────────────────────────────────────────
   LOCKER ROOM: TOP BAR
   ────────────────────────────────────────────────────────────── */

.locker-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

/* ──────────────────────────────────────────────────────────────
   ACTION GRID (Hours · Start Game · Courts)
   ────────────────────────────────────────────────────────────── */

.locker-action-grid {
    grid-template-columns: 1fr 1fr 1fr;
    margin-bottom: 10px;
}

/* Shared card body overlay — gradient overlay on top of bg image */
.lac-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 5px;
    padding: 10px 4px;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.85) 0%, rgba(2, 6, 23, 0.15) 100%);
}

/* HOURS card */
#locker-hours-card {
    border-bottom: 3px solid #a78bfa;
    padding: 0;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

#locker-hours-card .lac-body {
    gap: 4px;
}

#locker-hours-val {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #a78bfa;
    text-shadow: 0 0 8px rgba(167, 139, 250, 0.7);
    line-height: 1;
}

#locker-hours-card .ac-lbl {
    color: #a78bfa;
    text-shadow: 0 0 8px rgba(167, 139, 250, 0.6);
    font-size: 8px;
    letter-spacing: 1.2px;
}

/* START GAME card */
.lac-start-game {
    border-bottom: 3px solid var(--floodlight);
    padding: 0;
    overflow: hidden;
    position: relative;
}

.lac-start-game .ac-lbl {
    color: #38bdf8;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.7);
}

.lac-start-game-icon {
    font-size: 18px;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.7));
}

/* COURTS card */
.lac-courts {
    border-bottom: 3px solid var(--turf);
    padding: 0;
    overflow: hidden;
    position: relative;
}

.lac-courts .ac-lbl {
    color: #4ade80;
    text-shadow: 0 0 8px rgba(52, 211, 153, 0.7);
}

.lac-courts-icon {
    font-size: 20px;
    filter: drop-shadow(0 0 8px rgba(52, 211, 153, 0.6));
}

/* Background images for cards — full-bleed, absolute */
.lac-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.lac-bg-img-courts {
    opacity: 0.55;
}

/* ──────────────────────────────────────────────────────────────
   IDENTITY & LOG SLOTS
   ────────────────────────────────────────────────────────────── */

#pp-identity-strip {
    margin-bottom: 10px;
}

#locker-log-card-slot {
    margin-bottom: 10px;
}

/* ──────────────────────────────────────────────────────────────
   CALENDAR DAY DROPDOWN (slides open below strip)
   ────────────────────────────────────────────────────────────── */

#cal-day-dropdown {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.28s ease;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    margin-top: 0;
}

/* ──────────────────────────────────────────────────────────────
   LOCKER DIGEST CONTAINER
   ────────────────────────────────────────────────────────────── */

#locker-digest-container {
    margin-top: 6px;
}

/* Legacy hidden sections (kept as silent render targets for JS) */
#locker-schedule,
#label-club-sessions,
#locker-club-schedule,
#label-club-events,
#locker-event-schedule,
#label-tournaments,
#locker-tournament-schedule {
    display: none !important;
}

/* ──────────────────────────────────────────────────────────────
   MY CLUBS SECTION
   ────────────────────────────────────────────────────────────── */

.locker-my-clubs-header {
    margin-bottom: 8px;
}

/* ELO card container — relative for Club Hub btn positioning */
#elo-card-container {
    position: relative;
}

/* ELO card inner — static, no flip */
#elo-card-inner {
    transform: none !important;
    transition: none !important;
    cursor: default;
}

/* ── Club Hub CTA button ── */
#pp-club-hub-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 11;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(14, 165, 233, 0.12));
    border: 1px solid rgba(56, 189, 248, 0.45);
    border-radius: 20px;
    padding: 6px 12px 6px 6px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.12s, box-shadow 0.15s;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.18), 0 2px 10px rgba(0, 0, 0, 0.4);
}

#pp-club-hub-btn:active,
#pp-club-hub-btn.pressed {
    transform: scale(0.93);
}

/* Club logo pill inside the hub button */
#pp-front-club-logo {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    flex-shrink: 0;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    overflow: hidden;
    line-height: 1;
}

/* Text label inside hub button */
.club-hub-btn-label {
    font-size: 10px;
    font-weight: 900;
    color: #38bdf8;
    letter-spacing: 0.8px;
    white-space: nowrap;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

/* Chevron inside hub button */
.club-hub-btn-chevron {
    font-size: 13px;
    color: rgba(56, 189, 248, 0.6);
    font-weight: 700;
}

/* ──────────────────────────────────────────────────────────────
   CLUB SCHEDULE CTA CARD (Club Tier only)
   ────────────────────────────────────────────────────────────── */

#club-games-cta {
    display: none;
    perspective: 1000px;
    margin-bottom: 14px;
    min-height: 72px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* Club Tier: reveal card */
.club-tier #club-games-cta {
    display: block !important;
}

.club-schedule-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.14) 0%, rgba(56, 189, 248, 0.05) 100%);
    border: 1px solid rgba(56, 189, 248, 0.45);
    border-radius: 14px;
    padding: 13px 16px;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    user-select: none;
}

.club-schedule-inner:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(56, 189, 248, 0.2);
}

.club-schedule-inner:active {
    transform: scale(0.98);
}

/* Shared left accent bar style */
.lc-accent-bar {
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    background: linear-gradient(180deg, #38bdf8, rgba(56, 189, 248, 0.2));
    border-radius: 0 2px 2px 0;
    opacity: 0.8;
}

.club-schedule-text {
    padding-left: 6px;
}

.lc-eyebrow {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #38bdf8;
    margin-bottom: 4px;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

.lc-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lc-title {
    font-size: 14px;
    font-weight: 800;
    color: white;
    letter-spacing: 0.3px;
    font-family: 'Oswald', sans-serif;
}

.lc-sub {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 3px;
}

.lc-cta-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 36px;
}

.lc-cta-icon {
    font-size: 26px;
    opacity: 0.7;
}

.lc-tap-hint {
    font-size: 9px;
    color: rgba(56, 189, 248, 0.9);
    font-weight: 800;
    letter-spacing: 0.8px;
}

/* ──────────────────────────────────────────────────────────────
   LEAGUE DIVISION FLIP CARD
   ────────────────────────────────────────────────────────────── */

#lr-division-path {
    perspective: 1000px;
    margin-bottom: 14px;
    min-height: 72px;
}

#lr-division-flip-inner {
    position: relative;
    transition: transform 0.45s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
    min-height: 72px;
}

#lr-div-front {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    position: relative;
}

#lr-division-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.14) 0%, rgba(16, 185, 129, 0.08) 100%);
    border: 1px solid rgba(56, 189, 248, 0.45);
    border-radius: 14px;
    padding: 13px 16px;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Accent bar — League (blue to green gradient) */
.lc-accent-bar-league {
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    background: linear-gradient(180deg, #38bdf8, #10b981);
    border-radius: 0 2px 2px 0;
    opacity: 0.7;
}

.lr-front-text {
    padding-left: 6px;
}

.lr-front-eyebrow {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #38bdf8;
    margin-bottom: 4px;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

#lr-div-name {
    font-size: 14px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.3px;
    font-family: 'Oswald', sans-serif;
}

#lr-div-pos {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.65);
    padding: 2px 8px;
    border-radius: 5px;
    letter-spacing: 0.5px;
}

#lr-div-season {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 3px;
}

.lr-front-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 36px;
}

#lr-div-icon {
    font-size: 26px;
    opacity: 0.4;
    transition: opacity 0.3s;
}

#lr-div-flip-hint {
    font-size: 9px;
    color: rgba(56, 189, 248, 0.9);
    font-weight: 800;
    letter-spacing: 0.8px;
    display: none;
    animation: lr-hint-pulse 1.8s ease-in-out infinite;
}

/* BACK FACE */
#lr-div-back {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transform: rotateY(180deg);
}

.lr-back-inner {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(16, 185, 129, 0.07));
    border: 1px solid rgba(56, 189, 248, 0.45);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.12);
}

.lr-back-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.lr-back-eyebrow {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #38bdf8;
    text-transform: uppercase;
}

#lr-back-div-name {
    font-size: 14px;
    font-weight: 800;
    color: white;
    margin-top: 2px;
    font-family: 'Oswald', sans-serif;
}

.lr-back-close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.5);
    border-radius: 7px;
    padding: 5px 9px;
    font-size: 10px;
    cursor: pointer;
    font-weight: 700;
}

#lr-back-roster {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

#lr-back-status {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 10px;
}

#lr-go-division-btn {
    width: 100%;
    background: rgba(56, 189, 248, 0.12);
    color: #93c5fd;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 9px;
    padding: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
}

#lr-go-division-btn:hover {
    background: rgba(56, 189, 248, 0.22);
    border-color: rgba(56, 189, 248, 0.55);
}

/* Hint pulse keyframe */
@keyframes lr-hint-pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translateX(0);
    }

    50% {
        opacity: 1;
        transform: translateX(2px);
    }
}

/* ──────────────────────────────────────────────────────────────
   GLOW CARD ANIMATIONS (session cards in locker)
   ────────────────────────────────────────────────────────────── */

@keyframes lockerCardGlowRotate {
    from {
        --locker-card-angle: 0deg;
    }

    to {
        --locker-card-angle: 360deg;
    }
}

/* ──────────────────────────────────────────────────────────────
   RANKING FLIP CARD  (lrc-*)
   Shell previously built via JS string concatenation in
   locker-ranking-card.js — now static HTML in index.html,
   styled here.
   ────────────────────────────────────────────────────────────── */

.lrc-perspective {
    perspective: 1000px;
}

.lrc-flip-inner {
    display: grid;
    transition: transform 0.45s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}

/* Shared face rules */
.lrc-face {
    grid-area: 1 / 1;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}


.lrc-face-back {
    transform: rotateY(180deg);
}

/* Card body */
.lrc-card {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

/* Header row */
.lrc-hdr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
    /* Fix: allow wrapping if too narrow */
    gap: 8px;
    /* Add gap for wrapped items */
}

.lrc-hdr-label {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    flex: 1;
    /* Fix: allow label to shrink/grow */
    min-width: 0;
    /* Fix: allow text truncation */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tab row */
.lrc-tabs {
    display: flex;
    gap: 4px;
    /* Slightly reduced gap */
    align-items: center;
    flex-shrink: 0;
    /* Prevent tabs from shrinking below content size */
}

.lrc-tab {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.65);
    border: none;
    border-radius: 5px;
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.4px;
    padding: 3px 7px;
    cursor: pointer;
    transition: all 0.15s;
    font-family: 'Manrope', sans-serif;
}

.lrc-tab.lrc-tab-active {
    background: var(--floodlight);
    color: var(--bg-deep);
}

/* Flip button — circular icon button */
.lrc-flip-btn {
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    transition: all 0.18s;
}

.lrc-flip-btn:hover {
    background: rgba(56, 189, 248, 0.18);
    transform: scale(1.1);
}

/* Back flip button — shows club avatar/initial */
.lrc-flip-btn-back {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.35);
    overflow: hidden;
}

.lrc-flip-btn-back:hover {
    border-color: rgba(255, 255, 255, 0.55);
}