/* ==========================================================================
   DASHBOARD PAGE STYLES (v5.0)
   --------------------------------------------------------------------------
   Scoped under .page-active-picks to avoid affecting other pages.
   Follows modular architecture pattern from weekly-lineup.css
   ========================================================================== */

/* Dashboard-level accent tokens */
body.page-active-picks {
    --dashboard-accent-primary: var(--color-primary-bright, #00d689);
    --dashboard-accent-secondary: var(--color-accent-bright, #80deea);
    --dashboard-surface: rgba(6, 14, 24, 0.9);
    --dashboard-border: rgba(0, 214, 137, 0.25);
    --dashboard-text: #e6f2f6;
    --font-body: var(--font-ui);
    --font-display: 'Oswald', var(--font-ui);
    font-family: var(--font-body);

    /* Lighter background to show bear image - match weekly-lineup */
    background-color: rgba(3, 11, 22, 0.18);
}

/* Override the heavy dark overlay from page-layout.css */
body.page-active-picks::before {
    background: linear-gradient(180deg,
        rgba(4, 10, 20, 0.12) 0%,
        rgba(4, 10, 20, 0.10) 15%,
        rgba(4, 10, 20, 0.08) 30%,
        rgba(4, 10, 20, 0.14) 50%,
        rgba(4, 10, 20, 0.18) 75%,
        rgba(4, 10, 20, 0.25) 100%);
    opacity: 0.2;
    animation: none;
}

/* Subtle wash to balance bear image visibility */
body.page-active-picks::after {
    background: rgba(3, 11, 22, 0.5);
    mix-blend-mode: multiply;
    opacity: 0.6;
}

/* ==========================================================================
   NAV ACTIONS (Dashboard only)
   ========================================================================== */
body.page-active-picks .nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

body.page-active-picks .last-refresh {
    font-family: var(--font-ui);
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-normal);
    color: rgba(214, 232, 236, 0.75);
    white-space: nowrap;
}

body.page-active-picks .refresh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(0, 214, 137, 0.25);
    background: rgba(8, 18, 32, 0.55);
    color: rgba(232, 240, 242, 0.95);
    cursor: pointer;
    transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

body.page-active-picks .refresh-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 214, 137, 0.45);
    background: rgba(0, 214, 137, 0.10);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35), 0 0 18px rgba(0, 214, 137, 0.12);
}

body.page-active-picks .user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-ui);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: rgba(232, 240, 242, 0.95);
    background: rgba(0, 214, 137, 0.10);
    border: 1px solid rgba(0, 214, 137, 0.25);
}

/* ==========================================================================
   KPI TILES (Dashboard refinements)
   ========================================================================== */
body.page-active-picks .kpi-tiles {
    gap: 10px;
    padding: 0 4px;
}

body.page-active-picks .kpi-tile {
    background: linear-gradient(160deg, rgba(8, 18, 32, 0.9) 0%, rgba(6, 14, 24, 0.9) 35%, rgba(0, 214, 137, 0.08) 100%);
    border: 1px solid rgba(0, 214, 137, 0.35);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 214, 137, 0.08) inset;
    border-radius: 8px;
    cursor: pointer;
}

body.page-active-picks .kpi-tile:hover {
    border-color: rgba(0, 214, 137, 0.55);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 214, 137, 0.16) inset;
    transform: translateY(-2px);
}

body.page-active-picks .kpi-tile-layer {
    display: none;
}

body.page-active-picks .kpi-tile-layer.active {
    display: block;
    animation: dashboardTileFade 280ms ease;
}

body.page-active-picks .kpi-label {
    color: rgba(214, 232, 236, 0.8);
    letter-spacing: 0.08em;
    font-size: var(--text-xs);
    text-transform: uppercase;
}

body.page-active-picks .kpi-value {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

body.page-active-picks .kpi-value.positive {
    color: var(--dashboard-accent-primary);
}

body.page-active-picks .kpi-subtext {
    color: var(--dashboard-accent-secondary);
    opacity: 0.95;
    font-size: var(--text-xs);
}

@keyframes dashboardTileFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   TABLE REFINEMENTS (Dashboard only)
   ========================================================================== */
body.page-active-picks .table-container {
    background: rgba(5, 12, 22, 0.78);
    border: 1px solid rgba(0, 214, 137, 0.18);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

body.page-active-picks .picks-table thead th {
    background: linear-gradient(180deg, rgba(0, 214, 137, 0.12) 0%, rgba(0, 214, 137, 0.04) 100%);
    border-bottom: 1px solid rgba(0, 214, 137, 0.35);
    color: #f4fbff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

body.page-active-picks .picks-table tbody tr {
    border-bottom: 1px solid rgba(0, 214, 137, 0.08);
}

body.page-active-picks .picks-table tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.01);
}

body.page-active-picks .picks-table tbody tr:hover {
    background: rgba(0, 214, 137, 0.07);
}

/* ==========================================================================
   STATUS BADGES (Dashboard)
   ========================================================================== */
body.page-active-picks .status-badge {
    letter-spacing: 0.03em;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

body.page-active-picks .status-badge.status-win {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.16), rgba(16, 185, 129, 0.28));
    color: #d2fbe5;
}

body.page-active-picks .status-badge.status-loss {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(248, 113, 113, 0.16));
    color: #ffe1e1;
}

body.page-active-picks .status-badge.status-live {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(59, 130, 246, 0.16));
    color: #d9ecff;
}

body.page-active-picks .status-badge.status-pending {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.18), rgba(245, 158, 11, 0.16));
    color: #fff3d6;
}

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */
body.page-active-picks .back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--dashboard-accent-primary);
    border: none;
    color: #000;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1000;
}

body.page-active-picks .back-to-top:not([hidden]) {
    opacity: 1;
    transform: translateY(0);
}

body.page-active-picks .back-to-top::before {
    content: '↑';
    font-size: 1.25rem;
    font-weight: bold;
}
