@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* ============================
   CSS CUSTOM PROPERTIES
============================ */
:root {
  --bg-deep: #04050f;
  --bg-card: rgba(8, 12, 28, 0.85);
  --bg-glass: rgba(12, 18, 42, 0.7);
  --gold: #3b82f6; /* Electric Blue instead of Gold */
  --gold-light: #60a5fa; /* Light Blue */
  --blue-glow: #3b82f6;
  --blue-deep: #1e3a6e;
  --purple: #7c3aed;
  --purple-light: #a855f7;
  --text-primary: #e8ecf4;
  --text-muted: #8b95b0;
  --text-dim: #5a6478;
  --border: rgba(100, 130, 200, 0.15);
  --border-glow: rgba(59, 130, 246, 0.35);
  --radius-card: 1.25rem;
  --radius-lg: 2rem;
  --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Cinzel', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

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

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold), var(--purple));
  border-radius: 3px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Background texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(124, 58, 237, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(201, 168, 76, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

/* ============================
   TYPOGRAPHY
============================ */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

p { color: var(--text-muted); }

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

/* ============================
   LAYOUT
============================ */
.container {
  width: 92%;
  max-width: 1140px;
  margin: 0 auto;
}

section {
  padding: 5rem 0;
}

/* ============================
   NAVIGATION
============================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4, 5, 15, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  text-shadow: 0 0 20px rgba(201, 168, 76, 0.4);
  transition: var(--transition);
}

.brand:hover {
  color: var(--gold-light);
  text-shadow: 0 0 30px rgba(240, 208, 128, 0.5);
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-admin-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  color: var(--gold) !important;
  font-size: 0.8rem;
  transition: var(--transition);
}

.nav-admin-link:hover {
  background: rgba(201, 168, 76, 0.2) !important;
  border-color: var(--gold) !important;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 1.25rem;
  padding: 0.4rem 0.7rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.menu-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ============================
   HERO
============================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('background.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.25) saturate(0.6);
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero:hover .hero-bg {
  transform: scale(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(4, 5, 15, 0.3) 0%,
    rgba(4, 5, 15, 0.1) 40%,
    rgba(4, 5, 15, 0.8) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
  animation: heroFadeIn 1.2s ease forwards;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-rune {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.35);
  margin-bottom: 2rem;
  animation: runeGlow 3s ease-in-out infinite alternate;
  box-shadow: 0 0 40px rgba(201, 168, 76, 0.15), inset 0 0 20px rgba(201, 168, 76, 0.05);
}

@keyframes runeGlow {
  0%   { box-shadow: 0 0 20px rgba(201, 168, 76, 0.1), inset 0 0 10px rgba(201, 168, 76, 0.03); }
  100% { box-shadow: 0 0 60px rgba(201, 168, 76, 0.3), inset 0 0 30px rgba(201, 168, 76, 0.1); }
}

.hero-rune img {
  width: 48px;
  height: 48px;
  filter: invert(1) sepia(1) saturate(2) hue-rotate(5deg);
  opacity: 0.85;
}

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--gold);
  margin-bottom: 1.2rem;
  opacity: 0.9;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, var(--gold-light) 40%, var(--gold) 70%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 0 30px rgba(201, 168, 76, 0.25));
}

.hero-desc {
  font-size: 1.15rem;
  color: rgba(200, 215, 240, 0.8);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #102a43; /* Full dark blue */
  color: #e8ecf4;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.5);
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 8px 30px rgba(16, 42, 67, 0.5);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(59, 130, 246, 0.4);
  background: #0b2136;
  color: #ffffff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  backdrop-filter: blur(10px);
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  color: var(--text-primary);
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-hint span { font-size: 1.2rem; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ============================
   SECTION TITLES
============================ */
.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title .eyebrow {
  margin-bottom: 0.75rem;
}

.section-title h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-primary);
}

.section-title h2 span {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--purple));
  margin: 1.25rem auto 0;
  border-radius: 2px;
}

/* ============================
   ABOUT SECTION
============================ */
#about {
  background: linear-gradient(180deg, transparent, rgba(12, 8, 30, 0.5) 50%, transparent);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.04), transparent);
  pointer-events: none;
}

.stat-card:hover {
  border-color: rgba(201, 168, 76, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
  display: block;
}

/* ============================
   ARTICLES SECTION
============================ */
#articles {
  padding-top: 5rem;
  padding-bottom: 6rem;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.article-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.03) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.article-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), var(--shadow-glow);
}

.article-card:hover::before {
  opacity: 1;
}

.article-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  filter: brightness(0.75) saturate(0.7);
  transition: var(--transition);
}

.article-card:hover .article-card-img {
  filter: brightness(0.9) saturate(0.9);
}

.article-card-img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, rgba(30, 25, 60, 0.9), rgba(15, 10, 35, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(201, 168, 76, 0.2);
  border-bottom: 1px solid var(--border);
}

.article-card-body {
  padding: 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tag {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.2);
  margin-bottom: 1rem;
  font-family: var(--font-body);
}

.article-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.article-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.article-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.article-card-date {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.article-read-btn {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s ease;
}

.article-card:hover .article-read-btn {
  gap: 0.6rem;
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, rgba(30,30,60,0.5) 25%, rgba(50,50,80,0.4) 50%, rgba(30,30,60,0.5) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 0.5rem;
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ============================
   ARTICLE MODAL
============================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: linear-gradient(135deg, rgba(10, 12, 30, 0.98), rgba(6, 8, 20, 0.98));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  max-width: 760px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.5rem;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 0 0 60px rgba(201, 168, 76, 0.1);
  transform: translateY(30px);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-close {
  float: right;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  margin-bottom: 1rem;
}

.modal-close:hover {
  background: rgba(255, 80, 80, 0.15);
  border-color: rgba(255, 80, 80, 0.4);
  color: #ff6060;
}

.modal-tag { margin-bottom: 1rem; }

.modal-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  clear: both;
}

.modal-date {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  display: block;
}

.modal-img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 1rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}

.modal-content-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.9;
  white-space: pre-wrap;
}

/* ============================
   CONTACT SECTION
============================ */
#contact {
  padding-top: 5rem;
  padding-bottom: 6rem;
  background: linear-gradient(180deg, transparent, rgba(12, 8, 30, 0.4));
}

.contact-wrapper {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.contact-wrapper > p {
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: blur(12px);
  text-align: left;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: rgba(201, 168, 76, 0.45);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.form-control::placeholder { color: var(--text-dim); }

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.contact-submit {
  width: 100%;
  margin-top: 0.5rem;
}

.message-result {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  display: none;
}

.message-result.success {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #6ee7b7;
  display: block;
}

/* ============================
   FOOTER
============================ */
footer {
  background: rgba(2, 3, 10, 0.95);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.footer-links-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ============================
   PARTICLES
============================ */
#particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0%   { opacity: 0; transform: translateY(0) scale(1); }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.2; }
  100% { opacity: 0; transform: translateY(-80vh) scale(0); }
}

/* ============================
   MOBILE MENU DRAWER
============================ */
.nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(300px, 80vw);
  height: 100vh;
  background: linear-gradient(180deg, rgba(6, 8, 22, 0.98), rgba(4, 5, 15, 0.98));
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--border);
  z-index: 200;
  padding: 2rem;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.nav-drawer.open {
  right: 0;
}

.drawer-close {
  align-self: flex-end;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.drawer-close:hover {
  border-color: rgba(255,80,80,0.5);
  color: #ff6060;
}

.drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.drawer-links li {
  border-bottom: 1px solid var(--border);
}

.drawer-links a {
  display: block;
  padding: 1rem 0;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s;
}

.drawer-links a:hover { color: var(--gold); }

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ============================
   ADMIN PAGE
============================ */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.admin-login-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  width: min(420px, 100%);
  text-align: center;
  box-shadow: var(--shadow-card), 0 0 60px rgba(201, 168, 76, 0.08);
  backdrop-filter: blur(15px);
}

.admin-login-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
}

.admin-login-box h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: var(--gold);
}

.admin-login-box p {
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.admin-error {
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid rgba(255, 80, 80, 0.3);
  color: #ff9090;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: none;
}

.admin-panel {
  min-height: 100vh;
  display: none;
}

.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  background: rgba(4, 5, 15, 0.98);
  border-right: 1px solid var(--border);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
  z-index: 50;
}

.admin-logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.admin-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: var(--transition);
}

.admin-nav-btn:hover,
.admin-nav-btn.active {
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold);
}

.admin-nav-btn .icon { font-size: 1.1rem; }

.admin-logout-btn {
  margin-top: auto;
  color: var(--text-dim) !important;
}

.admin-logout-btn:hover {
  background: rgba(255, 80, 80, 0.1) !important;
  color: #ff9090 !important;
}

.admin-main {
  margin-left: 260px;
  padding: 2.5rem;
  min-height: 100vh;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.admin-header h1 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--text-primary);
}

.admin-tab {
  display: none;
}

.admin-tab.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 2rem;
  backdrop-filter: blur(12px);
  margin-bottom: 1.5rem;
}

.admin-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.admin-form-grid .full-width {
  grid-column: 1 / -1;
}

.admin-form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.75rem 1.75rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  border-radius: 0.6rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
}

.btn-edit {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #93c5fd;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  border-radius: 0.6rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-edit:hover {
  background: rgba(59, 130, 246, 0.25);
}

.btn-reset {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-reset:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

/* Upload Zone */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: 0.75rem;
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.02);
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.05);
}

.upload-zone-icon { font-size: 2rem; margin-bottom: 0.5rem; display: block; }
.upload-zone-text { font-size: 0.875rem; color: var(--text-dim); }
.upload-preview { margin-top: 1rem; }
.upload-preview img {
  max-width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
}

/* Articles admin table */
.admin-articles-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-article-row {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}

.admin-article-row:hover {
  border-color: rgba(201, 168, 76, 0.2);
  background: rgba(201, 168, 76, 0.03);
}

.admin-article-row-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  flex-shrink: 0;
  background: rgba(30,25,60,0.8);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(201, 168, 76, 0.3);
}

.admin-article-info { flex: 1; min-width: 0; }

.admin-article-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-article-meta {
  font-size: 0.78rem;
  color: var(--text-dim);
  display: flex;
  gap: 0.75rem;
}

.admin-article-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Stats overview */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.admin-stat-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.admin-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.admin-stat-icon.gold { background: rgba(201, 168, 76, 0.1); }
.admin-stat-icon.blue { background: rgba(59, 130, 246, 0.1); }
.admin-stat-icon.purple { background: rgba(124, 58, 237, 0.1); }
.admin-stat-icon.green { background: rgba(16, 185, 129, 0.1); }

.admin-stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
}

.admin-stat-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(10, 12, 30, 0.98);
  border: 1px solid;
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 320px;
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-color: rgba(52, 211, 153, 0.4); color: #6ee7b7; }
.toast.error   { border-color: rgba(239, 68, 68, 0.4);  color: #f87171; }
.toast.info    { border-color: rgba(201, 168, 76, 0.4);  color: var(--gold); }

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .admin-sidebar { transform: translateX(-100%); transition: transform 0.35s ease; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; padding: 1.5rem; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .hero h1 { font-size: 2.4rem; }
  .hero-rune { width: 72px; height: 72px; }
  .hero-rune img { width: 36px; height: 36px; }
  .article-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .modal-box { padding: 1.75rem 1.25rem; max-height: 90vh; }
  .admin-main { padding: 1rem; }
  .admin-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .admin-form-actions { flex-direction: column; }
  .admin-article-row { flex-wrap: wrap; }
  section { padding: 3.5rem 0; }
}
