/* =============================================
   HIKARIMA GOVERNMENT — GLOBAL STYLESHEET
   Sovereign State of Hikarima (Fictional/Roleplay)
   ============================================= */

:root {
  --primary: #1a3a5c;        /* Deep navy — authority */
  --primary-dark: #0f2540;
  --primary-light: #2d5a8e;
  --accent: #c8a84b;         /* Gold — prestige */
  --accent-light: #e8c96d;
  --accent-dark: #9e7a28;
  --red: #a02020;            /* Crimson — strength */
  --white: #ffffff;
  --off-white: #f8f6f0;
  --light-gray: #eef0f3;
  --mid-gray: #c0c7d0;
  --text: #1a1a2e;
  --text-light: #4a4a5e;
  --text-muted: #7a7a8e;
  --border: #d8dce5;
  --shadow: 0 2px 12px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.18);
  --radius: 6px;
  --radius-lg: 12px;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans: 'Segoe UI', 'Arial', sans-serif;
  --nav-h: 52px;
  --transition: 0.22s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}

/* ── DISCLAIMER BANNER ── */
.disclaimer-banner {
  background: #7b1d1d;
  color: #ffe4e4;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 16px;
  letter-spacing: 0.02em;
  position: sticky;
  top: 0;
  z-index: 9999;
}

/* ── TOP BAR ── */
.top-bar {
  background: var(--primary-dark);
  color: var(--mid-gray);
  font-size: 0.78rem;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.top-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar-links a {
  color: var(--mid-gray);
  text-decoration: none;
  margin: 0 5px;
  font-size: 0.75rem;
  transition: color var(--transition);
}
.top-bar-links a:hover { color: var(--accent-light); }

/* ── SITE HEADER ── */
.site-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  border-bottom: 3px solid var(--accent);
  padding: 16px 0;
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 16px;
}
.coat-of-arms {
  width: 70px;
  height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}
.header-titles {
  display: flex;
  flex-direction: column;
}
.header-nation {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.08em;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}
.header-subtitle {
  font-size: 0.8rem;
  color: var(--accent-light);
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.flag-img {
  width: 100px;
  height: auto;
  border: 2px solid var(--accent);
  box-shadow: var(--shadow);
}

/* ── MAIN NAVIGATION ── */
.main-nav {
  background: var(--primary);
  border-bottom: 2px solid var(--accent-dark);
  position: sticky;
  top: 33px; /* below disclaimer */
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
}
.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  width: 100%;
}
.nav-list > li > a {
  display: block;
  color: #d0d8e8;
  text-decoration: none;
  font-size: 0.87rem;
  font-weight: 600;
  padding: 15px 14px;
  letter-spacing: 0.03em;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-list > li > a:hover,
.nav-list > li > a.active {
  color: var(--accent-light);
  background: rgba(200,168,75,0.12);
}
.nav-list > li > a.active {
  border-bottom: 2px solid var(--accent);
}

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--primary-dark);
  border: 1px solid var(--accent-dark);
  border-top: 2px solid var(--accent);
  list-style: none;
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  z-index: 200;
}
.dropdown li a {
  display: block;
  color: #c0cce0;
  text-decoration: none;
  font-size: 0.84rem;
  padding: 10px 16px;
  transition: background var(--transition), color var(--transition);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.dropdown li a:hover {
  background: rgba(200,168,75,0.15);
  color: var(--accent-light);
}
.has-dropdown:hover .dropdown { display: block; }

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 10px;
  margin-right: 8px;
}

/* ── PAGE BANNER (Interior Pages) ── */
.page-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 48px 0 36px;
  border-bottom: 3px solid var(--accent);
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 40%;
  background: linear-gradient(135deg, transparent, rgba(200,168,75,0.08));
}
.page-banner-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.page-banner h1 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 1px 2px 8px rgba(0,0,0,0.4);
}
.page-banner .breadcrumb {
  font-size: 0.82rem;
  color: var(--accent-light);
  margin-top: 8px;
}
.page-banner .breadcrumb a {
  color: var(--accent-light);
  text-decoration: none;
}
.page-banner .breadcrumb a:hover { text-decoration: underline; }
.page-banner .page-banner-desc {
  font-size: 0.96rem;
  color: #b0bcd0;
  margin-top: 10px;
  max-width: 600px;
}
.page-banner-accent {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--accent);
  border: 1px solid var(--accent-dark);
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

/* ── PRESIDENTIAL BAND ── */
.presidential-band {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  border-bottom: 2px solid var(--accent-dark);
  padding: 10px 0;
}
.band-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.band-seal {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.band-text {
  font-size: 0.82rem;
  color: #b8c8dc;
  line-height: 1.4;
}
.band-text strong { color: var(--accent-light); }

/* ── LAYOUT UTILITIES ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 64px 0; }
.section.alt-bg { background: var(--off-white); }
.section-title {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 10px;
  position: relative;
  padding-bottom: 16px;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 12px auto 0;
  border-radius: 2px;
}
.section-title.left { text-align: left; }
.section-title.left::after { margin-left: 0; }
.section-desc {
  text-align: center;
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 36px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.center-link { text-align: center; margin-top: 32px; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background var(--transition), transform 0.15s;
  border: 2px solid var(--accent-dark);
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  letter-spacing: 0.03em;
  border: 2px solid rgba(255,255,255,0.6);
  transition: background var(--transition), border-color var(--transition);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

/* ── INFO TABLE ── */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 20px 0;
}
.info-table th {
  background: var(--primary);
  color: var(--white);
  padding: 10px 16px;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.info-table td {
  padding: 9px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.info-table tr:nth-child(even) td { background: var(--light-gray); }
.info-table tr:hover td { background: #e8edf5; }

/* ── TABS ── */
.tab-nav {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 28px;
  gap: 4px;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 10px 22px;
  border: none;
  background: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color var(--transition), border-color var(--transition);
}
.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--accent);
}
.tab-btn:hover { color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── RANK TABLE ── */
.rank-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 16px 0;
}
.rank-table th {
  background: var(--primary-dark);
  color: var(--accent-light);
  padding: 9px 14px;
  text-align: left;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.rank-table td {
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
}
.rank-table tr:nth-child(even) td { background: var(--light-gray); }

/* ── PLACEHOLDER IMAGES ── */
.img-placeholder-box {
  background: linear-gradient(135deg, var(--light-gray), #d8dde8);
  border: 2px dashed var(--mid-gray);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  flex-direction: column;
  gap: 10px;
}
.img-placeholder-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* Makes it fill nicely */
  border-radius: var(--radius);
}
.img-placeholder-box span { font-size: 3rem; }
.img-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

/* ── NOTICE / CALLOUT BOXES ── */
.notice-box {
  border-left: 4px solid var(--accent);
  background: #fdf7e8;
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9rem;
  margin: 20px 0;
  color: var(--text);
}
.notice-box.classified {
  border-color: var(--red);
  background: #fdf0f0;
}
.notice-box strong { display: block; margin-bottom: 4px; }

/* ── FOOTER ── */
.site-footer {
  background: var(--primary-dark);
  color: #90a0b8;
  margin-top: 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 36px;
}
.footer-emblem { width: 56px; height: 56px; object-fit: contain; margin-bottom: 12px; }
.footer-nation {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.footer-title-txt { font-size: 0.8rem; color: var(--accent-light); margin-bottom: 8px; }
.footer-motto { font-size: 0.82rem; font-style: italic; color: #7090a8; }
.footer-col h4 {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--accent-light);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(200,168,75,0.25);
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul li a {
  color: #90a0b8;
  text-decoration: none;
  font-size: 0.87rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--accent-light); }
.footer-col ul li:not(:has(a)) { font-size: 0.84rem; color: #7080a0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 24px;
  max-width: 1280px;
  margin: 0 auto;
}
.footer-disclaimer {
  background: rgba(120,20,20,0.3);
  border: 1px solid rgba(200,80,80,0.3);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.8rem;
  color: #f0b0b0;
  margin-bottom: 14px;
  line-height: 1.5;
}
.footer-copy {
  font-size: 0.78rem;
  color: #506070;
  text-align: center;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--primary-dark);
    padding: 8px 0;
  }
  .nav-list.open { display: flex; }
  .nav-list > li > a { padding: 12px 20px; }
  .dropdown { position: static; display: none !important; }
  .has-dropdown.open .dropdown { display: block !important; }
  .header-nation { font-size: 1rem; }
  .section-title { font-size: 1.5rem; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .page-banner h1 { font-size: 1.6rem; }
  .tab-nav { gap: 2px; }
  .tab-btn { padding: 8px 14px; font-size: 0.82rem; }
}