/* ============================================
   Zep Bilişim — Global Stiller & Design Tokens
   ============================================ */

/* --- CSS Değişkenleri (Design Tokens) --- */
:root {
  /* Arkaplanlar */
  --bg:        #0d1117;
  --bg2:       #161b22;
  --bg3:       #1c2128;

  /* Sınırlar */
  --border:    #30363d;

  /* Renkler */
  --green:     #7ee787;
  --green2:    #56d364;
  --green3:    #238636;
  --blue:      #79c0ff;
  --purple:    #d2a8ff;
  --orange:    #ffa657;
  --red:       #ff7b72;

  /* Tipografi */
  --text:      #e6edf3;
  --muted:     #8b949e;
  --dim:       #484f58;

  /* Font — JBM Fallback is a metric-adjusted Courier New (see fonts.css)
     that renders at the same height as JetBrains Mono → font swap = zero CLS. */
  --mono: 'JetBrains Mono', 'JBM Fallback', 'Courier New', monospace;

  /* Boşluklar */
  --radius:    6px;
  --radius-lg: 10px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;

  /* Kaydırma çubuğu — seo/analiz ekosistemiyle aynı: koyu iz + yeşil tutamak.
     Firefox + native fallback. */
  color-scheme: dark;
  scrollbar-width: thin;
  scrollbar-color: var(--green2) var(--bg); /* tutamak / iz */
}

/* Kaydırma çubuğu — WebKit/Blink (Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--green2);
  border-radius: var(--radius);
  border: 2px solid var(--bg); /* iz ile tutamak arasında boşluk */
}
::-webkit-scrollbar-thumb:hover {
  background: var(--green);
}
::-webkit-scrollbar-corner {
  background: var(--bg);
}

body {
  font-family: var(--mono);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  animation: pageLoad 0.3s ease;
  overflow-x: hidden;
}

/* Mobil menü açıkken body scroll'u kilitle */
body.menu-open {
  overflow: hidden;
}

@keyframes pageLoad {
  from { opacity: 0; }
  to   { opacity: 1; }
}

a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--green2);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--text);
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* --- Layout Yardımcıları --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 0.5rem;
  color: var(--text);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 3rem;
}

/* --- Tipografi --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

.green  { color: var(--green); }
.blue   { color: var(--blue); }
.purple { color: var(--purple); }
.orange { color: var(--orange); }
.muted  { color: var(--muted); }
.dim    { color: var(--dim); }

.prompt {
  color: var(--green);
  user-select: none;
}

/* --- Butonlar --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--green3);
  color: #fff;
  border-color: var(--green3);
}

.btn-primary:hover {
  background: var(--green2);
  border-color: var(--green2);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--green3);
  background: rgba(35, 134, 54, 0.15);
}

/* --- Grid Sistemi --- */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* --- Responsive --- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  .section {
    padding: 3.5rem 0;
  }
}

@media (max-width: 600px) {
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }

  .section {
    padding: 2.5rem 0;
  }

  .container {
    padding: 0 1rem;
  }
}

/* --- Yardımcı Sınıflar --- */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }
.mx-auto     { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* --- Skip link — erişilebilirlik (WCAG 2.4.1) --- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: #000;
  color: #fff;
  z-index: 9999;
  text-decoration: none;
  font-weight: 700;
  outline: 2px solid var(--green);
}

/* Reveal initial states — critical (animations.css defer edildiği için flicker önleme) */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale,
.stagger > * {
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal { transform: translateY(20px); }
.reveal-left { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }
.reveal-scale { transform: scale(0.95); }
.stagger > * { transform: translateY(15px); transition: opacity 0.4s ease, transform 0.4s ease; }

/* Reduced motion — reveal initial state'leri override (a11y, critical) */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  .stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
