/* ========== BASE ========== */
* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  padding-top: 78px; /* space for fixed ticker */
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: rgba(255,255,255,0.92);
  overflow-x: hidden;
}

/* ========== BACKGROUND (pitch + darken + blur + vignette + subtle noise) ========== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 700px at 50% 18%, rgba(0,0,0,0.30), rgba(0,0,0,0.72) 70%),
    linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.65)),
    url("./assets/pitch-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  /* blur/saturate + vignette + subtle noise in one layer */
  backdrop-filter: blur(10px) saturate(0.85);
  -webkit-backdrop-filter: blur(10px) saturate(0.85);

  background:
    radial-gradient(900px 600px at 50% 45%, rgba(0,0,0,0.00), rgba(0,0,0,0.35)),
    radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: auto, 4px 4px;
  opacity: 1;
}

/* ========== TICKER ========== */
.ticker {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, calc(100vw - 32px));
  height: 44px;
  z-index: 9999;

  display: flex;
  align-items: center;
  overflow: hidden;

  border-radius: 14px;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.ticker__track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 24px;
  will-change: transform;
  animation: ticker-move 18s linear infinite;
}

.ticker__content {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  color: rgba(255,255,255,0.92);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0,0,0,0.35);
  white-space: nowrap;
  font-size: 12px;
}

.ticker__content .dot {
  opacity: 0.6;
  letter-spacing: 0;
}

@keyframes ticker-move {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ========== SHARED GLASS ========== */
.glass {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.30), inset 0 1px 0 rgba(255,255,255,0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

#app { min-height: 100vh; }

/* ========== HOME ========== */
body.is-home {
  height: 100vh;
  overflow: hidden;
}

.home {
  width: min(1200px, calc(100% - 28px));
  margin: 14px auto;
  height: calc(100vh - 28px);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
}

.home-header {
  padding: 10px 0 6px;
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.home-title {
  font-weight: 900;
  font-size: 34px;
  letter-spacing: 0.6px;
  line-height: 1.05;

  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.55));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  text-shadow:
    0 1px 0 rgba(255,255,255,0.22),
    0 14px 40px rgba(0,0,0,0.45);
}

.home-subtitle {
  font-size: 12px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  opacity: 0.75;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

/* 12 countries => 4 columns x 3 rows on desktop */
.country-grid {
  height: 100%;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
}

/* Responsive columns */
@media (max-width: 980px) {
  .country-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  body.is-home { overflow: auto; }
  .home { height: auto; }
  .country-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Cards (script uses <a>, so include link reset) */
.country-card {
  padding: 0;
  border: 0;
  cursor: pointer;
  overflow: hidden;
  border-radius: 22px;
  display: grid;
  grid-template-rows: 1fr auto;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  text-decoration: none;
  color: inherit;
}

.country-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 18px 48px rgba(0,0,0,0.40), inset 0 1px 0 rgba(255,255,255,0.20);
  border-color: rgba(255,255,255,0.30);
}

/* Flag image — show entire flag */
.country-thumb {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: rgba(0,0,0,0.18);
}

.country-label {
  padding: 10px 12px 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.country-name {
  font-weight: 900;
  text-transform: capitalize;
  font-size: 14px;
}

.country-count {
  font-size: 12px;
  opacity: 0.75;
}

/* ========== GALLERY ========== */
body.is-gallery {
  overflow-y: auto; /* allow scroll */
}

.gallery {
  width: min(1200px, calc(100% - 28px));
  margin: 18px auto 48px;
  display: grid;
  gap: 16px;
}

.gallery-top {
  padding: 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

.back-btn {
  display: inline-block;
  border: 0;
  padding: 10px 12px;
  border-radius: 14px;
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  text-decoration: none;
}

.back-btn:hover { background: rgba(255,255,255,0.14); }

.gallery-title { display: grid; gap: 2px; }
.gallery-title .t { font-weight: 900; font-size: 18px; text-transform: capitalize; }
.gallery-title .s { font-size: 13px; opacity: 0.8; }

/* ✅ THIS is what enforces 2 across */
.gallery-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Tiles */
.gallery-tile {
  padding: 0;
  border: 0;
  cursor: pointer;
  overflow: hidden;
  border-radius: 18px;
}

/* ✅ THIS controls thumbnail size (fixes “too big”) */
.gallery-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

/* Responsive */
@media (max-width: 980px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-img { height: 200px; }
}

@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-img { height: 220px; }
}





