/* PTF Bets — Vegas-neon sportsbook skin, layered on the shared site theme.
   Redefining the shared --accent/--card/--border/etc. custom properties here
   (scoped to .ptf-theme) reskins every shared component — header, nav,
   buttons, cards, matchup/bet rows — without touching css/style.css or
   duplicating its rules.

   --ptf-team-1 / --ptf-team-2 are the two neon accent colors. They default to
   a placeholder red/blue below. Once ptf_teams grows real color columns,
   set these two custom properties from the signed-in user's chosen team
   (e.g. document.documentElement.style.setProperty('--ptf-team-1', hex)) and
   every neon-glow element on the page repaints automatically. */

.ptf-theme {
    --ptf-team-1: #ff2150;
    --ptf-team-2: #1fc8ff;

    --bg:            #07060d;
    --card:          #14101f;
    --card-alt:      #1b1430;
    --border:        #3a2a5c;
    --text:          #f5f0ff;
    --muted:         #948dba;
    --subtle:        #1f1833;

    --accent:        var(--ptf-team-1);
    --accent-dark:   #c4123c;
    --accent-pink:   var(--ptf-team-1);
    --accent-blue:   var(--ptf-team-2);
    --accent-yellow: #ffd23f;
}

.ptf-theme body,
body.ptf-theme {
    background:
        radial-gradient(ellipse 480px 260px at 10% 0%, rgba(31, 200, 255, 0.16), transparent 60%),
        radial-gradient(ellipse 420px 280px at 95% 10%, rgba(255, 33, 80, 0.16), transparent 60%),
        radial-gradient(ellipse 600px 360px at 50% 100%, rgba(255, 210, 63, 0.06), transparent 65%),
        var(--bg);
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.ptf-theme .site-header {
    background:
        radial-gradient(ellipse 520px 220px at 50% -10%, rgba(255, 33, 80, 0.18), transparent 65%),
        radial-gradient(ellipse 520px 220px at 50% 110%, rgba(31, 200, 255, 0.16), transparent 65%),
        #0b0914;
    border-bottom: 4px solid var(--text);
    border-image: repeating-linear-gradient(
        -45deg,
        var(--ptf-team-1) 0 18px,
        var(--ptf-team-2) 18px 36px
    ) 4;
}

.ptf-bets-logo {
    display: block;
    max-width: 280px;
    height: auto;
    margin: 8px auto 0;
    filter:
        drop-shadow(0 0 10px rgba(255, 33, 80, 0.55))
        drop-shadow(0 0 18px rgba(31, 200, 255, 0.35));
}

.ptf-theme .site-tagline {
    color: var(--ptf-team-2);
    text-shadow: 0 0 8px rgba(31, 200, 255, 0.5);
}

.ptf-hub-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 999px;
    padding: 6px 14px;
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: border-color 0.15s, color 0.15s;
}
.ptf-hub-link:hover {
    border-color: var(--ptf-team-2);
    color: var(--text);
}
.ptf-hub-link-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

/* ── Game nav ───────────────────────────────────────────────────────────── */
.ptf-game-nav {
    justify-content: center;
    gap: 10px;
    border-bottom: 1px solid var(--border);
}

.ptf-nav-link {
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 999px;
    padding: 8px 20px;
    color: var(--muted);
    text-decoration: none;
    font-family: 'Fredoka', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.03em;
    transition: border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.ptf-nav-link:hover {
    border-color: var(--ptf-team-2);
    color: var(--text);
}
.ptf-nav-link.is-active {
    border-color: var(--ptf-team-1);
    color: var(--text);
    box-shadow: 0 0 12px rgba(255, 33, 80, 0.45);
}

/* ── Cards ──────────────────────────────────────────────────────────────── */
.ptf-theme .home-section .section-title {
    text-shadow: 0 0 6px rgba(255, 33, 80, 0.35);
}

.ptf-theme .matchup-card {
    border: 2px solid var(--border);
    box-shadow: 0 0 14px rgba(31, 200, 255, 0.18);
}

.ptf-theme .btn-primary,
.ptf-theme .matchup-bet-form button {
    box-shadow: 0 0 12px rgba(255, 33, 80, 0.4);
}

/* ── Team pick ──────────────────────────────────────────────────────────── */
.team-pick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.team-pick-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: var(--card-alt);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 14px 10px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.team-pick-card:hover {
    border-color: var(--ptf-team-2);
    box-shadow: 0 0 12px rgba(31, 200, 255, 0.3);
}

.team-pick-card img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* ── Admin panel ────────────────────────────────────────────────────────── */
.admin-lock-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.admin-lock-form input {
    background: var(--card-alt);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 8px 10px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
}
