/* ============================================================
   3D Live Event — Design System
   Vibrant multi-color palette with glassmorphism and motion
   ============================================================ */

:root {
  /* Core palette */
  --bg-base: #fdf8f2;
  --panel: rgba(255, 251, 245, 0.78);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --line: rgba(30, 20, 10, 0.10);
  --text: #1a1410;
  --muted: #6b5e52;

  /* Brand accents */
  --orange: #f05a1a;
  --orange-deep: #c03d08;
  --orange-soft: #ffe3cf;
  --teal: #0a9ea8;
  --teal-deep: #076f78;
  --teal-soft: #ccf4f6;
  --purple: #7c3aed;
  --purple-soft: #ede9fe;
  --pink: #db2777;
  --pink-soft: #fce7f3;
  --emerald: #059669;
  --emerald-soft: #d1fae5;
  --indigo: #4338ca;
  --indigo-soft: #e0e7ff;
  --amber: #d97706;
  --amber-soft: #fef3c7;

  /* Shadows & radius */
  --shadow-sm: 0 4px 16px rgba(30, 20, 10, 0.07);
  --shadow: 0 12px 40px rgba(30, 20, 10, 0.10);
  --shadow-lg: 0 24px 64px rgba(30, 20, 10, 0.14);
  --radius: 24px;
  --radius-sm: 16px;
  --radius-pill: 999px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 60% at -10% -5%, rgba(240, 90, 26, 0.20) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 110% 5%, rgba(10, 158, 168, 0.22) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 55% 100%, rgba(124, 58, 237, 0.12) 0%, transparent 55%),
    linear-gradient(170deg, #fdf6ec 0%, #f9f0e4 40%, #f4e9d8 100%);
  background-attachment: fixed;
}

/* Subtle dot-grid texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle, rgba(30,20,10,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, transparent 70%);
}

a { color: inherit; text-decoration: none; }

/* ── Layout shell ── */
.site-shell {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 0;
}

/* ── Topbar ── */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 26px;
  position: sticky;
  top: 16px;
  z-index: 100;
  transition: box-shadow 0.3s;
}

.topbar:hover { box-shadow: var(--shadow); }

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--orange), #ff9a2e);
  color: white;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 4px 18px rgba(240, 90, 26, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}

.brand:hover .brand-mark {
  transform: scale(1.07) rotate(-2deg);
  box-shadow: 0 8px 28px rgba(240, 90, 26, 0.55);
}

.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font-family: "Sora", sans-serif; font-size: 1rem; }
.brand-copy span { color: var(--muted); font-size: 0.83rem; }

.topnav {
  display: flex;
  gap: 6px;
}

.topnav a {
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.2s, color 0.2s;
}

.topnav a:hover {
  background: rgba(240, 90, 26, 0.10);
  color: var(--orange);
}

/* ── Main grid ── */
main {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

/* ── Hero ── */
.hero {
  display: grid;
  grid-template-columns: 1.55fr 0.85fr;
  gap: 28px;
  padding: 38px 36px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 34px;
  position: relative;
  overflow: hidden;
}

/* Decorative color blobs inside hero */
.hero::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(10, 158, 168, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: 30%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.76rem;
  color: var(--teal);
  font-weight: 700;
}

h1, h2, h3, strong {
  font-family: "Sora", "Space Grotesk", sans-serif;
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  max-width: 11ch;
  background: linear-gradient(135deg, var(--orange) 0%, #c03d08 40%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lede, .section-copy, .card-description, .guide-list p, .feature-card p, .events p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ── Buttons ── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s, filter 0.18s;
  text-decoration: none;
}

.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.button-solid {
  background: linear-gradient(135deg, var(--orange), #ff8c2a);
  color: white;
  box-shadow: 0 4px 20px rgba(240, 90, 26, 0.40);
}

.button-solid:hover {
  box-shadow: 0 8px 32px rgba(240, 90, 26, 0.55);
  filter: brightness(1.06);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.55);
  border-color: var(--line);
  color: var(--text);
  backdrop-filter: blur(8px);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-sm);
}

.button-muted {
  background: rgba(255, 255, 255, 0.65);
  border-color: var(--line);
  color: var(--muted);
}

.button-muted:hover { background: white; }

/* ── Hero stats panel ── */
.hero-panel { display: grid; gap: 14px; }

.hero-stat {
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(30, 20, 10, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-stat:nth-child(1) { background: linear-gradient(135deg, rgba(240,90,26,0.12), rgba(255,140,42,0.08)); }
.hero-stat:nth-child(2) { background: linear-gradient(135deg, rgba(10,158,168,0.12), rgba(6,182,212,0.08)); }
.hero-stat:nth-child(3) { background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(139,92,246,0.08)); }

.hero-stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }

.hero-stat strong {
  display: block;
  font-size: 2.1rem;
  margin-bottom: 4px;
  background: linear-gradient(135deg, var(--orange), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat:nth-child(2) strong { background: linear-gradient(135deg, var(--teal), var(--purple)); -webkit-background-clip: text; background-clip: text; }
.hero-stat:nth-child(3) strong { background: linear-gradient(135deg, var(--purple), var(--pink)); -webkit-background-clip: text; background-clip: text; }

/* ── Category strip ── */
.category-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.category-strip::-webkit-scrollbar { height: 3px; }
.category-strip::-webkit-scrollbar-track { background: transparent; }
.category-strip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }

.category-strip a {
  scroll-snap-align: start;
  padding: 10px 16px;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  color: var(--muted);
  transition: all 0.2s;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.category-strip a:hover,
.category-strip a[data-chip="Printers"]:hover { background: var(--orange-soft); border-color: var(--orange); color: var(--orange-deep); }
.category-strip a[data-chip="Models"]:hover  { background: var(--purple-soft); border-color: var(--purple); color: var(--purple); }
.category-strip a[data-chip="Guides"]:hover  { background: var(--teal-soft);   border-color: var(--teal);   color: var(--teal-deep); }
.category-strip a[data-chip="Cosplay"]:hover { background: var(--pink-soft);   border-color: var(--pink);   color: var(--pink); }
.category-strip a[data-chip="Terrain"]:hover { background: var(--emerald-soft); border-color: var(--emerald); color: var(--emerald); }

/* ── Sections ── */
.directory, .feature-band, .guides, .events {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 30px;
  padding: 32px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
}

.section-heading h2, .events h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.8vw, 2.6rem);
  max-width: 16ch;
  letter-spacing: -0.02em;
}

.section-copy { max-width: 36ch; }

/* ── Directory controls ── */
.directory-controls {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
  margin-top: 22px;
}

.search-field { display: grid; gap: 8px; font-weight: 600; font-size: 0.92rem; }

.search-field input {
  width: 100%;
  border: 1.5px solid var(--line);
  background: rgba(255, 255, 255, 0.80);
  padding: 14px 18px;
  border-radius: 18px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-field input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(240, 90, 26, 0.12);
}

.filter-group {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.filter {
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  color: var(--muted);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter:hover { background: white; box-shadow: var(--shadow-sm); }

.filter[data-filter="All"].active       { background: linear-gradient(135deg, var(--orange), #ff8c2a); color: white; border-color: transparent; box-shadow: 0 4px 16px rgba(240,90,26,0.35); }
.filter[data-filter="Printers"].active  { background: linear-gradient(135deg, var(--orange), var(--amber)); color: white; border-color: transparent; box-shadow: 0 4px 16px rgba(240,90,26,0.35); }
.filter[data-filter="Models"].active    { background: linear-gradient(135deg, var(--purple), #9333ea); color: white; border-color: transparent; box-shadow: 0 4px 16px rgba(124,58,237,0.35); }
.filter[data-filter="Guides"].active    { background: linear-gradient(135deg, var(--teal), #06b6d4); color: white; border-color: transparent; box-shadow: 0 4px 16px rgba(10,158,168,0.35); }

.results-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ── Card grid ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

/* Card entrance animation */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.directory-card {
  display: grid;
  gap: 12px;
  background: var(--panel-strong);
  border: 1.5px solid rgba(30, 20, 10, 0.07);
  border-radius: 22px;
  padding: 20px;
  min-height: 270px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  animation: cardIn 0.35s ease both;
}

/* Colored top accent bar per category */
.directory-card[data-type="Printers"]::before  { background: linear-gradient(90deg, var(--orange), var(--amber)); }
.directory-card[data-type="Models"]::before    { background: linear-gradient(90deg, var(--purple), var(--pink)); }
.directory-card[data-type="Guides"]::before    { background: linear-gradient(90deg, var(--teal), #06b6d4); }
.directory-card[data-type="Cosplay"]::before   { background: linear-gradient(90deg, var(--pink), #ec4899); }
.directory-card[data-type="Terrain"]::before   { background: linear-gradient(90deg, var(--emerald), #10b981); }
.directory-card[data-type="Miniatures"]::before{ background: linear-gradient(90deg, var(--indigo), #6366f1); }
.directory-card[data-type="Practical"]::before { background: linear-gradient(90deg, var(--amber), #fbbf24); }
.directory-card[data-type="Resin"]::before     { background: linear-gradient(90deg, var(--teal-deep), var(--teal)); }

.directory-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: 22px 22px 0 0;
}

.directory-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(240, 90, 26, 0.15);
}

.card-topline, .card-footer, .tag-list {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.card-topline { justify-content: space-between; }
.card-footer  { justify-content: space-between; margin-top: auto; }

/* Pill colors by tag */
.pill {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.pill-Printers  { background: var(--orange-soft);  color: var(--orange-deep); border-color: rgba(240,90,26,0.20); }
.pill-Models    { background: var(--purple-soft);   color: var(--purple);       border-color: rgba(124,58,237,0.20); }
.pill-Guides    { background: var(--teal-soft);     color: var(--teal-deep);    border-color: rgba(10,158,168,0.20); }
.pill-Cosplay   { background: var(--pink-soft);     color: var(--pink);         border-color: rgba(219,39,119,0.20); }
.pill-Terrain   { background: var(--emerald-soft);  color: var(--emerald);      border-color: rgba(5,150,105,0.20); }
.pill-Miniatures{ background: var(--indigo-soft);   color: var(--indigo);       border-color: rgba(67,56,202,0.20); }
.pill-Practical,
.pill-Home      { background: var(--amber-soft);    color: var(--amber);        border-color: rgba(217,119,6,0.20); }
.pill-Resin     { background: var(--teal-soft);     color: var(--teal-deep);    border-color: rgba(10,158,168,0.20); }
.pill-default   { background: rgba(30,20,10,0.06);  color: var(--muted);        border-color: var(--line); }

.rank { color: var(--muted); font-size: 0.85rem; }

.directory-card h3 { margin: 0; font-size: 1.2rem; line-height: 1.3; }

.card-description {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-list {
  padding: 0;
  margin: 0;
  list-style: none;
  justify-content: flex-start;
  gap: 6px;
}

.tag-list li {
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(30, 20, 10, 0.06);
  color: var(--muted);
  border: 1px solid var(--line);
}

.card-footer .meta { color: var(--muted); font-size: 0.85rem; }

.card-link {
  font-weight: 700;
  font-size: 0.9rem;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--orange), #ff8c2a);
  color: white;
  border: none;
  box-shadow: 0 3px 12px rgba(240, 90, 26, 0.30);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card-link:hover {
  box-shadow: 0 6px 20px rgba(240, 90, 26, 0.45);
  transform: translateY(-1px);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 36px 24px;
  margin: 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.55);
  border: 1.5px dashed var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 0.95rem;
}

/* ── Featured section ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.feature-card {
  padding: 22px;
  border-radius: 22px;
  border: 1.5px solid rgba(30, 20, 10, 0.07);
  transition: transform 0.22s, box-shadow 0.22s;
  position: relative;
  overflow: hidden;
}

.feature-card:nth-child(1) { background: linear-gradient(145deg, rgba(240,90,26,0.07) 0%, rgba(255,140,42,0.04) 100%); }
.feature-card:nth-child(2) { background: linear-gradient(145deg, rgba(124,58,237,0.07) 0%, rgba(139,92,246,0.04) 100%); }
.feature-card:nth-child(3) { background: linear-gradient(145deg, rgba(10,158,168,0.07) 0%, rgba(6,182,212,0.04) 100%); }

.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.feature-card span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: white;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.feature-card:nth-child(1) span { background: linear-gradient(135deg, var(--orange), #ff8c2a); box-shadow: 0 4px 14px rgba(240,90,26,0.40); }
.feature-card:nth-child(2) span { background: linear-gradient(135deg, var(--purple), #9333ea); box-shadow: 0 4px 14px rgba(124,58,237,0.40); }
.feature-card:nth-child(3) span { background: linear-gradient(135deg, var(--teal), #06b6d4);   box-shadow: 0 4px 14px rgba(10,158,168,0.40); }

.feature-card h3 { margin: 0 0 10px; font-size: 1.1rem; }

/* ── Guides ── */
.guide-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.guide-list article {
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.60);
  border: 1.5px solid rgba(30, 20, 10, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.guide-list article:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }

.guide-list article h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.35;
}

.guide-list article .guide-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 10px;
}

/* ── Events section ── */
.events {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg,
    rgba(240,90,26,0.09) 0%,
    rgba(124,58,237,0.08) 50%,
    rgba(10,158,168,0.09) 100%
  );
  border-color: rgba(240, 90, 26, 0.15);
}

.events h2 {
  background: linear-gradient(135deg, var(--orange), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Footer ── */
.site-footer {
  margin-top: 20px;
  padding: 36px 32px 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 30px 30px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}

.footer-brand .brand-mark {
  width: 44px;
  height: 44px;
  font-size: 0.95rem;
  border-radius: 13px;
}

.footer-brand p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 28ch;
}

.footer-col h4 {
  margin: 0 0 14px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.footer-col ul {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--orange); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.87rem;
}

.footer-badges { display: flex; gap: 10px; flex-wrap: wrap; }

.badge {
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.badge-orange   { background: var(--orange-soft);  color: var(--orange-deep); border-color: rgba(240,90,26,0.20); }
.badge-teal     { background: var(--teal-soft);     color: var(--teal-deep);   border-color: rgba(10,158,168,0.20); }
.badge-purple   { background: var(--purple-soft);   color: var(--purple);      border-color: rgba(124,58,237,0.20); }

/* ── Admin pages ── */
.admin-page { min-height: 100vh; }

.admin-shell {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  margin-top: 24px;
}

.admin-panel, .admin-list, .admin-topbar {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 28px;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
}

.admin-panel, .admin-list { padding: 22px; }

.admin-panel form, .admin-auth form { display: grid; gap: 14px; }

.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 0.92rem; }

.field input, .field textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  background: rgba(255, 255, 255, 0.80);
  padding: 13px 16px;
  border-radius: 14px;
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus, .field textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(240, 90, 26, 0.12);
}

.field input:disabled, .field textarea:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.field textarea { min-height: 130px; }

.admin-actions, .admin-login-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.status-line { margin: 0 0 14px; color: var(--muted); font-size: 0.9rem; }
.error-text  { color: #c03d08; }

.admin-list-items { display: grid; gap: 14px; }

.admin-item {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.65);
  border: 1.5px solid rgba(30, 20, 10, 0.08);
}

.admin-item header, .admin-item footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-item h3 { margin: 0; font-size: 1rem; }
.admin-item p { color: var(--muted); line-height: 1.6; font-size: 0.92rem; margin: 8px 0; }

.admin-auth {
  width: min(460px, calc(100% - 32px));
  margin: 8vh auto 0;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 30px;
}

.hidden { display: none !important; }

/* ── Scroll reveal ── */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal { animation: revealUp 0.55s ease both; }
.reveal-delay-1 { animation-delay: 0.08s; }
.reveal-delay-2 { animation-delay: 0.16s; }
.reveal-delay-3 { animation-delay: 0.24s; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .card-grid, .feature-grid, .guide-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero::before, .hero::after { display: none; }
  .directory-controls { grid-template-columns: 1fr; }
  .section-heading { flex-direction: column; align-items: flex-start; }
  .events { flex-direction: column; align-items: flex-start; gap: 20px; }
  .admin-grid { grid-template-columns: 1fr; }
  .topbar { flex-wrap: wrap; gap: 14px; }
}

@media (max-width: 680px) {
  .site-shell { width: calc(100% - 24px); }
  .hero, .directory, .feature-band, .guides, .events { padding: 22px 18px; border-radius: 22px; }
  h1 { font-size: 2.5rem; }
  .card-grid, .feature-grid, .guide-list { grid-template-columns: 1fr; }
  .topnav { gap: 4px; }
  .topnav a { padding: 8px 11px; font-size: 0.87rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
