/* ═══════════════════════════════════════════════════════════════════════
   Konsol.com — Global Stylesheet
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── Reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #0F0E17;
  color: #FFFFFE;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* ─── Scrollbar ─────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #0F0E17; }
::-webkit-scrollbar-thumb { background: #2D2B55; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(135deg,#7C3AED,#A78BFA); }

/* ─── Base Elements ─────────────────────────────────────────────────── */
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ─── Nav ───────────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(15,14,23,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #2D2B55;
  height: 64px;
  display: flex; align-items: center;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  width: 100%;
  display: flex; justify-content: space-between; align-items: center;
}
.logo {
  font-size: 17px; font-weight: 700; letter-spacing: -0.02em;
  color: #FFFFFE;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 14px; font-weight: 500; color: #9CA3AF; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: #FFFFFE; }
.btn-primary {
  font-size: 14px; font-weight: 700;
  color: #fff; background: linear-gradient(135deg,#7C3AED,#A78BFA);
  padding: 8px 18px; border-radius: 6px;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.85; }

/* ─── Hamburger Menu ────────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px; z-index: 101;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: #FFFFFE; border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── Utility ───────────────────────────────────────────────────────── */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: 'IBM Plex Mono', monospace; }

/* ─── Form Common ───────────────────────────────────────────────────── */
input, select, textarea {
  font-family: 'Plus Jakarta Sans', sans-serif;
  -webkit-appearance: none;
}
input::placeholder, textarea::placeholder { color: #6B7280; }
input:focus, select:focus, textarea:focus {
  border-color: rgba(167,139,250,0.4) !important;
  outline: none;
}

/* ─── Footer ────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid #2D2B55;
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.footer-tagline { font-size: 14px; color: #9CA3AF; margin-bottom: 16px; }
.footer-email { font-size: 13px; color: #A78BFA; }
.footer-col-title {
  font-size: 11px; font-weight: 600; color: #FFFFFE;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px;
}
.footer-col h4 {
  font-size: 11px; font-weight: 600; color: #9CA3AF;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px;
}
.footer-col a { display: block; font-size: 14px; color: #9CA3AF; margin-bottom: 8px; transition: color 0.2s; }
.footer-col a:hover { color: #FFFFFE; }
.footer-bottom {
  border-top: 1px solid #2D2B55; padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
}
.footer-copy { font-size: 12px; color: #9CA3AF; }
.footer-bottom p { font-size: 13px; color: #9CA3AF; }
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { font-size: 11px; color: #9CA3AF; }
.footer-legal a:hover { color: #FFFFFE; }

/* ─── Link Accent ───────────────────────────────────────────────────── */
.link-accent {
  font-size: 14px; font-weight: 600; color: #A78BFA;
  text-decoration: none; display: inline-flex; align-items: center; gap: 4px;
}

/* ─── Legal Pages ───────────────────────────────────────────────────── */
.legal-body h2 { font-size: 20px; font-weight: 700; margin: 40px 0 12px; color: #FFFFFE; }
.legal-body h3 { font-size: 16px; font-weight: 600; margin: 28px 0 10px; color: #A78BFA; }
.legal-body p { font-size: 15px; color: #9CA3AF; line-height: 1.75; margin-bottom: 16px; }
.legal-body ul { margin: 0 0 16px 0; padding-left: 0; }
.legal-body ul li { font-size: 15px; color: #9CA3AF; line-height: 1.75; padding-left: 20px; position: relative; margin-bottom: 6px; }
.legal-body ul li::before { content: "\2014"; position: absolute; left: 0; color: #7C3AED; }
.legal-body strong { color: #FFFFFE; font-weight: 600; }
.legal-badge { display: inline-block; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #A78BFA; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 24px; }
.update-note { background: #1A1831; border: 1px solid #2D2B55; border-radius: 8px; padding: 16px 20px; margin-bottom: 40px; font-size: 13px; color: #9CA3AF; }


/* ─── Micro-interactions ───────────────────────────────────────────── */

/* Card hover lift */
.diff-card, .sector-card, .kosgeb-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.diff-card:hover, .sector-card:hover, .kosgeb-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(124,58,237,0.12);
}

/* CTA button hover scale */
.cta-main, .cta-sec, .btn-teklif-outline, .btn-teklif-gradient, .error-btn-primary, .error-btn-sec {
  transition: transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}
.cta-main:hover, .btn-teklif-gradient:hover, .error-btn-primary:hover {
  transform: translateY(-1px);
}
.cta-sec:hover, .btn-teklif-outline:hover, .error-btn-sec:hover {
  transform: translateY(-1px);
}

/* Link accent arrow nudge */
.link-accent { transition: color 0.2s ease, gap 0.2s ease; }
.link-accent:hover { gap: 8px; color: #FFFFFE; }

/* Stat number count-up feel */
.stat-num {
  transition: color 0.3s ease;
}
.stat-item:hover .stat-num {
  color: #A78BFA;
}

/* Footer link underline on hover */
.footer-col a {
  position: relative;
}
.footer-col a::after {
  content: '';
  position: absolute; bottom: -1px; left: 0;
  width: 0; height: 1px;
  background: #A78BFA;
  transition: width 0.25s ease;
}
.footer-col a:hover::after { width: 100%; }

/* Nav link hover indicator */
.nav-links a:not(.btn-primary) {
  position: relative;
}
.nav-links a:not(.btn-primary)::after {
  content: '';
  position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px;
  background: linear-gradient(135deg,#7C3AED,#A78BFA);
  border-radius: 1px;
  transition: width 0.25s ease;
}
.nav-links a:not(.btn-primary):hover::after,
.nav-links a:not(.btn-primary).active::after { width: 60%; }

/* Scroll reveal animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up {
  opacity: 0;
  transform: translateY(24px);
}
.fade-up.visible {
  animation: fadeUp 0.5s ease forwards;
}

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── Form Validation ──────────────────────────────────────────────── */
.f-error {
  font-size: 12px; color: #F87171; margin-top: 4px;
  display: none; align-items: center; gap: 4px;
}
.f-error::before { content: '!'; font-weight: 700; }
.f-error.visible { display: flex; }
input:invalid:not(:placeholder-shown):not(:focus),
select:invalid:not(:focus),
textarea:invalid:not(:placeholder-shown):not(:focus) {
  border-color: rgba(248,113,113,0.4) !important;
}
input:valid:not(:placeholder-shown),
select:valid,
textarea:valid:not(:placeholder-shown) {
  border-color: rgba(52,211,153,0.3) !important;
}
.form-error-banner {
  background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.3);
  border-radius: 8px; padding: 12px 16px;
  font-size: 14px; color: #F87171; margin-bottom: 16px;
  display: none; align-items: center; gap: 8px;
}
.form-error-banner.visible { display: flex; }
.btn-spinner {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.6s linear infinite;
  margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Tablet (768px ve alti) ────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Nav: hamburger menu */
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
    flex-direction: column;
    background: rgba(15,14,23,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 32px 24px; gap: 0;
    border-top: 1px solid #2D2B55;
    overflow-y: auto;
  }
  .nav-links.active { display: flex; }
  .nav-links a {
    font-size: 18px; padding: 16px 0;
    border-bottom: 1px solid #2D2B55;
    width: 100%;
  }
  .nav-links .btn-primary {
    margin-top: 16px; text-align: center;
    padding: 14px; width: 100%; display: block;
    border-radius: 8px;
  }

  /* 2-column grids -> 1 column */
  .diff-grid, .sector-grid, .device-row, .kosgeb-card {
    grid-template-columns: 1fr !important;
  }

  /* Footer 4-col -> 2-col */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* Stats 3-col -> stack */
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { text-align: left !important; border-right: none; border-bottom: 1px solid #2D2B55; }
  .stat-item:last-child { border-bottom: none; }

  /* Section padding kucult */
  section { padding: 60px 0; }
  .hero { padding: 100px 0 60px; }
  .cta-final { padding: 80px 0; }
  .kosgeb-card { padding: 32px !important; }

  /* Inline grid layouts (sector pages, konsol page, etc.) */
  [style*="grid-template-columns: 200px 1fr"],
  [style*="grid-template-columns:200px 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  [style*="grid-template-columns: 1fr 2fr"],
  [style*="grid-template-columns:1fr 2fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  [style*="grid-template-columns: 140px 1fr"],
  [style*="grid-template-columns:140px 1fr"] {
    grid-template-columns: 100px 1fr !important;
  }
  [style*="grid-template-columns: repeat(3,1fr)"],
  [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }
}

/* ─── Mobile (480px ve alti) ────────────────────────────────────────── */
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-row { flex-direction: column; }
  .cta-main, .cta-sec { width: 100%; justify-content: center; }
  .kosgeb-card { padding: 24px !important; gap: 24px !important; }
  h1 { font-size: clamp(32px, 8vw, 44px) !important; }
  .hero-sub { font-size: 16px; }

  /* demo form 2-col -> 1-col */
  [style*="grid-template-columns:1fr 1fr;gap:14px"],
  [style*="grid-template-columns: 1fr 1fr;gap:14px"] {
    grid-template-columns: 1fr !important;
  }
}
