/* ==========================================================================
   MLBGambling.com SHARED STYLESHEET   (deploy to /assets/site.css)
   Every page links it from includes/header.php.
   When you change this file, bump the ?v= number in includes/header.php so browsers fetch the new copy.
   ========================================================================== */

/* ---- 1. COLORS - change the whole site's look here ---- */
:root{
  --bg:#0d1526;          /* page background (ballpark navy) */
  --panel:#15203a;       /* cards */
  --panel2:#1b2847;      /* raised / hover */
  --border:#26355a;
  --text:#ffffff;        /* main text */
  --cream:#f2e8cf;       /* headings, accents, the brand's second color */
  --sub:#93a1b8;         /* secondary text */
  --red:#d7263d;         /* brand red: buttons, logo dot, highlights */
  --red-hover:#b81f33;
  --win:#2ecc71;         /* wins / profit */
  --loss:#ff6b6b;        /* losses - lighter coral so it never looks like the brand red */
  --font:'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
}

/* ---- 2. BASE ---- */
*{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{ margin:0; background:var(--bg); color:var(--text); font-family:var(--font); font-size:15px; line-height:1.5;
      display:flex; flex-direction:column; min-height:100vh; }
a{ color:var(--cream); text-decoration:none; }
a:hover{ color:#fff; }
.wrap{ width:100%; max-width:1200px; margin:0 auto; padding:20px 16px 60px; flex:1; }
h1,h2,h3{ color:var(--cream); margin:0; line-height:1.25; }
.muted{ color:var(--sub); }

/* ---- 3. HEADER ---- */
.site-nav{ background:var(--bg); border-bottom:1px solid var(--border); position:sticky; top:0; z-index:100; }
.nav-inner{ max-width:1200px; margin:0 auto; padding:12px 16px; display:flex; align-items:center; gap:16px; }
.brand{ display:flex; align-items:center; gap:8px; font-weight:800; font-size:20px; color:var(--cream); white-space:nowrap; }
.brand-dot{ width:11px; height:11px; border-radius:50%; background:var(--red); flex-shrink:0; }
.brand .accent{ color:var(--red); }
.team-logo-strip{ display:none; }
.nav-links{ display:none; }
.nav-toggle{ margin-left:auto; background:none; border:none; cursor:pointer; padding:6px; display:flex; flex-direction:column; gap:5px; }
.nav-toggle span{ display:block; width:24px; height:2px; background:var(--cream); border-radius:2px; }
.mobile-menu{ display:none; background:var(--bg); border-bottom:1px solid var(--border); padding:6px 16px 16px; }
.mobile-menu.open{ display:block; }
.mobile-menu a{ display:block; padding:13px 4px; color:var(--text); font-weight:700; border-bottom:1px solid var(--border); }
@media (min-width:901px){
  .nav-inner{ flex-direction:column; align-items:flex-start; gap:10px; }
  .nav-top-row{ display:flex; align-items:center; width:100%; }
  .team-logo-strip{ display:flex; align-items:center; margin-left:40px; min-width:0; overflow:hidden; }
  .team-logo-strip a, .team-logo-strip span{ width:26px; height:26px; border-radius:50%; overflow:hidden; display:block; flex-shrink:0;
      margin-left:3px; background:var(--panel2); border:2px solid var(--bg); transition:transform .15s ease; position:relative; }
  .team-logo-strip a:first-child, .team-logo-strip span:first-child{ margin-left:0; }
  .team-logo-strip a:hover, .team-logo-strip span:hover{ transform:scale(1.7); z-index:5; }
  .team-logo-strip img{ width:100%; height:100%; object-fit:contain; padding:2px; display:block; }
  .nav-links{ display:flex; align-items:center; gap:22px; flex-wrap:wrap; row-gap:10px; width:100%; }
  .nav-links a{ color:var(--text); font-weight:600; font-size:14px; }
  .nav-links a:hover, .nav-links a.active{ color:var(--cream); }
  .nav-toggle, .mobile-menu, .mobile-menu.open{ display:none; }
}
.btn-red{ background:var(--red); color:#fff !important; font-weight:800; padding:8px 14px; border-radius:8px; font-size:13px; border:none; cursor:pointer; }
.btn-red:hover{ background:var(--red-hover); }
.btn-outline{ border:1px solid var(--cream); color:var(--cream) !important; font-weight:800; padding:7px 12px; border-radius:8px; font-size:13px; }

/* ---- player search (header magnifying glass + phone menu box) ---- */
.nav-search{ display:none; }
@media (min-width:901px){
  .nav-search{ display:block; position:relative; margin-left:auto; }
  .nav-search-btn{ display:flex; align-items:center; justify-content:center; width:34px; height:34px; padding:0; background:transparent;
      border:1px solid var(--border); border-radius:50%; color:var(--sub); cursor:pointer; }
  .nav-search-btn:hover, .nav-search.open .nav-search-btn{ color:var(--cream); border-color:var(--cream); }
  .nav-search-btn svg{ width:17px; height:17px; }
  .nav-search-pop{ display:none; position:absolute; top:calc(100% + 10px); right:0; width:320px; z-index:600; background:var(--panel2);
      border:1px solid var(--border); border-radius:12px; padding:10px; box-shadow:0 14px 34px rgba(0,0,0,.55); }
  .nav-search.open .nav-search-pop{ display:block; }
  .nav-search-input{ width:100%; background:var(--panel); border:1px solid var(--border); border-radius:8px; color:var(--text);
      font-size:14px; padding:9px 12px; outline:none; font-family:inherit; }
  .nav-search-input:focus{ border-color:var(--cream); }
  .nav-search-results{ margin-top:8px; max-height:320px; overflow-y:auto; }
  .nav-search-results:empty{ display:none; }
}
.nav-search-row{ display:flex; align-items:center; gap:10px; padding:8px 12px; color:var(--text); font-size:14px; border-bottom:1px solid var(--border); }
.nav-search-photo{ width:28px; height:28px; border-radius:50%; object-fit:cover; background:var(--panel2); flex-shrink:0; }
.nav-search-row:last-child{ border-bottom:none; }
.nav-search-row:hover, .nav-search-row.active{ background:var(--panel); color:var(--cream); }
.nav-search-team{ color:var(--sub); font-size:12px; margin-left:4px; }
.nav-search-empty{ padding:10px 12px; color:var(--sub); font-size:13px; }
.mobile-search{ margin-top:16px; }
.mobile-search input{ width:100%; background:var(--panel); border:1px solid var(--border); border-radius:10px; color:var(--text);
    font-size:16px; padding:12px 14px; outline:none; font-family:inherit; -webkit-appearance:none; appearance:none; }
.mobile-search input:focus{ border-color:var(--cream); }
#mobileSearchResults .nav-search-row{ padding:13px 6px; font-weight:600; }

/* ---- 4. PAGE PIECES ---- */
.page-title{ display:inline-block; font-size:24px; font-weight:800; color:var(--bg); background:var(--cream);
             padding:6px 16px; border-radius:999px; margin-bottom:6px; }
.section-head{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; flex-wrap:wrap;
               margin:34px 0 14px; padding-bottom:8px; border-bottom:2px solid var(--red); }
.section-head h2{ font-size:19px; }
.section-head .note{ color:var(--sub); font-size:13px; }
.card{ background:var(--panel); border:1px solid var(--border); border-radius:14px; padding:16px; min-width:0; }
.grid{ display:grid; gap:14px; grid-template-columns:repeat(auto-fill, minmax(280px, 1fr)); }
.pill{ display:inline-block; font-size:11px; font-weight:800; padding:3px 9px; border-radius:999px; letter-spacing:.2px; }
.pill-cream{ background:var(--cream); color:var(--bg); }
.pill-red{ background:var(--red); color:#fff; }
.pill-win{ background:rgba(46,204,113,.15); color:var(--win); }
.pill-loss{ background:rgba(255,107,107,.15); color:var(--loss); }
.pill-sub{ background:var(--panel2); color:var(--sub); }
.win{ color:var(--win); }
.loss{ color:var(--loss); }
.stat-boxes{ display:grid; gap:12px; grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); }
.stat-box{ background:var(--panel); border:1px solid var(--border); border-radius:12px; padding:12px 14px; }
.stat-box .label{ color:var(--sub); font-size:12px; }
.stat-box .value{ font-size:22px; font-weight:800; margin-top:2px; }
.empty{ color:var(--sub); background:var(--panel); border:1px dashed var(--border); border-radius:14px; padding:22px; text-align:center; }

/* ---- 5. FOOTER ---- */
.site-footer{ border-top:1px solid var(--border); padding:22px 16px; text-align:center; color:var(--sub); font-size:13px; background:var(--bg); }
.footer-links{ display:flex; justify-content:center; flex-wrap:wrap; gap:18px; margin-bottom:10px; }
.footer-links a{ color:var(--sub); }
.footer-links a:hover{ color:var(--cream); }
