/* assets/countriesstyle.css */

/* -----------------------------
   THEME TOKENS (shared)
------------------------------ */
:root {
  --primary: #ffb703;
  --primary-strong: #fb8500;
  --accent: #023047;

  --bg-body: #fbf6ee;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;

  --text-main: #181818;
  --text-muted: #555555;

  --border-soft: rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 14px 35px rgba(15, 23, 42, 0.08);
  --radius-lg: 18px;
}

body.dark {
  --accent: #e5e7eb;

  --bg-body: #020617;

  /* IMPORTANT: readable dark “surface” (cards/pills) */
  --surface: rgba(15, 23, 42, 0.78);
  --surface-strong: rgba(15, 23, 42, 0.92);

  --text-main: #e5e7eb;
  --text-muted: #a7b0bf;

  --border-soft: rgba(148, 163, 184, 0.22);
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.55);
}

/* base reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: min(1120px, 100% - 2.5rem); margin: 0 auto; }

/* -----------------------------
   HEADER / NAVBAR (shared)
------------------------------ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
body.dark .topbar { background: rgba(2, 6, 23, 0.92); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  font-size: 0.98rem;
}

.logo {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffb703, #fb8500);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 0.9rem;
  box-shadow: 0 8px 18px rgba(251, 133, 0, 0.45);
}

.menu {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.92rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.1s ease;
  font-weight: 600;
}

.nav-link:hover {
  background: rgba(2, 48, 71, 0.08);
  transform: translateY(-1px);
}
body.dark .nav-link:hover { background: rgba(148, 163, 184, 0.2); }

/* dropdown */
.dropdown { position: relative; }
.dropdown-toggle {
  border: none;
  background: linear-gradient(135deg, #ffb703, #fb8500);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(251, 133, 0, 0.45);
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}
.dropdown-toggle::after { content: "▾"; font-size: 0.7rem; opacity: 0.95; }
.dropdown-toggle:hover { transform: translateY(-1px); box-shadow: 0 15px 30px rgba(251, 133, 0, 0.55); }

.dropdown-menu {
  position: absolute;
  right: 0;
  margin-top: 0.45rem;
  background: #fffdf9;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  min-width: 220px;
  padding: 0.4rem;
  display: none;
  flex-direction: column;
  z-index: 200;
}
body.dark .dropdown-menu { background: rgba(2, 6, 23, 0.98); border: 1px solid var(--border-soft); }

.dropdown-menu a {
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}
.dropdown-menu a strong { font-weight: 900; color: var(--accent); }
.dropdown-menu a small { font-size: 0.72rem; color: var(--text-muted); }
.dropdown-menu a:hover { background: rgba(255, 183, 3, 0.15); }

.dropdown.open .dropdown-menu { display: flex; }

/* social + mode */
.nav-right-group { display: flex; align-items: center; gap: 0.55rem; }
.social-icons { display: flex; align-items: center; gap: 0.35rem; }

.icon-pill {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(2, 48, 71, 0.06), 0 10px 20px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.icon-pill svg { width: 16px; height: 16px; }
.icon-pill:hover { transform: translateY(-1px) scale(1.03); box-shadow: 0 13px 30px rgba(0, 0, 0, 0.18); background: #fff7e7; }
body.dark .icon-pill {
  background: rgba(2, 6, 23, 0.9);
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.35), 0 10px 20px rgba(0, 0, 0, 0.55);
}

.mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
body.dark .mode-toggle { background: rgba(2, 6, 23, 0.7); }
#modeIcon { color: #f8d574; }

/* -----------------------------
   BUTTONS (shared)
------------------------------ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.0rem;
  font-size: 0.85rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 800;
  background: linear-gradient(135deg, #ffb703, #fb8500);
  color: #fff;
  box-shadow: 0 14px 30px rgba(251, 133, 0, 0.5);
  transition: transform 0.1s ease, box-shadow 0.15s ease;
  text-decoration: none;
  justify-content: center;
  text-align: center;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 18px 35px rgba(251, 133, 0, 0.6); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.0rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  cursor: pointer;
}
body.dark .btn-secondary { background: rgba(2, 6, 23, 0.7); color: var(--text-main); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px dashed rgba(2, 48, 71, 0.22);
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  transition: background 0.2s ease, transform 0.1s ease;
}
.btn-ghost:hover { background: rgba(2, 48, 71, 0.04); transform: translateY(-1px); }
body.dark .btn-ghost { background: rgba(2, 6, 23, 0.65); border-color: rgba(148, 163, 184, 0.45); }

/* -----------------------------
   FOOTER (shared)
------------------------------ */
footer {
  padding: 1.4rem 0 1.8rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
footer .footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  justify-content: space-between;
}
footer .footer-inner a {
  text-decoration: underline;
  text-decoration-style: dotted;
}

/* responsive header */
@media (max-width: 640px) {
  .nav { flex-wrap: wrap; align-items: flex-start; }
  .menu { width: 100%; justify-content: flex-end; }
}
