/* ============================================
   GOALCURRENT.LIVE — World Cup 2026 Styles
   Replacement file: /css/gc-wc26.css
   Purpose:
   - Apple-style typography
   - Smaller clean flags
   - No country-code boxes
   - Stable cards, sidebar, fixtures, favourites, popup and countdown styling
   ============================================ */

:root{
  --blue:#07378f;
  --deep:#06255b;
  --accent:#ffb000;
  --sky:#eaf6ff;
  --line:#b9d8ff;
  --text:#081b3b;
  --muted:#587092;
  --card:#ffffff;
  --green:#11b981;
  --red:#ef4444;
}

*{box-sizing:border-box}

html{
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

body{
  margin:0;
  background:linear-gradient(90deg,#dceeff,#f4fbff 16%,#eef8ff 84%,#dceeff);
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}

body,button,input,select,textarea,a,span,div,p,h1,h2,h3,h4,h5,h6,li,td,th{
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Segoe UI",Roboto,Helvetica,Arial,sans-serif!important;
}

button,input,select,textarea{font:inherit}
a{color:inherit}

.site-header{
  background:linear-gradient(90deg,#062760,#0844b6);
  color:#fff;
  box-shadow:0 6px 20px rgba(0,0,0,.25);
  position:sticky;
  top:0;
  z-index:50;
}

.topbar{
  min-height:86px;
  display:flex;
  align-items:center;
  gap:22px;
  padding:12px 22px;
}

.hamb{
  width:52px;
  height:52px;
  border:0;
  border-radius:14px;
  background:rgba(255,255,255,.12);
  color:white;
  font-size:28px;
  cursor:pointer;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:250px;
}

.site-logo{
  width:62px;
  height:62px;
  object-fit:contain;
  display:block;
  background:transparent!important;
}

.brand-name{
  font-weight:900;
  font-size:26px;
  letter-spacing:-.5px;
}

.brand-name b{color:#ffb000}
.brand-name small{font-size:12px;color:#c9ddff}

.section-title{
  border-left:1px solid rgba(255,255,255,.28);
  padding-left:28px;
}

.section-title h1{
  margin:0;
  font-size:26px;
  line-height:1;
  font-weight:900;
}

.section-title h1 span{color:var(--accent)}
.section-title p{margin:6px 0 0;color:#d8e8ff;font-weight:600}

.page-pill{
  margin-left:auto;
  background:rgba(255,255,255,.13);
  border:1px solid rgba(255,255,255,.28);
  border-radius:24px;
  padding:10px 16px;
  font-weight:900;
}

.tabs{
  display:flex;
  gap:0;
  justify-content:center;
  background:#062a6a;
  border-top:1px solid rgba(255,255,255,.08);
  overflow:auto;
}

.tabs a{
  color:#dceaff;
  text-decoration:none;
  font-weight:900;
  padding:18px 22px;
  border-bottom:4px solid transparent;
  white-space:nowrap;
}

.tabs a.active,
.tabs a:hover{
  background:rgba(255,255,255,.08);
  color:#ffc400;
  border-bottom-color:#ffb000;
}

/* Sidebar */
.side{
  position:fixed;
  left:0;
  top:0;
  bottom:0;
  width:310px;
  max-width:88vw;
  background:#061326;
  color:#dceaff;
  z-index:100;
  transform:translateX(-105%);
  transition:.25s;
  box-shadow:8px 0 30px rgba(0,0,0,.35);
  padding:20px;
  overflow:auto;
}

.side.open{transform:translateX(0)}

.side h3{
  margin:18px 0 10px;
  color:#94add4;
  letter-spacing:.18em;
  font-size:12px;
}

.side a{
  display:block;
  color:#eaf4ff;
  text-decoration:none;
  padding:12px 10px;
  border-radius:12px;
  font-weight:800;
}

.side a:hover,
.side a.active{
  background:#132a4d;
}

.side a.home-main{
  font-weight:1000;
  color:#fff;
  background:#10284a;
}

.shade{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  z-index:90;
  display:none;
}

.shade.show{display:block}

.close{
  border:0;
  background:#0b3d91;
  color:white;
  border-radius:12px;
  padding:10px 14px;
  font-weight:900;
  cursor:pointer;
}

/* Layout */
.wrap{
  width:min(1480px,calc(100% - 40px));
  margin:34px auto 80px;
}

.ad{
  width:min(1120px,100%);
  height:92px;
  background:rgba(255,255,255,.72);
  border-radius:14px;
  margin:0 auto 30px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#7185a4;
}

.panel{
  background:rgba(255,255,255,.92);
  border:1px solid var(--line);
  border-radius:24px;
  padding:28px;
  box-shadow:0 20px 50px rgba(34,87,139,.12);
  margin-bottom:24px;
}

.hero{
  background:linear-gradient(135deg,#073fa4,#0756e8);
  color:#fff;
  border:0;
}

.hero h2,
.panel h2{
  font-size:42px;
  margin:0 0 10px;
  font-weight:900;
  letter-spacing:-.04em;
}

.panel h3{
  font-size:28px;
  margin:0 0 16px;
  font-weight:900;
}

.muted{color:var(--muted)}

.badge{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  background:#dcecff;
  color:#075be8;
  padding:6px 10px;
  font-size:12px;
  font-weight:900;
  vertical-align:middle;
}

.grid{display:grid;gap:18px}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}

.card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  padding:20px;
  transition:.15s;
  color:var(--text);
}

.card:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 26px rgba(14,62,130,.13);
}

/* IMPORTANT: no country initials/code badges anywhere */
.team-code,
.country-code,
.iso-code,
.flag-code,
.code-badge,
.team-initials,
.team-abbr,
.t-code,
.gc-code,
[data-team-code]{
  display:none!important;
}

/* Flags */
.flag-wrap{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:34px!important;
  height:28px!important;
  min-width:34px!important;
  flex:0 0 34px!important;
  margin-right:8px!important;
  vertical-align:middle!important;
  border-radius:7px!important;
  background:#fff!important;
}

.flag-emoji-fallback{
  display:inline-block!important;
  font-size:22px!important;
  line-height:1!important;
}

.flag-img{display:none!important}

.flag{
  font-size:28px;
  line-height:1;
}

/* Group/team display */
.group-card h3{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.team-row{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  background:#f6faff;
  border:1px solid #e2f0ff;
  border-radius:14px;
  padding:12px 14px;
  margin:8px 0;
  min-height:56px;
  font-size:17px;
  font-weight:500;
}

.team-row strong{
  font-weight:800!important;
  letter-spacing:-.02em;
}

.team-card{
  min-height:190px;
  position:relative;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.team-flag-large .flag-wrap{
  width:50px!important;
  height:40px!important;
  min-width:50px!important;
  flex-basis:50px!important;
  margin:0 0 10px 0!important;
}

.team-flag-large .flag-emoji-fallback{
  font-size:34px!important;
}

.team-name{
  font-size:24px;
  font-weight:900;
  letter-spacing:-.03em;
}

/* Favourites */
.fav{
  margin-left:auto;
  border:0;
  background:#fff0bd;
  border-radius:999px;
  width:38px;
  height:38px;
  font-size:20px;
  cursor:pointer;
}

.fav.active{
  background:#ffbc00;
  color:#111;
}

.card .fav{
  position:absolute;
  right:16px;
  top:16px;
}

.inline-fav{
  margin-left:auto;
  position:static!important;
  right:auto!important;
  top:auto!important;
}

.fav-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:14px 0 16px;
  padding:12px 14px;
  border:1px solid #d7e9ff;
  border-radius:14px;
  background:#f6faff;
}

.fav-item{position:relative}

.remove-fav{
  margin-left:auto;
  border:1px solid #ffb4b4;
  background:#fff1f1;
  color:#b91c1c;
  border-radius:999px;
  padding:9px 13px;
  font-weight:900;
  cursor:pointer;
}

.remove-fav:hover{background:#fee2e2}

.remove-fav.danger{
  background:#b91c1c;
  color:#fff;
  border-color:#b91c1c;
}

.group-fav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.group-fav a{flex:1}

/* Group navigation */
.group-nav{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:16px 0 24px;
}

.group-nav a{
  text-decoration:none;
  background:#edf6ff;
  border:1px solid var(--line);
  padding:10px 14px;
  border-radius:999px;
  font-weight:900;
  color:#0750c5;
}

.group-nav a.active{
  background:#0759e8;
  color:#fff;
}

/* Controls */
.controls{
  display:grid;
  grid-template-columns:1fr 180px 180px 180px;
  gap:12px;
  margin:18px 0;
}

.controls input,
.controls select{
  height:54px;
  border:1px solid #9bc8ff;
  border-radius:14px;
  padding:0 16px;
  font-size:16px;
  background:#fff;
}

/* Fixtures */
.match-card{
  display:grid;
  grid-template-columns:190px 1fr 140px 46px;
  gap:18px;
  align-items:center;
  cursor:pointer;
  font-weight:500;
}

.match-card strong{
  font-size:19px;
  font-weight:800;
  letter-spacing:-.02em;
}

.fixture-teams{
  font-weight:800;
  font-size:18px;
}

.fixture-team{
  display:inline-flex;
  align-items:center;
  margin:0 4px;
}

.vs{
  display:inline-block;
  margin:0 8px;
  color:#f59e0b;
  font-weight:900;
}

.status{
  border-radius:999px;
  background:#dbeafe;
  color:#0757d8;
  font-weight:900;
  padding:7px 11px;
  text-align:center;
}

.status.live{
  background:#fee2e2;
  color:#b91c1c;
}

.live-status{
  border-left:5px solid #11b981;
  background:#ecfdf5;
  border-radius:12px;
  padding:14px 16px;
  color:#065f46;
  margin:12px 0;
  font-weight:800;
}

.live-status.error{
  border-left-color:#f59e0b;
  background:#fff7ed;
  color:#7c2d12;
}

/* Standings */
.stand-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0 8px;
}

.stand-table th{
  text-align:left;
  font-size:13px;
  color:#5e7698;
}

.stand-table td{
  background:#fff;
  padding:12px;
  border-top:1px solid #d7e9ff;
  border-bottom:1px solid #d7e9ff;
}

.stand-table td:first-child{
  border-left:1px solid #d7e9ff;
  border-radius:12px 0 0 12px;
}

.stand-table td:last-child{
  border-right:1px solid #d7e9ff;
  border-radius:0 12px 12px 0;
}

/* Bracket, venues, news */
.bracket{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
  overflow:auto;
}

.bracket-col h3{font-size:24px}

.bracket-match{
  cursor:pointer;
  margin:10px 0;
  min-height:76px;
}

.venue-card{cursor:pointer}

.venue-title{
  font-size:25px;
  font-weight:900;
  letter-spacing:-.03em;
}

.news-item{
  display:grid;
  grid-template-columns:92px 1fr auto;
  gap:16px;
  align-items:center;
}

.tag{
  font-size:12px;
  font-weight:900;
  padding:6px 9px;
  border-radius:8px;
  background:#e9f3ff;
  color:#0759e8;
}

.tag.break{
  background:#ffe3e3;
  color:#c20f21;
}

.notice{
  border-left:5px solid #ffb000;
  background:#fff7e8;
  border-radius:12px;
  padding:14px 16px;
  color:#834b00;
  margin:12px 0;
}

.empty{
  padding:34px;
  text-align:center;
  color:#64748b;
  background:#f8fbff;
  border:1px dashed var(--line);
  border-radius:16px;
}

/* Modal */
.modal{
  position:fixed;
  inset:0;
  z-index:200;
  display:none;
  align-items:center;
  justify-content:center;
  padding:22px;
  background:rgba(0,0,0,.35);
}

.modal.show{display:flex}

.modal-card{
  background:white;
  border-radius:22px;
  border:1px solid var(--line);
  max-width:760px;
  width:100%;
  max-height:86vh;
  overflow:auto;
  padding:26px;
  box-shadow:0 30px 80px rgba(0,0,0,.35);
}

.modal-head{
  display:flex;
  justify-content:space-between;
  gap:20px;
}

.tabs-mini{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:12px 0;
}

.tabs-mini button{
  border:1px solid var(--line);
  background:#f4f9ff;
  border-radius:999px;
  padding:10px 13px;
  font-weight:900;
  cursor:pointer;
}

.tabs-mini button.active{
  background:#0b56d8!important;
  color:white!important;
  border-color:#0b56d8!important;
}

/* Countdown */
.countdown-clock{
  display:grid;
  grid-template-columns:1.4fr repeat(4,1fr);
  gap:18px;
  align-items:stretch;
  margin-top:18px;
}

.countdown-match,
.time-ring{
  border:1px solid rgba(43,126,255,.35);
  border-radius:22px;
  background:linear-gradient(180deg,#ffffff,#eef6ff);
  box-shadow:0 12px 28px rgba(0,53,128,.10);
}

.countdown-match{padding:24px}

.countdown-match .kicker{
  display:inline-block;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#0b56d8;
  font-size:12px;
  margin-bottom:8px;
}

.countdown-match h3{
  font-size:30px;
  margin:0 0 8px;
  color:#061a3f;
}

.countdown-match p{margin:0;color:#415577}

.time-ring{
  min-height:150px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  position:relative;
  overflow:hidden;
}

.time-ring:before{
  content:"";
  position:absolute;
  width:118px;
  height:118px;
  border-radius:50%;
  border:10px solid #dbeafe;
  border-top-color:#0b56d8;
  border-right-color:#f6b000;
}

.time-ring b{
  position:relative;
  z-index:1;
  font-size:44px;
  line-height:1;
  color:#061a3f;
  font-weight:900;
}

.time-ring span{
  position:relative;
  z-index:1;
  margin-top:8px;
  font-weight:800;
  color:#0b56d8;
}

.countdown-live{
  display:flex;
  gap:16px;
  align-items:center;
  border:1px solid #b7d6ff;
  border-radius:18px;
  padding:22px;
  background:#fff;
}

.pulse-dot{
  width:18px;
  height:18px;
  border-radius:50%;
  background:#e11d48;
  box-shadow:0 0 0 0 rgba(225,29,72,.7);
  animation:pulseLive 1.4s infinite;
}

@keyframes pulseLive{
  70%{box-shadow:0 0 0 14px rgba(225,29,72,0)}
  100%{box-shadow:0 0 0 0 rgba(225,29,72,0)}
}

/* Marketing */
.nordvpn-banner{
  width:100%;
  background:#fff;
  border-top:1px solid #d8e7fb;
  border-bottom:1px solid #d8e7fb;
  color:#071a3d;
  text-align:center;
  padding:12px 18px;
  font-weight:700;
  box-shadow:0 -4px 18px rgba(0,0,0,.06);
}

.nordvpn-banner a{
  display:inline-block;
  margin-left:10px;
  background:#0b56d8;
  color:#fff;
  text-decoration:none;
  border-radius:999px;
  padding:8px 14px;
  font-weight:900;
}

.nordvpn-banner small{
  color:#64748b;
  margin-left:8px;
}

.cookie-banner{
  position:fixed;
  left:18px;
  right:18px;
  bottom:18px;
  z-index:300;
  background:#061326;
  color:white;
  border:1px solid rgba(255,255,255,.18);
  border-radius:20px;
  padding:18px;
  display:none;
  box-shadow:0 22px 70px rgba(0,0,0,.4);
}

.cookie-banner.show{
  display:flex;
  align-items:center;
  gap:16px;
}

.cookie-banner p{
  margin:0;
  flex:1;
  color:#e6f0ff;
}

.cookie-banner button,
.subscribe-popup button{
  border:0;
  border-radius:999px;
  padding:10px 15px;
  font-weight:900;
  cursor:pointer;
}

.cookie-accept{
  background:#ffb000;
  color:#061326;
}

.cookie-reject{
  background:#203657;
  color:#fff;
}

.subscribe-popup{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(2,12,32,.52);
  z-index:280;
  padding:18px;
}

.subscribe-popup.show{display:flex}

.subscribe-card{
  max-width:520px;
  width:100%;
  background:#fff;
  border:1px solid #b9d8ff;
  border-radius:24px;
  padding:28px;
  color:#081b3b;
  box-shadow:0 30px 90px rgba(0,0,0,.35);
}

.subscribe-card h2{
  margin:0 0 8px;
  font-size:34px;
  letter-spacing:-.04em;
}

.subscribe-card p{color:#47627f}

.subscribe-card form{
  display:flex;
  gap:10px;
  margin-top:16px;
}

.subscribe-card input{
  flex:1;
  height:48px;
  border:1px solid #9bc8ff;
  border-radius:999px;
  padding:0 16px;
}

.subscribe-submit{
  background:#0b56d8;
  color:#fff;
}

.subscribe-close{
  background:#e8f2ff;
  color:#0b56d8;
}

.subscribe-actions{
  display:flex;
  justify-content:flex-end;
  margin-top:12px;
}

.subscribe-note{
  font-size:12px;
  color:#64748b;
  margin-top:10px;
}

/* Footer */
.footer{
  background:#061326;
  color:#d9e7ff;
  text-align:center;
  padding:34px;
}

.footer a{
  color:#fff;
  text-decoration:none;
  margin:0 10px;
}

/* Mobile */
@media(max-width:900px){
  .topbar{
    height:auto;
    padding:14px;
    flex-wrap:wrap;
  }

  .brand{min-width:0}
  .brand-name{font-size:22px!important}

  .section-title{
    padding-left:12px;
  }

  .section-title h1{font-size:23px}

  .tabs{
    justify-content:flex-start;
  }

  .wrap{
    width:calc(100% - 22px);
    margin-top:18px;
  }

  .grid-2,
  .grid-3,
  .grid-4{
    grid-template-columns:1fr;
  }

  .controls{
    grid-template-columns:1fr;
  }

  .match-card{
    grid-template-columns:1fr;
  }

  .bracket{
    grid-template-columns:1fr;
  }

  .hero h2,
  .panel h2{
    font-size:32px;
  }

  .countdown-clock{
    grid-template-columns:1fr 1fr;
  }

  .countdown-match{
    grid-column:1/-1;
  }
}

@media(max-width:700px){
  .flag-wrap{
    width:30px!important;
    height:26px!important;
    min-width:30px!important;
    flex-basis:30px!important;
  }

  .flag-emoji-fallback{
    font-size:20px!important;
  }

  .side{
    width:330px!important;
    max-width:88vw!important;
  }

  .side a{
    font-size:17px!important;
  }

  .fav-toolbar,
  .group-fav{
    align-items:stretch;
    flex-direction:column;
  }

  .remove-fav{
    width:100%;
  }

  .team-row.fav-item{
    flex-wrap:wrap;
  }

  .subscribe-card form{
    display:block;
  }

  .subscribe-card input{
    width:100%;
    margin-bottom:10px;
  }

  .subscribe-card button{
    width:100%;
  }

  .cookie-banner.show{
    display:block;
  }

  .cookie-banner button{
    margin:10px 8px 0 0;
  }

  .nordvpn-banner a{
    display:block;
    margin:8px auto 0;
    width:max-content;
  }
}

@media(max-width:560px){
  .countdown-clock{
    grid-template-columns:1fr;
  }
}
