/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  background: #0a080c;
  color: #e4dce8;
  line-height: 1.6;
  padding-top: 72px;
}

a {
  color: #ff6b6b;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: #ff9999;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.accent {
  color: #ff6b6b;
}

.section-sub {
  color: #b09cb8;
  font-size: 1.05rem;
  margin-bottom: 30px;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 8, 12, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #2a1e30;
  z-index: 1000;
  padding: 14px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}
.logo .accent {
  color: #ff6b6b;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span {
  display: block;
  width: 28px;
  height: 3px;
  background: #e4dce8;
  border-radius: 3px;
  transition: 0.3s;
}
.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 24px;
}
.nav-menu ul li a {
  color: #c4b4cc;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: 0.2s;
}
.nav-menu ul li a:hover {
  color: #fff;
  border-bottom-color: #ff6b6b;
}

/* ===== RESPONSIVE HEADER ===== */
@media (max-width: 768px) {
  body {
    padding-top: 64px;
  }
  .burger {
    display: flex;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0a080c;
    border-bottom: 2px solid #2a1e30;
    padding: 16px 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
  }
  .nav-menu.open {
    display: block;
    max-height: 400px;
    padding: 16px 0;
  }
  .nav-menu ul {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
}

/* ===== SECTION COMMON ===== */
section {
  padding: 60px 0;
  border-bottom: 1px solid #1e1424;
}
section:last-of-type {
  border-bottom: none;
}

h1, h2, h3, h4 {
  color: #fff;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  border-left: 5px solid #ff6b6b;
  padding-left: 18px;
}

/* ===== SECTION 1 – HERO / WORLD OVERVIEW ===== */
.hero-section {
  padding-top: 30px;
  background: linear-gradient(180deg, #0f0a18 0%, #0a080c 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

.hero-text h1 {
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #fff 50%, #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text > p {
  color: #c4b4cc;
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.hero-image img {
  width: 100%;
  border-radius: 16px;
  border: 2px solid #2a1e30;
  background: #120e18;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.kingdoms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 20px;
}

.kingdom-card {
  background: #120e18;
  padding: 18px 20px;
  border-radius: 14px;
  border-left: 4px solid #ff6b6b;
  border: 1px solid #2a1e30;
  border-left-width: 4px;
  transition: 0.2s;
}
.kingdom-card:hover {
  border-color: #ff6b6b;
  transform: translateY(-2px);
}

.kingdom-card h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: #ff6b6b;
}
.kingdom-card .kingdom-title {
  font-size: 0.8rem;
  color: #9a84a8;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}
.kingdom-card p {
  font-size: 0.92rem;
  color: #d4c8dc;
}

.hero-footer {
  margin-top: 20px;
  font-size: 0.9rem;
  color: #ff6b6b;
  font-style: italic;
}

/* ===== SECTION 2 – CHARACTER DATABASE ===== */
.characters-section {
  background: #0d0a12;
}

.characters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin: 24px 0;
}

.character-card {
  background: #120e18;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #2a1e30;
  transition: 0.25s;
}
.character-card:hover {
  border-color: #ff6b6b;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255, 107, 107, 0.08);
}

.character-img {
  height: 200px;
  background: #1a1424;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  border-bottom: 1px solid #2a1e30;
}

.character-body {
  padding: 18px 20px;
}

.character-body h3 {
  font-size: 1.15rem;
  color: #ff6b6b;
  margin-bottom: 2px;
}
.character-body .char-title {
  font-size: 0.8rem;
  color: #9a84a8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.character-body .char-race {
  display: inline-block;
  background: #1e1428;
  color: #c4b4cc;
  font-size: 0.75rem;
  padding: 2px 10px;
  border-radius: 12px;
  margin: 6px 0 8px;
}
.character-body .char-bio {
  font-size: 0.92rem;
  color: #d4c8dc;
  margin-bottom: 8px;
}
.character-body .char-relations {
  font-size: 0.82rem;
  color: #9a84a8;
  margin-bottom: 6px;
}
.character-body .char-quote {
  font-style: italic;
  color: #ff6b6b;
  font-size: 0.88rem;
  border-left: 3px solid #ff6b6b;
  padding-left: 12px;
  margin-top: 8px;
}

.characters-image {
  text-align: center;
  margin: 20px 0;
}
.characters-image img {
  border-radius: 16px;
  border: 2px solid #2a1e30;
  max-height: 300px;
  width: 100%;
  object-fit: cover;
}
.image-caption {
  font-size: 0.85rem;
  color: #9a84a8;
  margin-top: 8px;
  text-align: center;
}

/* ===== SECTION 3 – LORE TIMELINE ===== */
.timeline-section {
  background: #0a080c;
}

.timeline {
  position: relative;
  padding-left: 40px;
  margin: 30px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #ff6b6b, #2a1e30);
  border-radius: 2px;
}

.timeline-event {
  position: relative;
  margin-bottom: 28px;
  padding: 18px 22px;
  background: #120e18;
  border-radius: 14px;
  border: 1px solid #2a1e30;
  transition: 0.2s;
}
.timeline-event:hover {
  border-color: #ff6b6b;
}

.timeline-event::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 22px;
  width: 14px;
  height: 14px;
  background: #ff6b6b;
  border-radius: 50%;
  border: 3px solid #0a080c;
  box-shadow: 0 0 0 2px #ff6b6b;
}

.timeline-event .event-date {
  display: inline-block;
  background: #ff6b6b;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 12px;
  border-radius: 20px;
  margin-bottom: 6px;
}
.timeline-event h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.timeline-event p {
  font-size: 0.92rem;
  color: #d4c8dc;
}

/* ===== SECTION 4 – ARTIFACTS & RELICS ===== */
.artifacts-section {
  background: #0d0a12;
}

.artifacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin: 24px 0;
}

.artifact-card {
  background: #120e18;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #2a1e30;
  border-top: 4px solid #ff6b6b;
  transition: 0.25s;
}
.artifact-card:hover {
  border-color: #ff6b6b;
  transform: translateY(-3px);
}

.artifact-card .artifact-icon {
  font-size: 2.4rem;
  margin-bottom: 6px;
}
.artifact-card h3 {
  font-size: 1.15rem;
  color: #ff6b6b;
  margin-bottom: 2px;
}
.artifact-card .artifact-location {
  font-size: 0.8rem;
  color: #9a84a8;
  font-weight: 600;
  margin-bottom: 8px;
}
.artifact-card .artifact-desc {
  font-size: 0.92rem;
  color: #d4c8dc;
  margin-bottom: 8px;
}
.artifact-card .artifact-significance {
  font-size: 0.88rem;
  color: #ff6b6b;
  font-weight: 500;
  border-top: 1px solid #2a1e30;
  padding-top: 8px;
}

.artifacts-image {
  text-align: center;
  margin: 20px 0;
}
.artifacts-image img {
  border-radius: 16px;
  border: 2px solid #2a1e30;
  max-height: 280px;
  width: 100%;
  object-fit: cover;
}

/* ===== SECTION 5 – FAN THEORIES CORNER ===== */
.theories-section {
  background: #0a080c;
}

.theories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin: 24px 0;
}

.theory-card {
  background: #120e18;
  border-radius: 16px;
  padding: 22px;
  border: 1px solid #2a1e30;
  transition: 0.25s;
}
.theory-card:hover {
  border-color: #ff6b6b;
}

.theory-card .theory-tag {
  display: inline-block;
  background: #ff6b6b20;
  color: #ff6b6b;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.theory-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.theory-card p {
  font-size: 0.92rem;
  color: #d4c8dc;
  margin-bottom: 10px;
}

.theory-prompt {
  background: #1a1424;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  color: #c4b4cc;
  border-left: 3px solid #ff6b6b;
}

.discussion-prompt {
  background: #120e18;
  border: 1px solid #2a1e30;
  border-radius: 16px;
  padding: 24px 28px;
  margin-top: 20px;
  text-align: center;
}
.discussion-prompt h3 {
  margin-bottom: 8px;
  color: #ff6b6b;
}
.discussion-prompt p {
  color: #c4b4cc;
  font-size: 1rem;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #06050a;
  border-top: 1px solid #2a1e30;
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-nav {
  display: flex;
  gap: 22px;
}
.footer-nav a {
  color: #9a84a8;
  font-size: 0.9rem;
}
.footer-nav a:hover {
  color: #ff6b6b;
}

/* ===== LEGAL PAGES ===== */
.page-content {
  padding: 40px 0 60px;
}
.page-content h1 {
  font-size: 2.4rem;
  margin-bottom: 6px;
}
.page-content .page-date {
  color: #9a84a8;
  margin-bottom: 30px;
}
.page-content section {
  border-bottom: none;
  padding: 20px 0;
}
.page-content h2 {
  font-size: 1.5rem;
  border-left: 4px solid #ff6b6b;
  padding-left: 14px;
  margin-bottom: 8px;
  margin-top: 10px;
}
.page-content p {
  color: #d4c8dc;
  margin-bottom: 12px;
  font-size: 0.98rem;
}
.page-content ul {
  padding-left: 28px;
  margin-bottom: 16px;
}
.page-content ul li {
  color: #c4b4cc;
  margin-bottom: 6px;
}
.page-content .back-link {
  margin-top: 30px;
  display: inline-block;
  font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-image {
    order: -1;
  }
  .kingdoms-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  h2 {
    font-size: 1.7rem;
  }
  .hero-text h1 {
    font-size: 2rem;
  }
  .characters-grid {
    grid-template-columns: 1fr;
  }
  .artifacts-grid {
    grid-template-columns: 1fr;
  }
  .theories-grid {
    grid-template-columns: 1fr;
  }
  .timeline {
    padding-left: 30px;
  }
  .timeline-event::before {
    left: -22px;
    width: 12px;
    height: 12px;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}
