/* Fonts loaded via includes/head.php with preconnect */

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.22); }

/* ═══════════════════════════════════════════════
   MINIMALIST DESIGN SYSTEM
   ═══════════════════════════════════════════════ */

:root {
  --bg: #0a0a0a;
  --surface: #111;
  --border: rgba(255,255,255,0.06);
  --text-primary: #e5e5e5;
  --text-secondary: #666;
  --text-muted: #444;
  --accent: #c9a227;
  --accent-dim: rgba(201,162,39,0.15);
  --font-sans: 'Inter', -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
}

body.gold-mode {
  --accent: #FFD700;
  --accent-dim: rgba(255,215,0,0.12);
  --border: rgba(255,215,0,0.08);
}

body.mises-mode {
  --accent: #e74c3c;
  --accent-dim: rgba(231,76,60,0.12);
  --border: rgba(231,76,60,0.08);
}

body.hoppe-mode {
  --accent: #3498db;
  --accent-dim: rgba(52,152,219,0.12);
  --border: rgba(52,152,219,0.08);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;
  overflow-x: hidden;
}

::selection {
  background: var(--accent-dim);
  color: var(--accent);
}

/* Noise Overlay */
.noise {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.018;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Scroll Progress */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 38;
  width: 0%;
  transition: width 0.05s linear;
}

/* ── Scroll Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Page Load Fade ── */
body {
  opacity: 0;
  animation: pageLoad 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
}
@keyframes pageLoad {
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  body {
    opacity: 1;
    animation: none;
  }
  .reveal,
  .scroll-reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── Links ── */
a { color: inherit; text-decoration: none; }

/* ── Nav Link Underline Hover ── */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover::after {
  width: 100%;
}
.nav-active {
  color: var(--accent) !important;
}
.nav-active::after {
  width: 100% !important;
  opacity: 1;
  background: var(--accent) !important;
}

/* ── Timeline Dot Pulse ── */
.timeline-dot {
  position: relative;
}
.timeline-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  transform: scale(0.8);
}
.timeline-item:hover .timeline-dot::after {
  opacity: 0.5;
  transform: scale(1.4);
}

/* ── Touch Feedback ── */
button, a { -webkit-tap-highlight-color: transparent; }
button:active, .nav-link:active { transform: scale(0.97); transition: transform 0.1s ease; }

/* ── Hide Scrollbar ── */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* ── Hide elements on mobile to save navbar space ── */
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
  .noise { display: none !important; }
  #scrollProgress { display: none !important; }
  .grid-backdrop { display: none !important; }
}

/* ── Hero Mouse Glow ── */
.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  z-index: 0;
}

/* ── Article Page Styles ── */
.article-body {
  opacity: 1 !important;
  transform: none !important;
}
.article-body p {
  margin-bottom: 2rem;
  color: #b0b0b0;
}
.article-body h2 {
  font-family: var(--font-serif);
  color: #fff;
  font-size: 1.75rem;
  padding-top: 3rem;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.article-body blockquote {
  border-left: 2px solid var(--accent);
  padding: 1.5rem 2rem;
  margin: 3rem 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.375rem;
  color: #888;
  background: var(--accent-dim);
}

/* ═══════════════════════════════════════════════
   PREMIUM MODERN ARCHITECTURE DEVELOPMENTS
   ═══════════════════════════════════════════════ */

/* Grid Backdrop Mesh */
.grid-backdrop {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
  mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* Modern Floating Navbar */
nav {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 3D Holo-tilt Interactive Cards */
.holo-card {
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
}

.holo-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.06) 48%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.06) 52%, transparent 65%);
  background-size: 250% 250%;
  background-position: 100% 100%;
  transition: opacity 0.4s ease;
  pointer-events: none;
  mix-blend-mode: color-dodge;
  opacity: 0;
  z-index: 5;
}

.holo-card:hover::after {
  opacity: 1;
}

/* Modern Pill Badges */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.6);
}

/* Typing Cursor Pulse */
.typing-cursor {
  display: inline-block;
  width: 6px;
  height: 12px;
  background: var(--accent);
  margin-left: 2px;
  animation: cursorPulse 1s infinite alternate;
}

@keyframes cursorPulse {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Sleek Scrollbar for Console Options Grid */
.scrollbar-thin::-webkit-scrollbar {
  width: 5px;
}
.scrollbar-thin::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 99px;
}
.scrollbar-thin::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
}
.scrollbar-thin::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ═══════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════ */

.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9990;
  background: rgba(10, 10, 10, 0.72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.nav-header.nav-scrolled {
  background: rgba(10, 10, 10, 0.92);
  border-bottom-color: var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.nav-bar {
  min-height: 4rem;
}

@media (min-width: 1024px) {
  .nav-bar { min-height: 4.25rem; }
}

/* Logo */
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  transition: opacity 0.2s ease;
}

.nav-logo:hover { opacity: 0.88; }

.nav-logo-mark {
  width: 2px;
  height: 1.75rem;
  background: linear-gradient(180deg, var(--accent), transparent);
  border-radius: 1px;
  transition: height 0.25s ease;
}

.nav-logo:hover .nav-logo-mark { height: 2rem; }

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

.nav-logo-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
}

.nav-logo-accent {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Desktop pill nav */
.nav-pill {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.nav-pill-link {
  position: relative;
  padding: 0.45rem 0.85rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-pill-link:hover {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.04);
}

.nav-pill-link-active {
  color: var(--accent) !important;
  background: var(--accent-dim);
}

/* Action buttons */
.nav-icon-btn,
.nav-lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.55rem;
  color: rgba(255, 255, 255, 0.45);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-lang-btn {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.nav-icon-btn:hover,
.nav-lang-btn:hover {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

/* Destek Ol */
.nav-donate-btn {
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  border-radius: 999px;
  background: var(--accent-dim);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-donate-btn:hover {
  color: #0a0a0a;
  background: var(--accent);
  border-color: var(--accent);
}

.nav-donate-btn-active {
  color: #0a0a0a;
  background: var(--accent);
  border-color: var(--accent);
}

/* Mesajlar / Bildirimler grubu */
.nav-quick-group {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.nav-quick-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.75rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-quick-link:last-child {
  border-right: none;
}

.nav-quick-link svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.nav-quick-link:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.04);
}

.nav-quick-link-active {
  color: var(--accent) !important;
  background: var(--accent-dim);
}

.nav-quick-link-active svg {
  opacity: 1;
}

.nav-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.28rem;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 700;
  line-height: 1;
  color: #0a0a0a;
  background: var(--accent);
  border-radius: 999px;
  flex-shrink: 0;
}

.nav-badge-inline {
  margin-left: auto;
  flex-shrink: 0;
}

.mobile-nav-link-with-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.nav-user-avatar-sm {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.58rem;
}

.nav-lang-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 10.5rem;
  padding: 0.35rem;
  background: rgba(14, 14, 14, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  z-index: 10000;
}

.nav-lang-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.5rem;
  transition: background 0.15s ease;
}

.nav-lang-option:hover { background: rgba(255, 255, 255, 0.04); }

.nav-lang-code {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.35);
  min-width: 1.5rem;
}

.nav-lang-name {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
}

.nav-lang-option-active .nav-lang-code,
.nav-lang-option-active .nav-lang-name {
  color: var(--accent);
}

.nav-cta {
  align-items: center;
  padding: 0.45rem 1rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 999px;
  background: var(--accent-dim);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav-cta:hover {
  color: #0a0a0a;
  background: var(--accent);
  border-color: var(--accent);
}

.nav-user-btn {
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0.65rem 0.2rem 0.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-user-btn:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.nav-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: #0a0a0a;
  background: var(--accent);
  border-radius: 50%;
}

.nav-user-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.nav-user-btn:hover .nav-user-label { color: rgba(255, 255, 255, 0.85); }

body.nav-mobile-open { overflow: hidden; }

/* Mobile menu — display:none when closed so overlay never blocks content */
.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mobile-nav-backdrop.is-open {
  display: block;
  opacity: 1;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 4rem;
  left: 0;
  right: 0;
  z-index: 91;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  background: rgba(10, 10, 10, 0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.28s ease;
}

.mobile-nav.is-open {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

/* Page sections sit above decorative layers, below open mobile menu */
body > section,
body > main,
body > article,
body > .page-content {
  position: relative;
  z-index: 1;
}

.mobile-nav-link {
  display: block;
  padding: 0.7rem 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.mobile-nav-link:hover {
  color: rgba(255, 255, 255, 0.92);
  padding-left: 0.35rem;
}

.mobile-nav-link-active {
  color: var(--accent) !important;
}

.mobile-nav-divider {
  margin: 1rem 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.mobile-lang-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  padding: 0.4rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.mobile-lang-chip:hover,
.mobile-lang-chip-active {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  background: var(--accent-dim);
}

.mobile-nav-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.65rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.mobile-nav-action:hover { background: rgba(255, 255, 255, 0.06); }

.mobile-nav-action-primary {
  color: #0a0a0a;
  background: var(--accent);
  border-color: var(--accent);
}

.mobile-nav-action-primary:hover {
  filter: brightness(1.08);
}

/* Legacy aliases */
.nav-link-simple {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s ease;
}
.nav-link-simple:hover { color: rgba(255, 255, 255, 0.88); }
.nav-link-simple-active { color: var(--accent) !important; }
