/* ===========================
   VARIABLES & RESET
=========================== */
:root {
  --bg: #0d0f14;
  --bg2: #13161e;
  --bg3: #1a1e28;
  --border: #222736;
  --accent: #e8c84a;
  --accent2: #f0a030;
  --text: #e8eaf0;
  --text2: #8b90a8;
  --text3: #565c7a;
  --danger: #e85050;
  --sidebar-w: 260px;
  --header-h: 60px;
  --radius: 10px;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
}

/* ===========================
   HEADER
=========================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(13,15,20,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 20px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  cursor: pointer;
}

.logo-mark {
  width: 34px; height: 34px;
  background: var(--accent);
  color: #000;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 13px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

.logo-sub {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: flex-end;
}

/* SEARCH */
.search-wrap {
  position: relative;
  max-width: 360px;
  width: 100%;
}

.search-wrap input {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 36px 8px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.search-wrap input:focus {
  border-color: var(--accent);
}

.search-wrap input::placeholder { color: var(--text3); }

.search-icon {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--text3);
  font-size: 18px;
  pointer-events: none;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-height: 320px;
  overflow-y: auto;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.search-dropdown.hidden { display: none; }

.search-result-item {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg3); }

.sri-code {
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 2px;
  font-family: var(--font-head);
}

.sri-title {
  font-size: 13px;
  color: var(--text);
}

.sri-section {
  font-size: 11px;
  color: var(--text3);
  margin-top: 2px;
}

.menu-toggle {
  display: none;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
}

/* ===========================
   LAYOUT
=========================== */
.layout {
  display: flex;
  margin-top: var(--header-h);
  min-height: calc(100vh - var(--header-h));
}

/* ===========================
   SIDEBAR
=========================== */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.nav {
  padding: 16px 0;
  flex: 1;
}

.nav-divider {
  padding: 12px 16px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text3);
  font-family: var(--font-head);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 16px;
  background: none;
  border: none;
  color: var(--text2);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  border-left: 2px solid transparent;
  transition: all 0.15s;
}

.nav-item:hover:not(:disabled) {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}

.nav-item.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: rgba(232,200,74,0.06);
}

.nav-icon { font-size: 15px; flex-shrink: 0; }

.nav-item.coming-soon {
  opacity: 0.45;
  cursor: not-allowed;
}

.badge {
  margin-left: auto;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text3);
  padding: 2px 6px;
  border-radius: 4px;
}

.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text3);
}

/* ===========================
   MAIN
=========================== */
.main {
  flex: 1;
  min-width: 0;
  padding: 40px 48px;
  max-width: 900px;
}

.page { display: none; }
.page.active { display: block; }

/* ===========================
   HERO
=========================== */
.hero {
  margin-bottom: 56px;
}

.hero-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 800;
  line-height: 1;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-desc {
  font-size: 16px;
  color: var(--text2);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.disclaimer-box {
  display: flex;
  gap: 12px;
  background: rgba(232,80,80,0.08);
  border: 1px solid rgba(232,80,80,0.2);
  border-radius: var(--radius);
  padding: 14px 16px;
  max-width: 640px;
}

.disclaimer-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

.disclaimer-box p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
}

/* GAME SECTION */
.game-section {
  margin-bottom: 48px;
}

.section-heading {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.game-desc {
  color: var(--text2);
  max-width: 680px;
  line-height: 1.75;
  margin-bottom: 24px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(232,200,74,0.3);
  transform: translateY(-2px);
}

.feature-icon { font-size: 24px; margin-bottom: 10px; }

.feature-card h3 {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.55;
}

/* OVERVIEW */
.sections-overview { margin-bottom: 40px; }

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.overview-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.overview-card:hover {
  border-color: rgba(232,200,74,0.35);
  background: var(--bg3);
}

.ov-icon { font-size: 22px; flex-shrink: 0; }

.ov-info h4 {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.ov-info p {
  font-size: 12px;
  color: var(--text3);
}

/* ===========================
   SECTION PAGE
=========================== */
.section-page-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.section-page-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.section-page-title {
  font-family: var(--font-head);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.section-page-desc {
  color: var(--text2);
  font-size: 15px;
  max-width: 580px;
  line-height: 1.65;
}

.articles-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ARTICLE CARD */
.article-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.article-card:hover {
  border-color: rgba(232,200,74,0.2);
}

.article-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  user-select: none;
}

.article-code {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  background: rgba(232,200,74,0.1);
  border: 1px solid rgba(232,200,74,0.2);
  padding: 3px 8px;
  border-radius: 5px;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.article-title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}

.article-chevron {
  color: var(--text3);
  font-size: 12px;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.article-card.open .article-chevron {
  transform: rotate(90deg);
}

.article-body {
  display: none;
  padding: 0 18px 18px;
  border-top: 1px solid var(--border);
}

.article-card.open .article-body {
  display: block;
}

.article-content {
  color: var(--text2);
  font-size: 14px;
  line-height: 1.7;
  padding-top: 14px;
  white-space: pre-line;
}

.sanction-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  background: rgba(232,80,80,0.1);
  border: 1px solid rgba(232,80,80,0.25);
  color: #f08080;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
}

.sanction-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--danger);
}

/* ===========================
   FOOTER
=========================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 16px 48px;
  text-align: center;
  font-size: 12px;
  color: var(--text3);
  background: var(--bg2);
}

/* ===========================
   SCROLLBAR
=========================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text3); }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: -100%;
    top: var(--header-h);
    height: calc(100vh - var(--header-h));
    z-index: 90;
    width: 260px;
    transition: left 0.25s ease;
  }

  .sidebar.open { left: 0; }

  .menu-toggle { display: flex; }

  .main {
    padding: 24px 20px;
  }

  .footer { padding: 14px 20px; }

  .search-wrap { max-width: 200px; }
}

@media (max-width: 480px) {
  .features-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .search-wrap { max-width: 150px; }
}

/* ===========================
   ORG SUBSECTIONS
=========================== */
.org-subtitle {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text3);
  margin: 28px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.footer-copy {
  margin-top: 4px;
  font-size: 11px;
  color: var(--accent);
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 1px;
}

.org-accent-bar {
  height: 3px;
  border-radius: 2px;
  margin-bottom: 24px;
  background: linear-gradient(90deg, var(--org-color, var(--accent)), transparent);
}

/* ===========================
   ANIMATIONS
=========================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.page.active {
  animation: fadeUp 0.3s ease both;
}
