/* =====================================================
   base.css — ViperaDev Shared Foundation
   Used by: ALL pages
   ===================================================== */

/* DESIGN TOKENS */
:root {
  --bg: #050c12;
  --bg2: #070f17;
  --bg3: #0a1520;
  --accent: #17E68C;
  --accent-dim: rgba(23, 230, 140, 0.12);
  --accent-border: rgba(23, 230, 140, 0.25);
  --accent-glow: rgba(23, 230, 140, 0.06);
  --white: #ffffff;
  --gray: #8a9bb0;
  --gray-light: #b0c0d0;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.07);
}

/* LIGHT THEME VARIABLES */
[data-theme="light"] {
  --bg: #f8f9fa;
  --bg2: #eef1f4;
  --bg3: #e2e8f0;
  --accent: #0d9558;
  --accent-dim: rgba(13, 149, 88, 0.12);
  --accent-border: rgba(13, 149, 88, 0.3);
  --accent-glow: rgba(13, 149, 88, 0.1);
  --white: #111827;
  --gray: #64748b;
  --gray-light: #475569;
  --card-bg: #ffffff;
  --card-border: rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f8f9fa;
    --bg2: #eef1f4;
    --bg3: #e2e8f0;
    --accent: #0d9558;
    --accent-dim: rgba(13, 149, 88, 0.12);
    --accent-border: rgba(13, 149, 88, 0.3);
    --accent-glow: rgba(13, 149, 88, 0.1);
    --white: #111827;
    --gray: #64748b;
    --gray-light: #475569;
    --card-bg: #ffffff;
    --card-border: rgba(0, 0, 0, 0.08);
  }
}

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

/* BASE */
html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* NOISE OVERLAY */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 0;
}

/* TYPOGRAPHY */
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.accent { color: var(--accent); }
.gray   { color: var(--gray); }

/* LAYOUT */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; z-index: 1; }

/* SECTION DECORATORS */
.section-line {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 20px;
}

.section-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  margin-bottom: 12px;
  display: block;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  background: #1fffa0;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(23, 230, 140, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--card-border);
}
.btn-ghost:hover {
  border-color: var(--accent-border);
  color: var(--accent);
}

/* THEME TOGGLE */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  cursor: pointer;
  color: var(--gray-light);
  transition: all 0.2s;
  padding: 0;
}

.theme-toggle:hover {
  border-color: var(--accent-border);
  color: var(--accent);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  transition: transform 0.3s;
}

[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .icon-moon { display: none; }
  :root:not([data-theme="dark"]) .icon-sun { display: block; } /* Fallback */
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: none; }
}

/* SHARED FOOTER */
footer {
  padding: 80px 0 40px;
  background: var(--bg2);
  border-top: 1px solid var(--card-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-col h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 24px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul a {
  color: var(--gray);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: var(--accent);
}

.footer-about p {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.6;
  margin: 20px 0;
  max-width: 280px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-light);
  transition: all 0.2s;
}

.footer-socials a:hover {
  border-color: var(--accent-border);
  color: var(--accent);
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copy {
  font-size: 13px;
  color: var(--gray);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: var(--gray);
  text-decoration: none;
  font-size: 13px;
}

@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.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; }

/* ANIMATIONS */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.8); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ─── ORTAK NAV (tüm sayfalar) ───────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(5, 12, 18, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
  transition: background 0.3s;
}
nav.transparent {
  background: transparent;
  backdrop-filter: none;
  border-color: transparent;
}
nav.scrolled,
nav.transparent.scrolled {
  background: rgba(5, 12, 18, 0.92);
  backdrop-filter: blur(16px);
  border-color: var(--card-border);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; z-index: 1;
}
.nav-logo img  { height: 34px; width: auto; }
.nav-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800; font-size: 17px;
  color: #ffffff; letter-spacing: 0.04em;
}
.nav-links {
  display: flex; align-items: center;
  gap: 32px; list-style: none;
}
.nav-links a {
  color: #b0c0d0; text-decoration: none;
  font-size: 14px; font-weight: 400;
  transition: color 0.2s;
}
.nav-links a:hover { color: #ffffff; }
.nav-right {
  display: flex; align-items: center; gap: 16px;
}
/* LANG DROPDOWN */
.lang-dropdown { position: relative; }
.lang-selected {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 6px; cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px; font-weight: 600;
  color: var(--gray-light); transition: all 0.2s;
  user-select: none; white-space: nowrap;
}
.lang-selected:hover { border-color: var(--accent-border); color: var(--white); }
.lang-selected svg.lang-chevron {
  width: 12px; height: 12px;
  color: var(--gray); transition: transform 0.2s; flex-shrink: 0;
}
.lang-dropdown.open .lang-chevron { transform: rotate(180deg); }
.lang-menu {
  display: none; position: absolute; top: calc(100% + 6px); right: 0;
  background: #0a1520; border: 1px solid var(--card-border);
  border-radius: 8px; overflow: hidden; min-width: 140px;
  box-shadow: 0 16px 40px rgba(0,0,0,.5); z-index: 200;
}
.lang-dropdown.open .lang-menu { display: block; }
.lang-option {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; font-weight: 500; color: var(--gray-light);
  transition: all 0.15s; border: none; background: none;
  width: 100%; text-align: left;
}
.lang-option:hover { background: var(--accent-dim); color: var(--white); }
.lang-option.active { color: var(--accent); }
.lang-flag {
  width: 20px; height: 14px; border-radius: 2px;
  overflow: hidden; flex-shrink: 0; display: flex;
}
.lang-flag svg { width: 100%; height: 100%; }
/* HAMBURGER */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); transition: all 0.25s;
}
/* MOBILE MENU */
.mobile-menu {
  display: none; position: fixed;
  top: 68px; left: 0; right: 0;
  background: rgba(5,12,18,.98); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
  padding: 24px; z-index: 99;
  flex-direction: column; gap: 20px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--gray-light); text-decoration: none;
  font-size: 16px; font-weight: 400;
  padding: 8px 0; border-bottom: 1px solid var(--card-border);
}
/* PAGE WRAP — alt sayfalarda navbar boşluğu için */
.page-wrap {
  padding-top: 68px;
  position: relative; z-index: 1;
}
/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
/* WHATSAPP FLOAT */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px;
  background: #25d366; color: white;
  padding: 14px 20px; border-radius: 50px;
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; z-index: 999;
  box-shadow: 0 4px 20px rgba(37,211,102,.35);
  transition: all 0.3s; font-family: 'Space Grotesk', sans-serif;
  font-size: 14px; font-weight: 600;
}
.whatsapp-float:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(37,211,102,.5); }
.whatsapp-label { display: none; }
@media (min-width: 640px) { .whatsapp-label { display: inline; } }

