/* public/assets/css/portal.css */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;900&family=Barlow:wght@400;500;600&display=swap');

:root {
  --pf-primary: #0B1A2E;
  --pf-accent:  #F5A623;
  --pf-red:     #E63946;
  --pf-surface: #F5F4F1;
  --pf-card:    #FFFFFF;
  --pf-border:  rgba(0,0,0,.08);
  --pf-muted:   #6B7280;
  --pf-font-d:  'Barlow Condensed', sans-serif;
  --pf-font-b:  'Barlow', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { font-family: var(--pf-font-b); background: var(--pf-surface); color: #1A1A2E; margin: 0; }

/* ── Ticker ─────────────────────────────────────────────── */
/* ── Ticker — FIXED: no overlap ─────────────────────────────── */
.portal-ticker {
  background: var(--pf-red); color: #fff;
  height: 30px; display: flex; align-items: center;
  overflow: hidden; font-size: 12px; flex-wrap: nowrap;
}
.ticker-live {
  flex: 0 0 auto;
  background: rgba(0,0,0,.25); height: 30px;
  display: flex; align-items: center; gap: 5px;
  padding: 0 12px; font-family: var(--pf-font-d);
  font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  white-space: nowrap; border-right: 1px solid rgba(255,255,255,.2); z-index:1;
}
.ticker-dot { width:7px; height:7px; background:#fff; border-radius:50%; animation:blink 1s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }
.ticker-scroll-wrap { flex:1; overflow:hidden; height:30px; display:flex; align-items:center; min-width:0; }
.ticker-scroll { white-space:nowrap; display:inline-block; animation:scroll-ticker 35s linear infinite; padding-left:20px; }
@keyframes scroll-ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ── Nav ─────────────────────────────────────────────────── */
.portal-nav {
  background: var(--pf-primary);
  border-bottom: 3px solid var(--pf-accent);
  padding: 0;
  position: sticky; top: 0; z-index: 1000;
}
.portal-logo {
  font-family: var(--pf-font-d); font-size: 22px; font-weight: 900;
  color: #fff; letter-spacing: 1px; text-decoration: none;
  padding: 14px 16px 14px 0;
  border-right: 2px solid rgba(255,255,255,.15); margin-right: 12px;
  white-space: nowrap;
}
.portal-logo span { color: var(--pf-accent); }
.portal-logo small { font-size: 13px; color: rgba(255,255,255,.4); font-weight: 400; }
.portal-nav-links { gap: 0; }
.pnav-link {
  font-family: var(--pf-font-d); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
  color: rgba(255,255,255,.6); text-decoration: none;
  padding: 16px 12px;
  border-bottom: 3px solid transparent;
  transition: all .15s;
  display: inline-block;
}
.pnav-link:hover { color: #fff; }
.pnav-link.active { color: var(--pf-accent); border-bottom-color: var(--pf-accent); }
.btn-pnav-primary {
  background: var(--pf-accent); color: var(--pf-primary);
  border: none; border-radius: 6px; font-family: var(--pf-font-d);
  font-size: 13px; font-weight: 800; padding: 7px 14px;
  text-decoration: none; letter-spacing: .3px;
}
.btn-pnav-primary:hover { background: #e09b1f; color: var(--pf-primary); }
.btn-pnav-outline {
  background: transparent; color: rgba(255,255,255,.7);
  border: 1.5px solid rgba(255,255,255,.3); border-radius: 6px;
  font-family: var(--pf-font-d); font-size: 13px; font-weight: 700;
  padding: 6px 14px; text-decoration: none;
}
.btn-pnav-outline:hover { color: #fff; border-color: rgba(255,255,255,.6); }
.mobile-nav-links { padding: 8px 0; border-top: 1px solid rgba(255,255,255,.1); }
.mobile-nav-link { display: block; padding: 10px 4px; color: rgba(255,255,255,.7); text-decoration: none; font-size: 15px; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.06); }

/* ── Hero ─────────────────────────────────────────────────── */
.portal-hero {
  background: var(--pf-primary);
  padding: 32px 16px 24px;
  position: relative; overflow: hidden;
}
.portal-hero::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 300px; height: 300px; border: 50px solid rgba(245,166,35,.06);
  border-radius: 50%;
}
.hero-live-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(230,57,70,.2); border: 1px solid rgba(230,57,70,.4);
  border-radius: 20px; padding: 4px 12px; font-size: 11px;
  font-weight: 700; color: #F87171; letter-spacing: .8px;
  text-transform: uppercase; margin-bottom: 12px;
}
.hero-title {
  font-family: var(--pf-font-d); font-size: clamp(32px, 6vw, 52px);
  font-weight: 900; color: #fff; line-height: 1; letter-spacing: 1px;
  margin-bottom: 8px;
}
.hero-title span { color: var(--pf-accent); }
.hero-sub { color: rgba(255,255,255,.55); font-size: 14px; margin-bottom: 20px; }
.hero-stats { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.hstat-num { font-family: var(--pf-font-d); font-size: 30px; font-weight: 900; color: var(--pf-accent); line-height: 1; }
.hstat-lbl { font-size: 11px; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .5px; }
.score-ticker-box {
  background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; padding: 10px 14px;
  display: flex; gap: 16px; overflow: hidden; align-items: center; flex-wrap: wrap;
}
.sticker-item { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 13px; color: rgba(255,255,255,.8); }
.sticker-score { font-family: var(--pf-font-d); font-weight: 700; color: #fff; font-size: 17px; }
.sport-pill { background: rgba(245,166,35,.15); color: var(--pf-accent); font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 3px; letter-spacing: .5px; text-transform: uppercase; }

/* ── Section ─────────────────────────────────────────────── */
.portal-section { padding: 24px 16px; }
.portal-section + .portal-section { padding-top: 0; }
.section-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-title { font-family: var(--pf-font-d); font-size: 22px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.section-title span { color: var(--pf-red); }
.see-all-link { font-size: 12px; font-weight: 700; color: #1D6FA5; text-decoration: none; }

/* ── Cards ─────────────────────────────────────────────────── */
.pf-card { background: var(--pf-card); border: 1px solid var(--pf-border); border-radius: 12px; overflow: hidden; }
.game-card { background: var(--pf-card); border: 1px solid var(--pf-border); border-radius: 10px; padding: 14px; }
.game-sport-lbl { font-family: var(--pf-font-d); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--pf-muted); }
.game-status { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 12px; letter-spacing: .5px; }
.status-live     { background: #FEE2E2; color: #DC2626; }
.status-scheduled{ background: #EFF6FF; color: #1D6FA5; }
.status-completed{ background: #F0FDF4; color: #16A34A; }
.game-score { font-family: var(--pf-font-d); font-size: 28px; font-weight: 900; text-align: center; }
.game-team-name { font-family: var(--pf-font-d); font-size: 14px; font-weight: 700; text-align: center; }
.game-meta { font-size: 11px; color: var(--pf-muted); text-align: center; margin-top: 4px; }

/* ── Standings ──────────────────────────────────────────── */
.standings-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.standings-tbl th { font-family: var(--pf-font-d); font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--pf-muted); padding: 8px 10px; border-bottom: 2px solid var(--pf-border); text-align: left; }
.standings-tbl td { padding: 10px 10px; border-bottom: 1px solid var(--pf-border); }
.standings-tbl tr:hover td { background: rgba(0,0,0,.02); }
.rank-medal { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--pf-font-d); font-size: 12px; font-weight: 800; }
.rank-1 { background: #FFD700; color: #7a5700; }
.rank-2 { background: #C0C0C0; color: #555; }
.rank-3 { background: #CD7F32; color: #fff; }
.rank-n { background: var(--pf-border); color: var(--pf-muted); }
.pts-col { font-family: var(--pf-font-d); font-weight: 800; font-size: 17px; }
.medal-col { font-family: var(--pf-font-d); font-weight: 700; font-size: 14px; text-align: center; }
.team-color-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* ── News ───────────────────────────────────────────────── */
.news-card { background: var(--pf-card); border: 1px solid var(--pf-border); border-radius: 10px; overflow: hidden; height: 100%; }
.news-img-placeholder { height: 120px; background: var(--pf-primary); display: flex; align-items: center; justify-content: center; font-size: 36px; }
.news-card-body { padding: 12px; }
.news-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--pf-red); margin-bottom: 4px; }
.news-card-title { font-family: var(--pf-font-d); font-size: 16px; font-weight: 700; line-height: 1.3; margin-bottom: 6px; }
.news-meta { font-size: 11px; color: var(--pf-muted); }

/* ── Team Cards ─────────────────────────────────────────── */
.team-card { background: var(--pf-card); border: 1px solid var(--pf-border); border-radius: 12px; padding: 18px; text-align: center; cursor: pointer; text-decoration: none; color: inherit; display: block; transition: box-shadow .15s; }
.team-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.1); color: inherit; }
.team-logo { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; font-family: var(--pf-font-d); font-size: 22px; font-weight: 900; color: #fff; }
.team-name-lbl { font-family: var(--pf-font-d); font-size: 16px; font-weight: 800; margin-bottom: 2px; }
.team-pts-big { font-family: var(--pf-font-d); font-size: 24px; font-weight: 900; color: var(--pf-accent); }

/* ── Social ─────────────────────────────────────────────── */
.social-post { background: var(--pf-card); border: 1px solid var(--pf-border); border-radius: 10px; padding: 14px; margin-bottom: 12px; }
.social-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--pf-primary); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.social-actions { display: flex; gap: 16px; margin-top: 10px; }
.social-action { font-size: 12px; color: var(--pf-muted); }

/* ── Footer ─────────────────────────────────────────────── */
.portal-footer {
  background: var(--pf-primary); color: rgba(255,255,255,.5);
  padding: 20px 0; margin-top: 40px;
  border-top: 3px solid var(--pf-accent);
}
.footer-logo { font-family: var(--pf-font-d); font-size: 20px; font-weight: 900; color: #fff; }
.footer-logo span { color: var(--pf-accent); }
.footer-sub { font-size: 12px; margin-top: 2px; }
.footer-links a { color: rgba(255,255,255,.5); text-decoration: none; font-size: 13px; }
.footer-links a:hover { color: #fff; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 576px) {
  .portal-section { padding: 16px 10px; }
  .hero-stats { gap: 16px; }
}

/* ── Card grid gap — ensures spacing on all pages ─────────────── */
.row.g-3 { --bs-gutter-x: 1rem; --bs-gutter-y: 1rem; }
.row.g-2 { --bs-gutter-x: 0.5rem; --bs-gutter-y: 0.5rem; }

/* Explicit card bottom margin for non-row layouts */
.game-card  { margin-bottom: 0; }   /* gap handled by row g-3 */
.pf-card + .pf-card { margin-top: 12px; }

/* Standings table row breathing room */
.standings-tbl td { padding: 11px 10px; }
.standings-tbl th { padding: 9px 10px; }

/* ── Mobile nav fixes ──────────────────────────────────────── */
@media (max-width: 767px) {
  .portal-nav .container-fluid { padding: 0 10px; }
  .portal-logo { font-size: 16px; padding: 10px 12px 10px 0; letter-spacing: 2px; }
  .portal-logo small { font-size: 10px; }
  .btn-pnav-primary { padding: 6px 10px; font-size: 11px; }
  .btn-pnav-outline { padding: 5px 10px; font-size: 11px; }
  .mobile-nav-links { padding: 8px 0; }
  .mobile-nav-link  { padding: 10px 14px; font-size: 14px; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.08); display: block; color: rgba(255,255,255,.7); text-decoration: none; }
  .mobile-nav-link:hover { color: #fff; background: rgba(255,255,255,.05); }
}

/* ── Home standings lead strip — hide when no points ─────── */
.standings-lead-strip { overflow-x: auto; white-space: nowrap; }

/* ── News body HTML content ─────────────────────────────── */
.news-body img {
  max-width: 100%; height: auto; border-radius: 8px;
  margin: 12px 0; display: block;
}
.news-body p  { margin-bottom: 14px; }
.news-body h1, .news-body h2, .news-body h3 { margin: 20px 0 10px; font-weight: 700; }
.news-body ul, .news-body ol { padding-left: 24px; margin-bottom: 14px; }
.news-body table { width:100%; border-collapse:collapse; margin-bottom:14px; }
.news-body table td, .news-body table th { border:1px solid #e5e7eb; padding:8px 10px; font-size:13px; }
