/* PRO style full layout */
:root {
  --pro-gap: 16px;
}

/* Smooth scroll behavior */
html.pro-theme {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

@media (prefers-reduced-motion: reduce) {
  html.pro-theme {
    scroll-behavior: auto;
  }
  .pro *, .pro *::before, .pro *::after { 
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.pro {
  background: #fff;
  color: #111;
}

/* Base tokens, resets, and utilities for Pro */
.pro {
  --pro-fg: #111827;
  --pro-muted: #4a5568;
  --pro-card: #fff;
  --pro-card-border: rgba(0,0,0,.08);
  --pro-soft: #f2f2f2;
  --pro-radius-sm: 10px;
  --pro-radius-md: 12px;
  --pro-shadow: 0 8px 22px rgba(0,0,0,0.08);
  --pro-ring: 0 0 0 3px rgba(59,130,246,0.35);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Dark mode support */
.chakra-ui-dark .pro {
  background: #0f1115;
  color: #e8eaf0;
  --pro-fg: #e8eaf0;
  --pro-muted: #a0aec0;
  --pro-card: #1a1d29;
  --pro-card-border: rgba(255,255,255,0.12);
  --pro-soft: #1a1f29;
  --pro-shadow: 0 8px 22px rgba(0,0,0,0.3);
}
.pro *, .pro *::before, .pro *::after { box-sizing: border-box; }
.pro img { max-width: 100%; display: block; }
.pro a { color: inherit; text-decoration: none; transition: color .18s ease, background .18s ease, transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.pro a:focus-visible, .pro button:focus-visible { outline: none; box-shadow: var(--pro-ring); border-radius: 8px; }
.pro .muted { color: var(--pro-muted); }
.pro .visually-hidden { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* Generic horizontal scrollbar polish */
.pro ::-webkit-scrollbar { height: 10px; width: 10px; }
.pro ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.16); border-radius: 999px; }
.pro { scrollbar-width: thin; scrollbar-color: rgba(0,0,0,0.2) transparent; }

/* Fullscreen hero */
.pro-hero { position: relative; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); height: min(78vh, 720px); overflow: hidden; }
.pro-hero .slides { position: relative; width: 100%; height: 100%; }
.pro-hero .slide { position: absolute; inset: 0; background-position: center; background-size: cover; opacity: 0; transform: scale(1.02); transition: opacity .5s ease, transform .6s ease; display: block; text-decoration: none; }
.pro-hero .slide.active { opacity: 1; transform: scale(1); }
.pro-hero .overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.25) 40%, rgba(0,0,0,0.75) 100%); }
.pro-hero .title { color: #fff; text-shadow: 0 4px 24px rgba(0,0,0,.4); font-size: clamp(1.5rem, 3.6vw, 3rem); max-width: 1000px; margin: 0; }
.pro-hero .glow { position: absolute; left:0; right:0; bottom:0; height: 120px; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, color-mix(in srgb, var(--primary) 24%, #000) 100%); pointer-events: none; }
.pro-hero .pagers { position: absolute; right: 18px; bottom: 14px; display: flex; gap: 6px; }
.pro-hero .pager { width: 32px; height: 32px; border-radius: 6px; border: 2px solid #fff; background: transparent; color: #fff; font-weight: 800; cursor: pointer; opacity: .85; transition: background .18s ease, color .18s ease, transform .18s ease; }
.pro-hero .pager.active, .pro-hero .pager:hover { background: #fff; color: #000; opacity: 1; transform: translateY(-1px); }
.pro-hero .pager:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,0.5); }

/* Hero caption + CTA bottom-left */
.pro-hero .overlay .cap { position: absolute; left: 24px; bottom: 24px; text-align: left; max-width: 900px; }
.pro-hero .overlay .cap .title { margin-bottom: 8px; }
.pro-hero .overlay .cta { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 2px solid #fff; color: #fff; background: rgba(0,0,0,0.15); border-radius: 10px; font-weight: 800; text-decoration: none; }
.pro-hero .overlay .cta:hover { background: rgba(0,0,0,0.28); transform: translateY(-1px); }
.pro-hero .overlay .cta:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,0.5); }

/* Centered container */
.pro-container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Two-column grid */
.pro-grid { display: grid; grid-template-columns: 2fr 1fr; gap: var(--pro-gap); margin: 22px 0; }
@media (max-width: 1000px) { .pro-grid { grid-template-columns: 1fr; } }
.pro-grid .widget { border: 1px solid var(--pro-card-border); border-radius: var(--pro-radius-md); background: var(--pro-card); padding: 12px; }
.pro-grid .head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.pro-grid .head h3 { margin: 0; }
.pro-grid .tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.pro-grid .tabs button {
  padding: 8px 14px;
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}
.pro-grid .tabs button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 85%, var(--secondary)));
  opacity: 0;
  transition: opacity .3s ease;
}
.pro-grid .tabs button:hover::before { opacity: 1; }
.pro-grid .tabs button:hover {
  color: var(--text-on-primary, #fff);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--primary) 30%, transparent);
}
.pro-grid .tabs button span { position: relative; z-index: 1; }
.pro-grid .tabs button:focus-visible { outline: none; box-shadow: var(--pro-ring); }
.pro-grid .tabs button.active {
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 85%, var(--secondary)));
  color: var(--text-on-primary, #fff);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--primary) 35%, transparent);
}
.pro-grid .tabs button.active::before { opacity: 0; }

/* Matches scroller (left) */
.match-scroller { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 8px; scroll-snap-type: x mandatory; }
.match-scroller::-webkit-scrollbar { height: 8px; }
.match-scroller::-webkit-scrollbar-thumb { background: var(--light-gray, rgba(0,0,0,.2)); border-radius: 999px; }
.match-scroller { scrollbar-width: thin; scrollbar-color: var(--light-gray, rgba(0,0,0,.2)) transparent; }
.mcard { 
  flex: 0 0 100%; 
  min-width: 320px; 
  max-width: 560px; 
  border: 1px solid var(--pro-card-border); 
  border-radius: var(--pro-radius-sm); 
  padding: 14px 16px; 
  background: var(--pro-card); 
  text-decoration: none; 
  color: inherit; 
  scroll-snap-align: start; 
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.mcard:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 12px 32px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06); 
  border-color: color-mix(in srgb, var(--primary) 30%, transparent);
}
.mcard:focus-visible { 
  outline: 3px solid var(--primary); 
  outline-offset: 2px; 
}
.mcard .row { display: flex; justify-content: center; align-items: center; }
.mcard .row.meta { color: var(--pro-muted); gap: 6px; font-size: .9rem; margin-bottom: 4px; }
.mcard .row.teams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.mcard .team { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.mcard .team img { width: 36px; height: 36px; border-radius: 50%; background: var(--pro-soft); object-fit: cover; }
.mcard .vs { font-weight: 900; color: var(--dark-gray, #4a5568); }

/* Blogs auto scroller */
.blog-auto { display: grid; grid-auto-flow: column; grid-auto-columns: 240px; gap: 12px; overflow-x: auto; padding: 6px 2px; scroll-snap-type:x mandatory; }
.blog-auto::-webkit-scrollbar { height: 8px; }
.blog-auto::-webkit-scrollbar-thumb { background: var(--light-gray, rgba(0,0,0,.2)); border-radius: 999px; }
.blog-auto { scrollbar-width: thin; scrollbar-color: var(--light-gray, rgba(0,0,0,.2)) transparent; }
.bcard { 
  display: flex; 
  flex-direction: column; 
  border: 1px solid var(--pro-card-border); 
  background: var(--pro-card); 
  border-radius: var(--pro-radius-sm); 
  text-decoration: none; 
  color: inherit; 
  scroll-snap-align: start; 
  overflow: hidden; 
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.bcard:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 12px 32px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06); 
  border-color: color-mix(in srgb, var(--primary) 30%, transparent);
}
.bcard:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}
.bcard .thumb { width: 100%; height: 140px; background: var(--bg-soft, #f2f2f2); background-position: center; background-size: cover; }
.bcard .meta { padding: 8px; }
.bcard .tag { font-size: .8rem; color: var(--secondary); font-weight: 800; }
.bcard .title { 
  font-weight: 800; 
  margin: 4px 0 2px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}
.bcard .date { font-size: .85rem; color: var(--pro-muted); }
.pro-grid .arrows button { border: 1px solid var(--pro-card-border); background: var(--pro-card); border-radius: 999px; padding: 4px 8px; cursor: pointer; transition: background .18s ease, transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.pro-grid .arrows button:hover { transform: translateY(-1px); box-shadow: var(--pro-shadow); border-color: rgba(0,0,0,0.14); }
.pro-grid .arrows button:focus-visible { outline: none; box-shadow: var(--pro-ring), var(--pro-shadow); }

/* Blog card cover variant with gradient overlay */
.bcard.cover { position: relative; border: none; background: transparent; }
.bcard.cover .thumb { height: 180px; border-radius: var(--pro-radius-sm); }
.bcard.cover .overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 8px; border-radius: var(--pro-radius-sm); background: linear-gradient(180deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0.75) 100%); transition: background 0.3s ease; }
.bcard.cover:hover .overlay { background: linear-gradient(180deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.85) 100%); }
.bcard.cover .meta { color: #fff; }
.bcard.cover .title { color: #fff; text-shadow: 0 4px 18px rgba(0,0,0,.4); }

/* Standings */
.table { width: 100%; }
.table .thead, .table .tr { display: grid; grid-template-columns: auto 1fr repeat(5, auto); gap: 8px; align-items: center; }
.table .thead { font-weight: 800; color: var(--dark-gray, #4a5568); padding-bottom: 6px; border-bottom: 1px solid var(--light-gray, rgba(0,0,0,.12)); }
.table .tr { padding: 6px 0; border-bottom: 1px solid var(--light-gray, rgba(0,0,0,.12)); }
.table .team { font-weight: 700; }

/* Sponsors faded belt */
.sponsor-belt { position: relative; overflow: hidden; border-radius: 10px; }
.sponsor-belt .track { display:flex; gap: 28px; padding: 12px; width: max-content; animation: pro-slide 28s linear infinite; }
.sponsor-belt:hover .track { animation-play-state: paused; }
.sponsor-belt .tile { display: inline-flex; align-items:center; justify-content:center; min-width: 140px; padding: 6px; }
.sponsor-belt .tile img { max-height: 40px; max-width: 140px; object-fit: contain; opacity: .95; }
.sponsor-belt .mask { position: absolute; top:0; bottom:0; width: 60px; pointer-events: none; }
.sponsor-belt .mask.left { left: 0; background: linear-gradient(90deg, var(--pro-card, #fff) 0%, rgba(255,255,255,0)); }
.sponsor-belt .mask.right { right: 0; background: linear-gradient(270deg, var(--pro-card, #fff) 0%, rgba(255,255,255,0)); }
@keyframes pro-slide { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Ticket widget (right column) */
.ticket { border: 2px dashed var(--pro-card-border); border-radius: 16px; background: var(--pro-card); overflow: hidden; }
.ticket-head { padding: 10px 12px; background: var(--primary); color: var(--text-on-primary, #fff); display:flex; align-items:center; justify-content: space-between; gap: 8px; }
.ticket-head h3 { margin: 0; }
.ticket-head .tabs { display:flex; gap:8px; flex-wrap: wrap; }
.ticket-head .tabs button {
  background: transparent;
  color: var(--text-on-primary, #fff);
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}
.ticket-head .tabs button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.3);
  opacity: 0;
  transition: opacity .3s ease;
}
.ticket-head .tabs button:hover::before { opacity: 1; }
.ticket-head .tabs button span { position: relative; z-index: 1; }
.ticket-head .tabs button:hover {
  background: rgba(255,255,255,.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  border-color: rgba(255,255,255,.8);
}
.ticket-head .tabs button:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,0.5); }
.ticket-head .tabs button.active {
  background: rgba(255,255,255,.3);
  border-color: rgba(255,255,255,.9);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.ticket-body { padding: 12px; display:grid; grid-template-columns: 1fr auto 1fr; align-items:center; gap: 10px; }
.ticket-body .team { display:flex; flex-direction: column; align-items:center; gap: 6px; }
.ticket-body .team img { width: 64px; height: 64px; border-radius: 50%; background: var(--pro-soft); object-fit: cover; }
.ticket-body .team .name { font-weight: 800; }
.ticket-body .vs { font-weight: 900; color: var(--dark-gray, #4a5568); }
.ticket-body .venue { grid-column: 1 / -1; text-align: center; color: var(--dark-gray, #4a5568); font-size: .95rem; }
.ticket-countdown { padding: 12px; text-align: center; font-weight: 800; font-size: 1.05rem; border-top: 1px solid var(--light-gray, rgba(0,0,0,.12)); }
.ticket-action { padding: 10px 12px 14px; }
.ticket-action .btn { display:block; width:100%; text-align:center; border:2px solid var(--primary); color: var(--primary); background: transparent; border-radius: 10px; padding: 10px; font-weight: 800; text-decoration: none; transition: background .18s ease, transform .18s ease, box-shadow .18s ease; }
.ticket-action .btn:hover { background: var(--primary); color: var(--text-on-primary, #fff); transform: translateY(-1px); box-shadow: var(--pro-shadow); }
.ticket-action .btn:focus-visible { outline: none; box-shadow: var(--pro-ring), var(--pro-shadow); }

/* Full-width upcoming */
.pro-upcoming { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding: 12px 16px; background: var(--pro-card); border-top: 1px solid var(--pro-card-border); border-bottom: 1px solid var(--pro-card-border); }
.pro-upcoming .wrap { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 8px; }
.pro-upcoming .wrap .mid { font-weight: 900; color: var(--pro-fg); }
.pro-upcoming .wrap .nav { border: 1px solid var(--pro-card-border); background: var(--pro-card); border-radius: 999px; padding: 4px 10px; cursor: pointer; }
.pro-upcoming .wrap .nav:hover { transform: translateY(-1px); box-shadow: var(--pro-shadow); }
.pro-upcoming .wrap .nav:focus-visible { outline: none; box-shadow: var(--pro-ring), var(--pro-shadow); }
.pro-upcoming .match { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; max-width: 980px; margin: 0 auto; }
.pro-upcoming .team { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pro-upcoming .team img { width: 64px; height: 64px; border-radius: 50%; background: var(--pro-soft); object-fit: cover; }
.pro-upcoming .team .name { font-weight: 800; }
.pro-upcoming .vs { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pro-upcoming .vs .big { font-weight: 900; font-size: 1.35rem; }
.pro-upcoming .vs .small, .pro-upcoming .vs .date { color: var(--pro-muted); font-size: .9rem; }
.pro-upcoming .links { display: flex; justify-content: center; gap: 12px; margin-top: 8px; }
.pro-upcoming .links a { color: var(--primary); text-decoration: underline; }

/* Full-width CTA section */
.pro-cta { background: color-mix(in srgb, var(--primary) 8%, transparent); }
.pro-cta .pro-container { display: flex; justify-content: center; }

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  .pro *, .pro *::before, .pro *::after { transition: none !important; animation: none !important; }
}
