/* ============================================================
   COUNTRY PAGE — UNIVERSAL STYLING
   ============================================================ */

/* ------------------------------------------------------------
   THEME TOKENS
   ------------------------------------------------------------ */
:root {
  --bg:#0b0e13;
  --card:#121720;
  --text:#eaf0f6;
  --muted:#9fb0c3;
  --primary:#69b1ff;
  --accent:#22d3ee;
  --border:#223047;
  --shadow:0 10px 25px rgba(0,0,0,.35);
}

[data-theme="light"] {
  --bg:#f6f8fb;
  --card:#ffffff;
  --text:#0b1220;
  --muted:#445065;
  --primary:#1d4ed8;
  --accent:#0891b2;
  --border:#e3e8ef;
  --shadow:0 8px 20px rgba(2,8,23,.12);
}

/* ------------------------------------------------------------
   BASE LAYOUT
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing:border-box;
}

html, body {
  height:100%;
}

body {
  margin:0;
  color:var(--text);
  font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(34,211,238,.12), transparent 50%),
    radial-gradient(1200px 800px at 110% 10%, rgba(105,177,255,.10), transparent 60%),
    var(--bg);
}

main, .page {
  max-width:1100px;
  margin:0 auto;
  padding:28px 20px 60px;
}

/* ------------------------------------------------------------
   HERO BANNER (art + veil + text)
   ------------------------------------------------------------ */
.hero {
  position:relative;
  border-radius:24px;
  overflow:hidden;
  margin-bottom:28px;
  box-shadow:var(--shadow);
  background:#000;
  height:clamp(240px, 40vh, 420px);
}

/* Background image div */
.hero .art {
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center 20%;
  filter:saturate(1.02) contrast(1.02) brightness(.95);
}

/* Gradient veil for readability */
.hero .veil {
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(8,16,23,0) 40%, rgba(8,16,23,.85) 100%);
}

/* Text block */
.hero .text {
  position:absolute;
  left:20px;
  right:20px;
  bottom:22px;
  color:#fff;
}

.hero .text h1 {
  margin:0 0 6px;
  font-size:clamp(22px,3vw,30px);
}

.hero .text .subtitle {
  font-size:0.95rem;
  color:#e7eef7;
  opacity:.92;
}

/* ------------------------------------------------------------
   HEADINGS, HINTS
   ------------------------------------------------------------ */
.section-title {
  margin:18px 0 12px;
  font-size:22px;
  letter-spacing:.3px;
}

.hint {
  margin-top:4px;
  font-size:13px;
  color:var(--muted);
}

/* ------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------ */
.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:8px 14px;
  border-radius:12px;
  border:1px solid var(--border);
  background:var(--card);
  color:var(--text);
  text-decoration:none;
  font-weight:600;
  font-size:14px;
  cursor:pointer;
  white-space:nowrap;
  transition:background .15s, border-color .15s, color .15s, transform .15s;
}

.btn:hover:not([disabled]) {
  background:rgba(105,177,255,.18);
  border-color:rgba(105,177,255,.7);
  color:#fff;
  transform:translateY(-1px);
}

.btn[disabled] {
  opacity:.6;
  cursor:not-allowed;
}

.btn.pill {
  border-radius:999px;
}

/* ------------------------------------------------------------
   GRID + CARD (if you use grids on country pages)
   ------------------------------------------------------------ */
.grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(230px,1fr));
  gap:18px;
  margin-top:6px;
}

.card {
  background:var(--card);
  border-radius:16px;
  border:1px solid var(--border);
  padding:14px;
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
  gap:10px;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card:hover {
  transform:translateY(-2px);
  border-color:rgba(105,177,255,.7);
  box-shadow:0 12px 28px rgba(0,0,0,.35);
}

/* Album / panorama thumbs inside cards (if used) */
.album-card .thumb {
  border-radius:12px;
  overflow:hidden;
  background:#000;
  aspect-ratio:16/9;
}

.album-card .thumb img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.album-card .title {
  font-weight:700;
  margin-top:2px;
}

.album-card .desc {
  color:var(--muted);
  font-size:0.9rem;
  line-height:1.4;
  margin:0 0 4px;
}

/* ------------------------------------------------------------
   REGION THUMBS (used in UK accordion headers)
   ------------------------------------------------------------ */
.thumb {
  width:80px;
  height:60px;
  border-radius:12px;
  background-size:cover;
  background-position:center;
  flex-shrink:0;
  box-shadow:var(--shadow);
}

/* ------------------------------------------------------------
   ACCORDION (for big country / region lists)
   ------------------------------------------------------------ */
.accordion {
  display:flex;
  flex-direction:column;
  gap:0.75rem;
  margin:1.5rem auto 0;
}

.accordion-section {
  border-radius:0.75rem;
  border:1px solid var(--border);
  background:var(--card);
  overflow:hidden;
  box-shadow:var(--shadow);
}

/* Header row */
.accordion-header {
  width:100%;
  padding:0.75rem 1rem;
  display:flex;
  align-items:center;
  gap:0.75rem;
  background:transparent;
  border:none;
  cursor:pointer;
  color:var(--text);
  text-align:left;
}

.accordion-header:hover {
  background:rgba(255,255,255,0.04);
}

/* Text inside header */
.accordion-header .header-text .title {
  font-weight:600;
  font-size:1rem;
}

.accordion-header .header-text .subtitle {
  font-size:0.85rem;
  color:var(--muted);
}

/* Icon on the right */
.accordion-icon {
  margin-left:auto;
  font-size:0.9rem;
  transition:transform 0.2s ease;
}

.accordion-section.open .accordion-icon {
  transform:rotate(180deg);
}

/* Body panel */
.accordion-panel {
  display:none;
  padding:0 1rem 1rem;
  font-size:0.9rem;
  color:var(--muted);
}

.accordion-section.open .accordion-panel {
  display:block;
}

.accordion-panel p {
  margin:0 0 0.5rem;
}

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
.footer {
  margin-top:32px;
}

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 600px) {
  main, .page {
    padding:20px 14px 40px;
  }

  .hero {
    border-radius:18px;
  }

  .hero .text {
    left:16px;
    right:16px;
    bottom:18px;
  }

  .thumb {
    width:72px;
    height:52px;
  }
}
