/* ==========================================================================
   ELDEN RING - NOKRON ETERNAL CITY WIKI THEME
   Dark Fantasy Elden Ring In-Game UI Style (Pure CSS, Responsive, Offline)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;800;900&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500&display=swap');

:root {
  --bg-black: #060709;
  --bg-void: #030405;
  --bg-panel: rgba(14, 16, 22, 0.90);
  --bg-panel-solid: #0e1118;
  --bg-panel-alt: rgba(22, 26, 36, 0.80);
  
  --gold-primary: #d4b26f;
  --gold-bright: #fcedb6;
  --gold-muted: #9e824c;
  --gold-dark: #5c4720;
  --gold-border: rgba(197, 168, 110, 0.35);
  --gold-glow: rgba(212, 178, 111, 0.4);

  --starlight-blue: #7dd3fc;
  --silver-tear: #cbd5e1;
  --silver-dark: #64748b;
  --text-main: #d1d5db;
  --text-muted: #9ca3af;
  --text-lore: #e2e8f0;
  
  --font-display: 'Cinzel', 'Garamond', 'Palatino Linotype', 'Georgia', serif;
  --font-serif: 'Cormorant Garamond', 'Garamond', 'Georgia', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-black);
  color: var(--text-main);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.6;
}

body {
  min-height: 100vh;
  background-color: var(--bg-black);
  background-image: 
    radial-gradient(circle at 50% 12%, rgba(26, 38, 62, 0.22) 0%, transparent 60%),
    radial-gradient(circle at 85% 75%, rgba(197, 168, 110, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 15% 85%, rgba(56, 189, 248, 0.04) 0%, transparent 45%);
  background-attachment: fixed;
  overflow-x: hidden;
  position: relative;
}

/* Subtle Vignette Overlay */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.85);
  pointer-events: none;
  z-index: 99;
}

a {
  color: var(--gold-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--gold-bright);
  text-shadow: 0 0 8px var(--gold-glow);
}

/* ==========================================================================
   NAVIGATION HUD (Always at the top)
   ========================================================================== */
.game-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 10, 14, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gold-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  gap: 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
}

.nav-brand-rune {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 6px var(--gold-glow));
}

.nav-brand-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold-bright);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.6rem;
}

@media (max-width: 900px) {
  .nav-links {
    display: none; /* Can be toggled or styled on mobile */
  }
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a4a8b2;
  padding: 0.4rem 0.2rem;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-bright);
  text-shadow: 0 0 10px var(--gold-glow);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-box {
  background: rgba(18, 22, 30, 0.85);
  border: 1px solid rgba(197, 168, 110, 0.35);
  color: #e2e8f0;
  font-family: var(--font-serif);
  font-size: 0.92rem;
  padding: 0.35rem 0.8rem;
  border-radius: 2px;
  outline: none;
  width: 190px;
  transition: var(--transition);
}

.search-box:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 12px rgba(212, 178, 111, 0.35);
  width: 240px;
}

.sound-toggle-btn {
  background: rgba(22, 26, 36, 0.8);
  border: 1px solid var(--gold-border);
  color: var(--gold-bright);
  width: 34px;
  height: 34px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}

.sound-toggle-btn:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-glow);
}

/* ==========================================================================
   WIKI HERO BANNER (Top of Index)
   ========================================================================== */
.wiki-hero-banner {
  position: relative;
  background: linear-gradient(180deg, #090b10 0%, #060709 100%);
  border-bottom: 1px solid var(--gold-border);
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
  overflow: hidden;
}

.wiki-hero-banner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(600px, 90vw);
  height: 250px;
  background: radial-gradient(ellipse at center, rgba(197, 168, 110, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.wiki-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #f0c978 30%, #ba8a35 70%, #5e4312 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(212, 178, 111, 0.45)) drop-shadow(0 4px 8px #000);
  margin-bottom: 0.4rem;
  line-height: 1.15;
}

.wiki-hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.8vw, 1.15rem);
  letter-spacing: 0.35em;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  opacity: 0.92;
}

.wiki-hero-quote {
  font-family: var(--font-serif);
  font-style: italic;
  color: #94a3b8;
  font-size: 1.1rem;
  max-width: 780px;
  margin: 0 auto 1.8rem;
  line-height: 1.6;
}

.wiki-hero-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
}

.wiki-hero-btn {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #cbd5e1;
  border: 1px solid rgba(197, 168, 110, 0.4);
  background: rgba(14, 18, 26, 0.85);
  padding: 0.45rem 1.2rem;
  transition: var(--transition);
  border-radius: 2px;
}

.wiki-hero-btn:hover {
  color: #fff;
  border-color: var(--gold-primary);
  background: rgba(212, 178, 111, 0.15);
  box-shadow: 0 0 12px var(--gold-glow);
}

/* ==========================================================================
   WIKI CONTENT & PANELS
   ========================================================================== */
.wiki-container {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

/* Golden Divider Bar */
.gold-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), var(--gold-bright), var(--gold-primary), transparent);
  margin: 2.2rem 0;
  position: relative;
}

.gold-divider::after {
  content: '❖';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-black);
  padding: 0 0.8rem;
  color: var(--gold-primary);
  font-size: 0.8rem;
}

/* Grid Layout */
.wiki-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
}

@media (max-width: 1024px) {
  .wiki-grid {
    grid-template-columns: 1fr;
  }
}

/* Elden Ring In-Game Stone Slate Panel */
.er-panel {
  background: var(--bg-panel);
  border: 1px solid var(--gold-border);
  box-shadow: 
    inset 0 0 35px rgba(0, 0, 0, 0.85),
    0 10px 40px rgba(0, 0, 0, 0.6);
  padding: 2.2rem;
  position: relative;
  margin-bottom: 2.5rem;
  backdrop-filter: blur(8px);
}

/* Decorative Ornate Brass Corners */
.er-panel::before,
.er-panel::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.er-panel::before {
  top: -2px; left: -2px;
  border-top: 2px solid var(--gold-primary);
  border-left: 2px solid var(--gold-primary);
}

.er-panel::after {
  bottom: -2px; right: -2px;
  border-bottom: 2px solid var(--gold-primary);
  border-right: 2px solid var(--gold-primary);
}

/* Headings */
h1.er-heading, h2.er-heading, h3.er-heading {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fff;
  margin-bottom: 1.2rem;
  line-height: 1.25;
}

h1.er-heading {
  font-size: clamp(2rem, 3.5vw, 2.7rem);
  background: linear-gradient(180deg, #ffffff 0%, #e6ca7d 50%, #9e7f3b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.8));
}

h2.er-heading {
  font-size: 1.55rem;
  border-bottom: 1px solid rgba(197, 168, 110, 0.25);
  padding-bottom: 0.5rem;
  margin-top: 2rem;
  color: var(--gold-bright);
}

h3.er-heading {
  font-size: 1.22rem;
  color: var(--starlight-blue);
  margin-top: 1.5rem;
}

/* Paragraphs & Text */
p {
  margin-bottom: 1.25rem;
  color: #c9cdd4;
  font-size: 1.05rem;
}

strong {
  color: #f1f5f9;
  font-weight: 600;
}

/* Lore Quotes (Styled like Elden Ring in-game Item lore) */
.er-lore-quote {
  background: rgba(12, 14, 20, 0.7);
  border-left: 3px solid var(--gold-primary);
  padding: 1.2rem 1.6rem;
  margin: 1.8rem 0;
  position: relative;
  font-style: italic;
  color: #e2e8f0;
  font-size: 1.1rem;
  line-height: 1.7;
}

.er-lore-quote cite {
  display: block;
  font-style: normal;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--gold-primary);
  margin-top: 0.8rem;
  text-transform: uppercase;
}

/* Site of Grace Banner */
.grace-banner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: linear-gradient(90deg, rgba(212, 178, 111, 0.15) 0%, rgba(14, 16, 22, 0.85) 100%);
  border: 1px solid rgba(212, 178, 111, 0.35);
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  transition: var(--transition);
}

.grace-banner:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 0 20px rgba(212, 178, 111, 0.25);
}

.grace-spark {
  width: 32px;
  height: 32px;
  background: radial-gradient(circle, #fff 10%, #ffd700 45%, rgba(212, 178, 111, 0) 75%);
  border-radius: 50%;
  animation: graceFlicker 2.4s ease-in-out infinite alternate;
  flex-shrink: 0;
  transition: var(--transition);
}

@keyframes graceFlicker {
  0% { transform: scale(0.85); opacity: 0.7; filter: drop-shadow(0 0 4px #ffd700); }
  100% { transform: scale(1.15); opacity: 1; filter: drop-shadow(0 0 14px #ffe285); }
}

.grace-text h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  color: var(--gold-bright);
  text-transform: uppercase;
}

.grace-text p {
  margin: 0;
  font-size: 0.92rem;
  color: #cbd5e1;
  transition: var(--transition);
}

/* ==========================================================================
   WIKI SIDEBAR INFOBOX
   ========================================================================== */
.wiki-infobox {
  background: var(--bg-panel-solid);
  border: 1px solid var(--gold-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  position: sticky;
  top: 5.5rem;
  font-size: 0.95rem;
}

.infobox-header {
  background: linear-gradient(180deg, #242938 0%, #11141c 100%);
  border-bottom: 2px solid var(--gold-primary);
  padding: 1rem;
  text-align: center;
}

.infobox-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
  text-transform: uppercase;
}

.infobox-subtitle {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: #94a3b8;
  font-style: italic;
}

.infobox-image-wrap {
  padding: 0.75rem;
  text-align: center;
  background: #090a0e;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.infobox-img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(197, 168, 110, 0.2);
  filter: contrast(1.05) brightness(0.95);
  transition: var(--transition);
}

.infobox-table {
  width: 100%;
  border-collapse: collapse;
}

.infobox-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.infobox-table th {
  text-align: left;
  padding: 0.65rem 1rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-primary);
  width: 40%;
  vertical-align: top;
}

.infobox-table td {
  padding: 0.65rem 1rem;
  color: #e2e8f0;
  font-size: 0.92rem;
  vertical-align: top;
}

/* ==========================================================================
   CARDS & GRIDS
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.er-card {
  background: rgba(14, 17, 24, 0.85);
  border: 1px solid var(--gold-border);
  padding: 1.25rem;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.er-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), 0 0 15px rgba(212, 178, 111, 0.25);
}

.er-card-media {
  width: 100%;
  height: 200px;
  background: #08090d;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.er-card-media img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: var(--transition);
}

.er-card:hover .er-card-media img {
  transform: scale(1.05);
}

.er-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  color: var(--gold-bright);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.er-card-tag {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--starlight-blue);
  margin-bottom: 0.8rem;
}

.er-card-desc {
  font-size: 0.92rem;
  color: #94a3b8;
  flex: 1;
  margin-bottom: 1rem;
}

.er-card-btn {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-primary);
  border: 1px solid var(--gold-primary);
  padding: 0.35rem 0.9rem;
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}

.er-card-btn:hover {
  background: var(--gold-primary);
  color: #000;
  box-shadow: 0 0 12px var(--gold-glow);
}

/* ==========================================================================
   IMAGE SHOWCASE & PANORAMAS
   ========================================================================== */
.panorama-frame {
  position: relative;
  width: 100%;
  margin: 2rem 0;
  border: 1px solid var(--gold-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}

.panorama-img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  display: block;
  filter: contrast(1.08) brightness(0.92);
}

.panorama-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(6, 7, 9, 0.95) 0%, transparent 100%);
  padding: 1.5rem 1.5rem 0.8rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: var(--gold-bright);
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
}

/* ==========================================================================
   DATA TABLES
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 1.8rem 0;
}

.er-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: rgba(12, 14, 20, 0.8);
  border: 1px solid var(--gold-border);
}

.er-table th {
  background: rgba(26, 32, 46, 0.85);
  border-bottom: 2px solid var(--gold-primary);
  padding: 0.85rem 1rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-primary);
  text-align: left;
}

.er-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
}

.er-table tr:hover td {
  background: rgba(197, 168, 110, 0.06);
}

/* ==========================================================================
   CLEAN WIKI FOOTER (No telemetry, no fake regulation numbers)
   ========================================================================== */
.game-footer {
  background: #040507;
  border-top: 1px solid var(--gold-border);
  padding: 3rem 1.5rem 2rem;
  margin-top: 5rem;
  position: relative;
  z-index: 10;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.18em;
  color: var(--gold-bright);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.footer-brand p {
  font-size: 0.95rem;
  color: #71717a;
  max-width: 480px;
  line-height: 1.6;
}

.footer-column h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links a {
  font-size: 0.92rem;
  color: #94a3b8;
}

.footer-links a:hover {
  color: var(--gold-bright);
}

.footer-bottom {
  max-width: 1400px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #525866;
}

/* ==========================================================================
   BADGES & 404
   ========================================================================== */
.badge-gold {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(212, 178, 111, 0.15);
  color: var(--gold-bright);
  border: 1px solid var(--gold-muted);
  border-radius: 2px;
}

.badge-starlight {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(56, 189, 248, 0.12);
  color: var(--starlight-blue);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 2px;
}

.died-container {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.died-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 900;
  letter-spacing: 0.25em;
  color: #dc2626;
  text-shadow: 0 0 25px rgba(220, 38, 38, 0.8), 0 0 50px rgba(185, 28, 28, 0.5);
  margin-bottom: 1rem;
}

.died-sub {
  font-size: 1.35rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
}
