/* ============================================================
   UEFA · KNOWLEDGE SHARING PLATFORM
   Pushing women's football forward.
   Design language: UEFA.com (bright UEFA blue, cyan accents,
   light surfaces, Colosseum + Manrope).
   ============================================================ */

@font-face {
  font-family: 'UEFA Colosseum';
  src: url('../assets/fonts/UEFA_Colosseum.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../assets/fonts/manrope-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../assets/fonts/manrope-semibold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../assets/fonts/manrope-bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

/* ----------- Brand tokens (UEFA.com palette) ----------- */
:root {
  /* Brand */
  --uefa-blue:        #1B58E2;        /* primary UEFA blue */
  --uefa-blue-deep:   #0E3FA5;        /* deeper blue (gradients, hovers) */
  --uefa-navy:        #0C1A3D;        /* topmost bar, footer */
  --uefa-navy-deep:   #050E26;        /* deepest navy */
  --uefa-cyan:        #33C5FF;        /* CTA / accent */
  --uefa-cyan-deep:   #00B0FF;
  --uefa-coral:       #FC6E51;        /* warm secondary accent */

  /* Surfaces */
  --bg:               #F5F7FB;        /* page background, light */
  --surface:          #FFFFFF;        /* cards, surfaces */
  --surface-blue:     #E8F0FB;        /* tinted card / section */
  --surface-dark:     var(--uefa-navy);

  /* Ink */
  --ink:              #0C1A3D;        /* main text */
  --ink-soft:         #4D5878;        /* secondary text */
  --ink-mute:         #8189A4;        /* tertiary, kicker */
  --ink-on-blue:      #FFFFFF;        /* text on UEFA blue */
  --ink-on-blue-soft: rgba(255,255,255,0.78);

  /* Lines */
  --line:             #DAE1EE;
  --line-soft:        #E9EEF7;
  --line-on-dark:     rgba(255,255,255,0.16);

  /* Status */
  --good:             #1FB386;
  --bad:              #E14F4F;

  /* Radii */
  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Shadows */
  --shadow-card:      0 8px 28px -12px rgba(12,26,61,0.14);
  --shadow-card-lg:   0 24px 60px -22px rgba(12,26,61,0.25);

  /* Header heights */
  --header-top-h: 36px;
  --header-h:     64px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
html { background: var(--bg); }
img, svg { max-width: 100%; }

body {
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: 0.005em;
}

/* Typography */
h1, h2, h3, h4, .display {
  font-family: 'UEFA Colosseum', 'Manrope', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
h1 { font-size: clamp(40px, 6vw, 80px); }
h2 { font-size: clamp(28px, 3.6vw, 48px); }
h3 { font-size: clamp(20px, 2.2vw, 28px); }
h4 { font-size: 18px; }
p { line-height: 1.55; margin: 0; }

.eyebrow {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--uefa-blue);
}
.eyebrow.on-dark { color: var(--uefa-cyan); }
.kicker {
  color: var(--ink-mute);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
}
.muted { color: var(--ink-soft); }

/* Layout */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* ================== DEMO DISCLAIMER ================== */
.demo-disclaimer {
  position: relative;
  z-index: 60;
  background: #FFC233;
  color: #1A1407;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-bottom: 2px solid #E8A300;
}
.demo-disclaimer .container {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
}
.demo-disclaimer .pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 10px;
  background: #1A1407;
  color: #FFC233;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.demo-disclaimer .pill::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #FFC233;
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.demo-disclaimer .msg { color: #1A1407; font-weight: 600; }
.demo-disclaimer .msg strong { font-weight: 800; }
@media (max-width: 640px) {
  .demo-disclaimer { font-size: 11px; padding: 6px 0; }
  .demo-disclaimer .pill { font-size: 9px; padding: 2px 8px; }
}

/* ================== AUTH OVERLAY ================== */
.auth-overlay {
  position: fixed; inset: 0;
  z-index: 1000;
  display: grid; place-items: center;
  padding: 24px;
  background-color: var(--uefa-navy);
  background-image:
    radial-gradient(80% 100% at 50% 50%, rgba(14,63,165,0.30) 0%, rgba(12,26,61,0.55) 60%, rgba(5,14,38,0.78) 100%),
    url('/assets/img/backgroundDark01L.avif');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.auth-overlay::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.45; mix-blend-mode: overlay; pointer-events: none;
}
.auth-card {
  position: relative;
  width: 100%; max-width: 460px;
  background: white;
  border-radius: var(--r-xl);
  padding: 40px 36px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.5);
}
.auth-card .auth-logo { display: block; height: 26px; margin-bottom: 28px; }
.auth-card .auth-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--uefa-blue); font-weight: 700;
  margin-bottom: 18px;
}
.auth-card .auth-eyebrow::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--uefa-cyan); box-shadow: 0 0 8px var(--uefa-cyan);
}
.auth-card h2 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin-bottom: 14px;
}
.auth-card h2 .accent { color: var(--uefa-blue); }
.auth-card .auth-lead {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 28px;
}
.auth-card form { display: flex; flex-direction: column; gap: 12px; }
.auth-card .field {
  position: relative;
  display: flex; align-items: center;
  background: var(--surface-blue);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0 14px;
  transition: border-color .15s, background .15s;
}
.auth-card .field:focus-within {
  border-color: var(--uefa-blue);
  background: white;
}
.auth-card .field svg { color: var(--ink-mute); margin-right: 10px; }
.auth-card input[type="password"] {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 14px 0;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.auth-card input::placeholder { color: var(--ink-mute); }
.auth-card .auth-submit {
  margin-top: 8px;
  padding: 14px 22px;
  background: var(--uefa-blue);
  color: white;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: background .2s, transform .15s;
}
.auth-card .auth-submit:hover { background: var(--uefa-blue-deep); transform: translateY(-1px); }
.auth-card .auth-error {
  display: none;
  margin-top: 6px;
  padding: 10px 12px;
  background: rgba(225,79,79,0.08);
  border: 1px solid rgba(225,79,79,0.35);
  color: var(--bad);
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
}
.auth-card .auth-error.is-visible { display: block; animation: fadeUp .25s ease both; }
.auth-card .auth-foot {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.5;
}

/* Card + "provided by" credit stacked together */
.auth-stack {
  display: flex; flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%; max-width: 460px;
}
.auth-credit {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.auth-credit-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,0.78);
}
.auth-credit-logo {
  height: 18px;
  width: auto;
  filter: brightness(0) invert(1);
  display: block;
}

/* ================== HEADER ================== */
.site-header { position: sticky; top: 0; z-index: 50; }

/* Top thin navy band */
.header-top {
  background: var(--uefa-navy);
  height: var(--header-top-h);
  display: flex; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-top .container {
  display: flex; align-items: center; gap: 18px;
  width: 100%;
}
.header-top a {
  color: var(--ink-on-blue-soft);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.header-top .program {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 12px;
  height: var(--header-top-h);
  font-family: 'UEFA Colosseum', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--uefa-cyan);
  white-space: nowrap;
}
.header-top .program::after {
  content: '';
  width: 1px; height: 16px;
  background: rgba(255,255,255,0.18);
  margin-left: 12px;
}
@media (max-width: 720px) {
  .header-top .program { font-size: 10px; letter-spacing: 0.10em; padding: 0 10px 0 0; }
  .header-top .program::after { display: none; }
}
.header-top a:hover { color: var(--ink-on-blue); }
.header-top .top-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 6px;
  height: var(--header-top-h);
}
.header-top .right { margin-left: auto; display: flex; gap: 16px; align-items: center; }

/* Bottom UEFA-blue band */
.header-main {
  background: var(--uefa-blue);
  height: var(--header-h);
  display: flex; align-items: center;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.header-main .container {
  display: flex; align-items: center; gap: 28px;
  width: 100%;
}
.brand {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: white;
  flex: none;
}
.brand .uefa-logo {
  height: 26px;
  width: auto;
  filter: brightness(0) invert(1);
  display: block;
}
.brand-divider {
  width: 1px;
  height: 22px;
  background: rgba(255,255,255,0.4);
}
.brand-sub {
  font-family: 'UEFA Colosseum', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  white-space: nowrap;
  line-height: 1;
}
@media (max-width: 640px) {
  .brand .uefa-logo { height: 22px; }
  .brand-divider, .brand-sub { display: none; }
}
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  display: inline-flex; align-items: center;
  padding: 8px 14px;
  color: var(--ink-on-blue-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.005em;
  border-radius: 6px;
  white-space: nowrap;
  transition: color .2s, background .2s;
  position: relative;
}
.nav a:hover { color: white; background: rgba(255,255,255,0.10); }
.nav a.active { color: white; }
.nav a.active::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: -2px;
  height: 3px; background: var(--uefa-cyan);
  border-radius: 2px;
}
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.30);
  border-radius: 8px;
  color: white; cursor: pointer;
  margin-left: auto;
}
.nav-toggle .bars { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor;
}
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after  { top:  6px; }

.login-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.4);
  color: white; text-decoration: none;
  font-size: 13px; font-weight: 600;
}
.login-btn:hover { border-color: white; background: rgba(255,255,255,0.10); }

/* ================== BUTTONS ================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s, background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn-primary {
  background: var(--uefa-cyan);
  color: var(--uefa-navy);
  box-shadow: 0 6px 18px -8px rgba(51,197,255,0.55);
}
.btn-primary:hover { background: var(--uefa-cyan-deep); transform: translateY(-1px); box-shadow: 0 8px 22px -8px rgba(0,176,255,0.7); }

.btn-blue {
  background: var(--uefa-blue);
  color: white;
}
.btn-blue:hover { background: var(--uefa-blue-deep); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--uefa-blue);
  border-color: var(--uefa-blue);
}
.btn-ghost:hover { background: var(--uefa-blue); color: white; }

.btn-ghost-light {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.6);
}
.btn-ghost-light:hover { background: white; color: var(--uefa-blue); }

.btn .arr { transition: transform .25s; }
.btn:hover .arr { transform: translateX(4px); }

/* ================== ICONS ================== */
.icon {
  width: 1em; height: 1em;
  flex: none;
  display: inline-block;
  vertical-align: -0.18em;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon.fill { fill: currentColor; stroke: none; }
.icon.lg { font-size: 22px; }

/* ================== COUNTRY FLAG BADGE ================== */
.country-badge {
  display: inline-block;
  width: 28px; height: 28px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-blue);
  flex: none;
  vertical-align: middle;
  box-shadow: 0 1px 2px rgba(12,26,61,0.06);
}
.country-badge.sm { width: 22px; height: 22px; }
.country-badge.lg { width: 36px; height: 36px; }
.country-badge.active {
  border-color: var(--uefa-cyan);
  box-shadow: 0 0 0 2px rgba(51,197,255,0.25);
}
.country-badge > .fi, .country-badge > .fis {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  background-size: cover !important;
  background-position: center !important;
  border-radius: 0;
}

/* ================== CARDS ================== */
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  padding: 28px;
}
.card-blue {
  background: var(--surface-blue);
  border-color: transparent;
}

/* Chip / pill */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  background: white;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--uefa-blue); color: var(--uefa-blue); }
.chip.is-active {
  background: var(--uefa-blue);
  color: white;
  border-color: var(--uefa-blue);
}

/* ================== FOOTER ================== */
.site-footer {
  background: var(--uefa-navy);
  color: var(--ink-on-blue-soft);
  padding: 56px 0 40px;
  margin-top: 80px;
  border-top: 4px solid var(--uefa-blue);
}
.site-footer .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 800px) { .site-footer .container { grid-template-columns: 1fr; } }
.site-footer h4 {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--uefa-cyan);
  margin: 0 0 16px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
}
.site-footer .brand { color: white; }
.site-footer .brand .uefa-logo { height: 30px; }
.site-footer .brand .brand-divider { display: inline-block; height: 26px; }
.site-footer .brand .brand-sub { display: inline; color: rgba(255,255,255,0.9); font-size: 13px; }
.site-footer p, .site-footer a {
  font-size: 13px; line-height: 1.55;
  color: var(--ink-on-blue-soft);
  text-decoration: none;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { padding: 4px 0; }
.site-footer a:hover { color: white; }
.site-footer .meta {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line-on-dark);
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}

/* ================== SECTIONS ================== */
.section { padding: 64px 0; }
.section.tight { padding: 40px 0; }
.section.compact { padding: 24px 0; }
.section-head { margin-bottom: 32px; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--ink-soft); max-width: 60ch; }

/* ================== ANIMATIONS ================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .6s cubic-bezier(.2,.7,.2,1) both; }
.d-1 { animation-delay: .04s; }
.d-2 { animation-delay: .10s; }
.d-3 { animation-delay: .16s; }
.d-4 { animation-delay: .22s; }
.d-5 { animation-delay: .28s; }
.d-6 { animation-delay: .34s; }

@keyframes barGrow { from { width: 0; } to { width: var(--w, 50%); } }
@keyframes pillIn   { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }

@media (max-width: 700px), (prefers-reduced-motion: reduce) {
  .d-1,.d-2,.d-3,.d-4,.d-5,.d-6 { animation-delay: 0s; }
  .fade-up { animation-duration: .35s; }
}

/* ================== RESPONSIVE NAV ================== */
@media (max-width: 960px) {
  .header-top .top-link.hide-mobile { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    top: calc(var(--header-top-h) + var(--header-h));
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px 16px 16px;
    background: var(--uefa-blue);
    transform: translateY(-110%);
    transition: transform .25s ease;
    z-index: 40;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 12px 30px -12px rgba(0,0,0,0.4);
  }
  .nav a {
    padding: 14px 12px;
    font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    border-radius: 0;
    color: white;
  }
  .nav a:last-child { border-bottom: none; }
  .nav a.active::after { left: 12px; right: auto; width: 28px; bottom: 8px; }
  .nav.is-open { transform: translateY(0); }
}
@media (max-width: 640px) {
  :root { --header-top-h: 30px; }
  .header-top .right { gap: 10px; }
  .header-top .right a:nth-of-type(1),
  .header-top .right a:nth-of-type(2) { display: none; }
}
