/* Popup ve turnuva sayfaları — sitenin tokens.css değişkenleriyle. */

/* ------------------------------------------------------------------ Popup */
.site-popup { width: min(calc(100% - 32px), 880px); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--radius-card); background: transparent; color: white; overflow: visible; }
.site-popup::backdrop { background: rgba(5, 22, 39, .72); backdrop-filter: blur(6px); }
.site-popup[open] { animation: popupIn .55s cubic-bezier(.22, 1, .36, 1) both; }
.site-popup[open]::backdrop { animation: popupFade .4s ease both; }
.site-popup.is-closing { animation: popupOut .25s ease both; }
.site-popup.is-closing::backdrop { animation: popupFadeOut .25s ease both; }
@keyframes popupIn { from { opacity: 0; transform: translateY(24px) scale(.97); } }
@keyframes popupOut { to { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes popupFade { from { opacity: 0; } }
@keyframes popupFadeOut { to { opacity: 0; } }
.site-popup__card { display: grid; grid-template-columns: 0.92fr 1.08fr; max-height: calc(100dvh - 32px); overflow: hidden; border-radius: var(--radius-card); background: var(--color-experience-navy); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.site-popup__visual { position: relative; min-height: 460px; overflow: hidden; background: #051627; }
.site-popup__visual img, .site-popup__visual picture { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.site-popup__visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, var(--color-experience-navy)); pointer-events: none; }
.site-popup__badge { position: absolute; z-index: 1; left: 20px; bottom: 20px; padding: 9px 13px; border-radius: var(--radius-pill); background: var(--color-academy-yellow); color: var(--color-experience-navy); font: 500 11px var(--font-mono); text-transform: uppercase; letter-spacing: .03em; }
.site-popup__badge b { font-weight: 700; }
.site-popup__body { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 56px 44px 40px 28px; overflow-y: auto; }
.site-popup__body .eyebrow { margin-bottom: 14px; color: var(--color-academy-yellow); }
.site-popup__body h2 { margin: 0 0 16px; font: 700 clamp(2.6rem, 4.6vw, 3.9rem) / .88 var(--font-display); letter-spacing: -.035em; text-transform: uppercase; text-wrap: balance; }
.site-popup__text { margin: 0 0 22px; color: #bed0de; font-size: 16px; line-height: 1.55; }
.site-popup__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 1px; margin: 0 0 26px; padding: 0; overflow: hidden; border-radius: 16px; background: rgba(255, 255, 255, .1); list-style: none; }
.site-popup__facts li { display: grid; gap: 3px; padding: 12px 14px; background: #0a2645; }
.site-popup__facts span { color: #7f9fb9; font: 10px var(--font-mono); text-transform: uppercase; }
.site-popup__facts b { font-size: 14px; font-weight: 600; }
.site-popup__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.site-popup__cta { background: var(--color-academy-yellow); color: var(--color-experience-navy); }
.site-popup__cta:hover { background: white; }
.site-popup__later { padding: 6px 0; border: 0; background: none; color: #93b8d6; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.site-popup__later:hover { color: white; }
.site-popup__close { position: absolute; z-index: 3; top: 14px; right: 14px; display: grid; width: 44px; height: 44px; padding: 0; place-items: center; border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%; background: rgba(7, 28, 51, .55); color: white; cursor: pointer; backdrop-filter: blur(8px); -webkit-tap-highlight-color: transparent; transition: background-color .2s ease, border-color .2s ease; }
.site-popup__close span { position: relative; display: block; width: 16px; height: 16px; transition: transform .3s cubic-bezier(.22, 1, .36, 1); }
.site-popup__close span::before, .site-popup__close span::after { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 2px; margin-top: -1px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
.site-popup__close span::after { transform: rotate(-45deg); }
@media (hover: hover) {
  .site-popup__close:hover { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .16); }
  .site-popup__close:hover span { transform: rotate(90deg); }
}
.site-popup__close:active span { transform: scale(.85); }
.site-popup h2:focus { outline: none; }
/* Görselsiz popup: tek sütun metin. */
.site-popup--text { width: min(calc(100% - 32px), 560px); }
.site-popup--text .site-popup__card { grid-template-columns: 1fr; }
.site-popup--text .site-popup__body { padding: 56px 40px 36px; }
/* Afiş popup: yalnızca görsel (başlık yok). */
.site-popup--poster { width: auto; max-width: min(calc(100% - 32px), 720px); }
.site-popup--poster .site-popup__card { display: flex; flex-direction: column; }
.site-popup__poster { display: block; min-height: 0; outline: none; }
.site-popup__poster img { display: block; width: 100%; height: auto; max-height: calc(100dvh - 140px); object-fit: contain; background: #051627; }
.site-popup__poster-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; padding: 18px 22px; }
.site-popup__poster-bar .site-popup__text { flex: 1 1 240px; margin: 0; }
.site-popup :focus-visible { outline: 3px solid var(--color-academy-yellow); outline-offset: 3px; }
/* Özel imleç açılır pencerenin altında kalır; pencere açıkken normal imleç kullanılır. */
html.popup-open .aa-cursor, html.popup-open .aa-cursor-trail { opacity: 0 !important; }
html.has-custom-cursor .site-popup, html.has-custom-cursor .site-popup * { cursor: auto !important; }
html.has-custom-cursor .site-popup a, html.has-custom-cursor .site-popup button { cursor: pointer !important; }

/* ------------------------------------------------------------------ Navbar bağlantısı */
.desktop-nav a.nav-tournament { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: var(--radius-pill); background: rgba(245, 200, 76, .14); color: var(--color-academy-yellow); white-space: nowrap; }
.desktop-nav a.nav-tournament::after { display: none; }
.desktop-nav a.nav-tournament:hover { background: var(--color-academy-yellow); color: var(--color-experience-navy); }
.nav-tournament i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 rgba(245, 200, 76, .6); animation: navPulse 2s ease-out infinite; }
@keyframes navPulse { 70%, 100% { box-shadow: 0 0 0 8px rgba(245, 200, 76, 0); } }
.nav-tournament__short { display: none; }
@media (max-width: 1340px) { .nav-tournament__long { display: none; } .nav-tournament__short { display: inline; } }
.mobile-menu nav a.mobile-tournament-link { color: var(--color-academy-yellow); }
@media (prefers-reduced-motion: reduce) { .nav-tournament i { animation: none; } }

/* ------------------------------------------------------------------ Turnuva sayfası */
.tournament-hero { position: relative; overflow: hidden; padding: 170px 0 90px; background: var(--color-experience-navy); color: white; }
.tournament-hero::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 46px, rgba(43, 130, 201, .07) 46px 47px); pointer-events: none; }
.tournament-hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 70px; }
.tournament-hero .eyebrow { color: var(--color-academy-yellow); }
.tournament-hero h1 { margin: 0 0 22px; font: 700 clamp(3.6rem, 7vw, 7.2rem) / .84 var(--font-display); letter-spacing: -.045em; text-transform: uppercase; text-wrap: balance; }
.tournament-hero__summary { max-width: 560px; color: #bed0de; font-size: 18px; }
.tournament-hero__facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tournament-hero__facts span { padding: 9px 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius-pill); font: 11px var(--font-mono); text-transform: uppercase; }
.tournament-hero__media { position: relative; aspect-ratio: 5 / 6; overflow: hidden; border-radius: var(--radius-feature); background: #051627; }
.tournament-hero__media img, .tournament-hero__media picture { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.capacity { position: absolute; left: 22px; right: 22px; bottom: 22px; padding: 18px 20px; border-radius: 22px; background: rgba(7, 28, 51, .82); backdrop-filter: blur(10px); }
.capacity__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font: 11px var(--font-mono); text-transform: uppercase; color: #93b8d6; }
.capacity__row b { color: white; font: 700 34px / 1 var(--font-display); }
.capacity__bar { height: 8px; margin-top: 12px; overflow: hidden; border-radius: 9px; background: rgba(255, 255, 255, .12); }
.capacity__bar i { display: block; height: 100%; border-radius: inherit; background: var(--color-academy-yellow); }
.tournament-body { padding: 100px 0 120px; background: var(--color-blue-mist); }
.tournament-body__grid { display: grid; grid-template-columns: .8fr 1.2fr; align-items: start; gap: 80px; }
.tournament-info h2, .fixture h2 { margin: 0 0 20px; font: 700 clamp(2.6rem, 4vw, 3.6rem) / .9 var(--font-display); text-transform: uppercase; }
.tournament-info .prose { font-size: 17px; color: var(--color-secondary-text); }
.tournament-steps { display: grid; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; counter-reset: step; }
.tournament-steps li { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: white; font-weight: 600; counter-increment: step; }
.tournament-steps li::before { content: counter(step, decimal-leading-zero); display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--color-blue-mist); font: 500 12px var(--font-mono); }
.registration { scroll-margin-top: 110px; padding: 40px; border-radius: var(--radius-card); background: white; }
.registration__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px 20px; margin-bottom: 26px; }
.registration__head h2 { margin: 0; font: 700 44px / .9 var(--font-display); text-transform: uppercase; }
.registration__head span { font: 11px var(--font-mono); text-transform: uppercase; color: var(--color-secondary-text); }
.registration-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.registration-form fieldset { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 6px 0 0; padding: 22px; border: 1px solid var(--color-cool-border); border-radius: 20px; }
.registration-form legend { padding: 0 8px; font: 500 11px var(--font-mono); text-transform: uppercase; }
.registration-form fieldset .field:first-of-type { grid-column: 1 / -1; }
.field--check { grid-column: 1 / -1; flex-direction: row; align-items: flex-start; gap: 12px; }
.field--check input { width: 22px !important; height: 22px; flex: none; margin-top: 1px; accent-color: var(--color-brand-blue); }
.field--check label { font-size: 13px; font-weight: 500; line-height: 1.45; }
.registration-form .button { grid-column: 1 / -1; justify-self: start; margin-top: 4px; }
.form-error { grid-column: 1 / -1; padding: 15px; border-radius: 10px; background: #fbe6e6; color: #8b1f26; }
.registration-closed { display: grid; justify-items: start; gap: 14px; padding: 34px; border-radius: 24px; background: var(--color-experience-navy); color: white; }
.registration-closed b { font: 700 46px / .9 var(--font-display); text-transform: uppercase; color: var(--color-academy-yellow); }
.registration-closed p { margin: 0; color: #bed0de; }
.fixture { padding: 100px 0 120px; }
.fixture__podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 50px; }
.fixture__podium div { padding: 24px; border-radius: 24px; background: var(--color-blue-mist); }
.fixture__podium div.is-champion { background: var(--color-academy-yellow); }
.fixture__podium span { font: 11px var(--font-mono); text-transform: uppercase; color: var(--color-secondary-text); }
.fixture__podium b { display: block; margin-top: 6px; font: 700 34px / 1 var(--font-display); text-transform: uppercase; }
.fixture__round { margin-top: 34px; }
.fixture__round h3 { margin: 0 0 14px; font: 500 12px var(--font-mono); text-transform: uppercase; color: var(--color-secondary-text); }
.fixture__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.fixture-match { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid var(--color-cool-border); border-radius: 18px; background: white; }
.fixture-match span { font-weight: 600; overflow-wrap: anywhere; }
.fixture-match span:last-child { text-align: right; }
.fixture-match b { min-width: 72px; padding: 6px 10px; border-radius: 10px; background: var(--color-blue-mist); text-align: center; font: 500 14px var(--font-mono); }
.fixture-match.is-bye { grid-template-columns: 1fr auto; color: var(--color-secondary-text); }
.tournament-list { padding: 80px 0 120px; }
.tournament-list .listing-card h2 { font-size: clamp(31px, 2.5vw, 45px); }

@media (max-width: 980px) {
  .tournament-hero__grid, .tournament-body__grid { grid-template-columns: 1fr; gap: 50px; }
  .tournament-hero__media { aspect-ratio: 4 / 3; }
}
@media (max-width: 720px) {
  .site-popup { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .site-popup--poster { width: auto; max-width: calc(100% - 24px); }
  .site-popup__card { grid-template-columns: 1fr; max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }
  .site-popup__visual { min-height: 0; aspect-ratio: 16 / 9; }
  .site-popup__visual::after { background: linear-gradient(180deg, transparent 50%, var(--color-experience-navy)); }
  .site-popup__body, .site-popup--text .site-popup__body { padding: 6px 20px 22px; overflow: visible; }
  .site-popup--text .site-popup__body { padding-top: 64px; }
  .site-popup__body .eyebrow { margin-bottom: 10px; }
  .site-popup__body h2 { margin-bottom: 12px; font-size: clamp(2.1rem, 9vw, 2.7rem); padding-right: 8px; }
  .site-popup__text { margin-bottom: 18px; font-size: 15px; }
  .site-popup__facts { margin-bottom: 20px; }
  .site-popup__facts li { padding: 10px 12px; }
  .site-popup__close { top: 10px; right: 10px; width: 40px; height: 40px; }
  .site-popup__badge { left: 14px; bottom: 12px; }
  .site-popup__actions { gap: 6px; }
  .site-popup__actions .button { width: 100%; justify-content: center; }
  .site-popup__later { width: 100%; padding: 10px 0; text-align: center; }
  .site-popup__poster img { max-height: calc(100dvh - 160px); }
  .site-popup__poster-bar { padding: 16px; }
  .site-popup__poster-bar .button { width: 100%; justify-content: center; }
  .tournament-hero { padding: 135px 0 60px; }
  .tournament-body, .fixture { padding: 64px 0 80px; }
  .registration { padding: 24px; }
  .registration-form, .registration-form fieldset { grid-template-columns: 1fr; }
  .registration-form fieldset { padding: 16px; }
  .registration-form .button { width: 100%; }
  .fixture__podium { grid-template-columns: 1fr; }
  .fixture__list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .site-popup[open], .site-popup[open]::backdrop, .site-popup.is-closing, .site-popup.is-closing::backdrop { animation: none; }
  .site-popup__close span { transition: none; }
}
