/* ============================================
   NATION PAGES — nation.css
   ============================================ */

/* ---- HERO ---- */
.nation-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
  padding: calc(72px + 2rem) 2rem 4rem;
}

.nation-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 40%,
    color-mix(in srgb, var(--nation-accent) 25%, transparent) 0%,
    color-mix(in srgb, var(--nation-dark) 80%, transparent) 55%,
    var(--bg) 100%
  );
  z-index: 0;
}

/* Decorative corner gradient */
.nation-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--nation-accent2) 12%, transparent) 0%,
    transparent 40%
  );
  z-index: 1;
}

/* Bottom fade to page bg */
.nation-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 160px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: 1;
}

.nation-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.nation-breadcrumb {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  text-decoration: none;
  transition: color 0.2s;
}
.nation-breadcrumb:hover { color: var(--turquoise); }

.nation-hero h1 {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(3rem, 8vw, 7rem);
  color: var(--cream);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.8rem;
  text-shadow: 0 4px 40px rgba(0,0,0,0.5);
}

/* Color the title with nation accent */
.nation-hero h1 {
  background: linear-gradient(135deg, #fff 0%, var(--nation-accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nation-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-style: italic;
  color: var(--text-muted);
  max-width: 500px;
}

/* ---- MAIN ---- */
.nation-main { background: var(--bg); }

/* ---- INTRO ---- */
.nation-intro {
  padding: 5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.nation-intro-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.nation-eye {
  width: 180px;
  height: 63px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px var(--turquoise-glow));
  animation: eyePulse 4s ease-in-out infinite;
}

.nation-intro-text {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.9;
}

/* ---- PHILOSOPHY ---- */
.nation-philosophy {
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}

.nation-philosophy::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--nation-accent, var(--turquoise)), transparent);
}

.nation-philosophy blockquote {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: var(--turquoise-light);
  line-height: 1.7;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  padding: 0 2rem;
}

.nation-philosophy blockquote::before {
  content: '"';
  position: absolute;
  left: -0.2rem;
  top: -0.5rem;
  font-size: 4rem;
  color: var(--nation-accent, var(--turquoise));
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
}

[data-theme="saints"] .nation-philosophy blockquote {
  color: var(--turquoise-dark);
}

[data-theme="saints"] .nation-hero h1 {
  background: linear-gradient(135deg, var(--text) 0%, var(--turquoise-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="saints"] .nation-subtitle { color: var(--text-muted); }
[data-theme="saints"] .nation-breadcrumb { color: var(--text-muted); }

/* ---- DISHES ---- */
.nation-dishes {
  padding: 5rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.nation-dishes-header {
  margin-bottom: 3rem;
}

.nation-dishes-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--cream);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.nation-dishes-header p {
  font-style: italic;
  color: var(--text-muted);
  font-size: 18px;
}

.nation-dishes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.nation-dish-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 1.8rem;
  transition: all 0.35s;
  position: relative;
}

.nation-dish-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-hover-border);
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}

.sinners-dish { border-left: 3px solid var(--sinners-color); }
.sinners-dish:hover { border-left-color: var(--sinners-color); }
.saints-dish { border-left: 3px solid var(--saints-color); }
.saints-dish:hover { border-left-color: var(--saints-color); }

.nation-dish-side-tag {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.52rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.sinners-dish .nation-dish-side-tag {
  background: rgba(212,84,26,0.12);
  border: 1px solid rgba(212,84,26,0.3);
  color: var(--sinners-color);
}

.saints-dish .nation-dish-side-tag {
  background: rgba(201,162,39,0.12);
  border: 1px solid rgba(201,162,39,0.3);
  color: var(--saints-color);
}

.nation-dish-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.nation-dish-top h3 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: var(--cream);
  font-weight: 600;
  line-height: 1.3;
}

.nation-dish-price {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  color: var(--turquoise);
  white-space: nowrap;
  font-weight: 600;
}

.nation-dish-card > p {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  font-style: italic;
}

/* ---- FACTS ---- */
.nation-facts {
  padding: 5rem 2rem;
  background: var(--bg-stone);
  position: relative;
}

.nation-facts::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--nation-accent, var(--turquoise)), transparent);
}

.nation-facts-inner {
  max-width: 800px;
  margin: 0 auto;
}

.nation-facts-inner .section-tag { display: block; margin-bottom: 0.5rem; }

.nation-facts-inner h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: var(--cream);
  font-weight: 400;
  margin-bottom: 2.5rem;
}

.nation-facts-list {
  list-style: none;
  counter-reset: facts;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.nation-facts-list li {
  counter-increment: facts;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  font-style: italic;
}

.nation-facts-list li::before {
  content: counter(facts, decimal-leading-zero);
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--turquoise);
  flex-shrink: 0;
  padding-top: 0.3rem;
  font-style: normal;
}

/* ---- NATION NAVIGATION ---- */
.nation-nav-section {
  padding: 5rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.nation-nav-section .section-tag { display: block; margin-bottom: 0.5rem; }

.nation-nav-section h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--cream);
  font-weight: 400;
  margin-bottom: 2rem;
}

.nation-nav-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nation-nav-chip {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.65rem 1.4rem;
  border: 1px solid var(--border-accent);
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s;
  background: var(--card-bg);
}

.nation-nav-chip:hover {
  border-color: var(--turquoise);
  color: var(--turquoise-light);
  background: rgba(46,196,196,0.08);
  transform: translateY(-2px);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nation-hero { padding: calc(72px + 1rem) 1.5rem 3rem; }
  .nation-hero h1 { font-size: clamp(2.5rem, 10vw, 4rem); }
  .nation-intro { padding: 3rem 1.5rem; }
  .nation-dishes { padding: 3rem 1.5rem; }
  .nation-dishes-grid { grid-template-columns: 1fr; }
  .nation-facts { padding: 3rem 1.5rem; }
  .nation-nav-section { padding: 3rem 1.5rem; }
}
