/* ============================================================
   WALLACHIA LEGION — STYLES
   Do not edit unless you know CSS.
   All content, links, and asset paths are in config.js
   ============================================================ */

@font-face {
  font-family: 'SaveryOutline';
  src: url('assets/savery_outline.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  unicode-range: U+0041-005A, U+0061-007A, U+00C0-00FF; /* letters only, no numerals */
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --black:       #080808;
  --dark:        #111113;
  --surface:     #18181b;
  --border:      rgba(255,255,255,0.07);
  --red:         #bb0a1e;
  --red-bright:  #cc1100;
  --red-glow:    rgba(187,10,30,0.35);
  --red-soft:    rgba(187,10,30,0.12);
  --silver:      #a8adb8;
  --silver-dim:  #5c6070;
  --white:       #eeeef0;
  --font-display: 'Bebas Neue', sans-serif;
  --font-custom:  'SaveryOutline', 'Bebas Neue', sans-serif; /* custom font — swap file in assets/ and update @font-face above */
  --font-body:    'Rajdhani', sans-serif;
  --font-mono:    'Share Tech Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
}

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

/* ── PAGES ─────────────────────────────────────────────── */
.page { display: none; min-height: 100vh; }
.page.active { display: block; }

/* ── NAVBAR ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  padding: 0 40px;
  height: 70px;
  display: flex;
  align-items: center;
  transition: background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,8,8,0.7) 0%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  height: 50px;
  width: 50px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px var(--red-glow));
  transition: filter 0.3s;
}

.nav-brand:hover .nav-logo {
  filter: drop-shadow(0 0 14px rgba(187,10,30,0.6));
}

.nav-org-name {
  font-family: var(--font-custom);
  font-size: 26px;
  letter-spacing: 0.12em;
  color: var(--red-bright);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver-dim);
  padding: 8px 16px;
  border-radius: 3px;
  transition: color 0.25s;
  cursor: pointer;
}

.nav-link:hover,
.nav-link.active { color: var(--white); }
.nav-link.active  { color: var(--red-bright); }

.nav-btn {
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 12px;
  letter-spacing: 0.14em;
  padding: 8px 20px;
  transition: all 0.25s;
}

.nav-btn-discord { border-color: var(--border); color: var(--silver) !important; }
.nav-btn-discord:hover {
  border-color: #5865F2;
  color: #7289da !important;
  background: rgba(88,101,242,0.08);
}

.nav-btn-join {
  background: var(--red);
  border-color: var(--red);
  color: var(--white) !important;
  box-shadow: 0 0 16px var(--red-glow);
}
.nav-btn-join:hover {
  background: var(--red-bright);
  border-color: var(--red-bright);
  box-shadow: 0 0 28px var(--red-glow);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--silver);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── ZONE B — HERO BANNER ───────────────────────────────── */
.hero-banner {
  width: 100%;
  padding-top: 70px; /* offset for fixed navbar */
  position: relative;
  overflow: hidden;
  max-height: 320px;
}

.hero-banner img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.75);
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,8,8,0.3) 0%, rgba(8,8,8,0.6) 100%);
}

/* ── ZONE C — MAIN BODY BACKGROUND ─────────────────────── */
.home-body {
  position: relative;
  min-height: calc(100vh - 390px);
}

.home-body-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.25);
}

/* ── ZONE C — TWO COLUMN LAYOUT ─────────────────────────── */
.home-columns {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 40px 40px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

/* ── ZONE D — NEWS BOX (left) ───────────────────────────── */
.left-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-box {
  background: rgba(8,8,8,0.55);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-box-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.news-box-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--red-bright);
  text-transform: uppercase;
}

.news-item {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.news-item:last-child { border-bottom: none; padding-bottom: 0; }

.news-date {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--silver-dim);
  margin-bottom: 6px;
}

.news-headline {
  font-family: var(--font-custom);
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--red-bright);
  margin-bottom: 8px;
}

.news-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--silver);
}

/* ── NEWS BOX BUTTONS ────────────────────────────────────── */
.news-box-buttons {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}

.news-btn {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 12px 28px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.25s;
  flex: 1;
  text-align: center;
}

.news-btn-discord {
  background: rgba(88,101,242,0.1);
  border-color: rgba(88,101,242,0.35);
  color: #7289da;
}
.news-btn-discord:hover {
  background: rgba(88,101,242,0.2);
  border-color: #7289da;
  box-shadow: 0 0 16px rgba(88,101,242,0.2);
}

.news-btn-join {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  box-shadow: 0 0 16px var(--red-glow);
}
.news-btn-join:hover {
  background: var(--red-bright);
  border-color: var(--red-bright);
  box-shadow: 0 0 28px var(--red-glow);
  transform: translateY(-1px);
}

/* ── ZONE E — RIGHT PANEL ────────────────────────────────── */
.right-panel {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  min-height: 500px;
  border: 1px solid var(--border);
}

.right-panel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.45);
}

.right-panel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(8,8,8,0.85) 100%);
}

.right-panel-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px;
}

.right-panel-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--red-bright);
  margin-bottom: 10px;
}

.right-panel-title {
  font-family: var(--font-custom);
  font-size: clamp(36px, 4vw, 60px);
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--red-bright);
  margin-bottom: 8px;
}

.right-panel-subtitle {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver-dim);
  margin-bottom: 16px;
}

.right-panel-divider {
  width: 40px;
  height: 2px;
  background: var(--red);
  margin-bottom: 16px;
  box-shadow: 0 0 8px var(--red-glow);
}

.right-panel-body {
  font-size: 15px;
  line-height: 1.75;
  color: var(--silver);
}

/* ── ZONE F — FIXED LOGO ─────────────────────────────────── */
.fixed-logo {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 64px;
  height: 64px;
  opacity: 0.55;
  transition: opacity 0.3s;
  pointer-events: none;
}
.fixed-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px var(--red-glow));
}

/* ── HISTORY PAGE ────────────────────────────────────────── */
#page-history { position: relative; min-height: 100vh; }

.history-bg {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.2);
  z-index: 0;
}

.history-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
  padding-top: 70px;
}

.history-sidebar {
  border-right: 1px solid var(--border);
  background: rgba(8,8,8,0.7);
  backdrop-filter: blur(16px);
  padding: 40px 0;
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
}

.sidebar-header {
  padding: 0 28px 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.sidebar-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--red-bright);
}

.chapter-nav { display: flex; flex-direction: column; }

.chapter-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--silver-dim);
  cursor: pointer;
  border: none;
  background: none;
  text-align: left;
  transition: all 0.25s;
  border-left: 2px solid transparent;
  width: 100%;
}
.chapter-btn:hover { color: var(--silver); background: rgba(255,255,255,0.03); }
.chapter-btn.active { color: var(--white); border-left-color: var(--red); background: rgba(187,10,30,0.08); }

.chapter-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--red-bright);
  opacity: 0.7;
  min-width: 22px;
}
.chapter-btn.active .chapter-num { opacity: 1; }

.history-main { padding: 60px 80px; overflow-y: auto; }

.chapter-display {
  max-width: 780px;
  animation: chapterIn 0.4s ease;
}

@keyframes chapterIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.chapter-number-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--red-bright);
  margin-bottom: 12px;
  display: block;
}

.chapter-title {
  font-family: var(--font-custom);
  font-size: clamp(48px, 7vw, 80px);
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--red-bright);
}

.chapter-subtitle {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver-dim);
  margin-bottom: 40px;
}

.chapter-divider {
  width: 60px;
  height: 2px;
  background: var(--red);
  margin-bottom: 40px;
  box-shadow: 0 0 10px var(--red-glow);
}

.chapter-body { font-size: 17px; line-height: 1.85; color: var(--silver); }
.chapter-body p { margin-bottom: 20px; }
.chapter-body p:last-child { margin-bottom: 0; }
.chapter-body strong { color: var(--white); font-weight: 700; }
.chapter-body em { color: var(--red-bright); font-style: normal; }

.chapter-nav-arrows {
  display: flex;
  gap: 14px;
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.arrow-btn {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver-dim);
  background: none;
  border: 1px solid var(--border);
  padding: 12px 22px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.25s;
}
.arrow-btn:hover { color: var(--white); border-color: var(--red); background: var(--red-soft); }
.arrow-btn:disabled { opacity: 0.25; cursor: not-allowed; pointer-events: none; }

/* ── INTEL HERO BUTTON ───────────────────────────────────── */
.hero-btn-intel {
  background: transparent;
  border-color: var(--red);
  color: var(--red-bright);
}
.hero-btn-intel:hover {
  border-color: var(--red-bright);
  color: var(--white);
  background: var(--red-soft);
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .history-main { padding: 48px 40px; }
  .home-columns { grid-template-columns: 1fr; }
  .right-panel  { min-height: 400px; }
}

@media (max-width: 768px) {
  .navbar { padding: 0 20px; }

  .nav-links {
    position: fixed;
    top: 70px; right: -100%;
    width: 260px;
    height: calc(100vh - 70px);
    background: rgba(8,8,8,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 0;
    border-left: 1px solid var(--border);
    transition: right 0.35s ease;
    gap: 0;
  }
  .nav-links.open { right: 0; }
  .nav-links li   { width: 100%; }
  .nav-link       { display: block; padding: 16px 24px; font-size: 14px; }
  .nav-btn        { margin: 4px 16px; border-radius: 3px; }
  .nav-toggle     { display: flex; }

  .history-layout { grid-template-columns: 1fr; }
  .history-sidebar {
    position: static; height: auto;
    border-right: none; border-bottom: 1px solid var(--border);
  }
  .history-main  { padding: 32px 24px; }
  .chapter-title { font-size: 42px; }

  .home-columns  { padding: 24px 20px 40px; gap: 20px; }
  .fixed-logo    { width: 44px; height: 44px; bottom: 16px; right: 16px; }
}

/* ── SIMPLE PAGES (Leadership, Activity, Dossiers, Rules) ── */
.simple-page-layout {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 120px 60px 80px;
  min-height: 100vh;
}

.simple-page-header {
  margin-bottom: 40px;
}

.simple-page-body {
  font-size: 17px;
  line-height: 1.85;
  color: var(--silver);
}

@media (max-width: 768px) {
  .simple-page-layout { padding: 100px 24px 60px; }
}

/* ── COLUMN FRAMES ───────────────────────────────────────────
   When your frame artwork is ready:
   1. Drop the PNG into assets/ (e.g. assets/frame-left.png, assets/frame-right.png)
   2. Uncomment the border-image lines below and set the slice value
      (the number = how many pixels inward the corners are cut in your PNG)

.news-box {
  /* border-image: url('assets/frame-left.png') 40 fill / 40px / 0px; */
}

.right-panel {
  /* border-image: url('assets/frame-right.png') 40 fill / 40px / 0px; */
}

   If you want the same frame on both columns, point both at the same file.
   border-image guide:
     url('...')   — your frame PNG
     40           — slice (px inward from edge where corners are defined)
     fill         — keeps the center visible (required for backgrounds)
     / 40px       — rendered border width (match your slice or scale up/down)
   ────────────────────────────────────────────────────────── */

/* ── GALLERY ─────────────────────────────────────────────── */
.gallery-main {
  padding: 40px 60px 80px;
  overflow-y: auto;
}

.gallery-display {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1100px;
}

.gallery-album-header {
  margin-bottom: 8px;
}

.gallery-image-block {
  position: relative;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  flex-direction: column;
}

.gallery-image-block img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 520px;
}

.gallery-image-placeholder {
  width: 100%;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--silver-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
}

.gallery-caption {
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--silver-dim);
  letter-spacing: 0.06em;
  border-top: 1px solid var(--border);
  background: rgba(8,8,8,0.4);
}

.gallery-image-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--red-bright);
  letter-spacing: 0.2em;
  margin-bottom: 6px;
  display: block;
}

@media (max-width: 768px) {
  .gallery-main { padding: 24px 20px 60px; }
}
