/* ==========================================================================
   Agile Coders TR — tek ortak stil dosyası
   Sıra: 1) değişkenler 2) reset 3) yerleşim 4) header 5) bileşenler
         6) sayfa bölümleri 7) footer 8) responsive
   ========================================================================== */

/* 1) Değişkenler ---------------------------------------------------------- */
:root {
  --navy: #0b1220;
  --navy-raised: #0f1829;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(148, 163, 184, 0.18);
  --border-strong: rgba(148, 163, 184, 0.32);

  --accent: #3b82f6;
  --accent-bright: #60a5fa;
  --accent-soft: rgba(59, 130, 246, 0.14);

  --text: #e8eefb;
  --text-muted: #9aa8c2;

  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1120px;
  --header-h: 68px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

/* 2) Reset ---------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--navy);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 {
  font-size: clamp(1.9rem, 7vw, 3.3rem);
}

h2 {
  font-size: clamp(1.45rem, 4.5vw, 2.1rem);
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--accent-bright);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img,
svg {
  max-width: 100%;
  display: block;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* 3) Yerleşim ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 56px 0;
}

.section--tight {
  padding: 36px 0;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-head {
  max-width: 62ch;
  margin-bottom: 32px;
}

.section-sub {
  color: var(--text-muted);
  margin: 0;
}

.eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-bright);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* 4) Header --------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 10px 16px;
  background: var(--accent);
  color: #06101f;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 18, 32, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  height: 30px;
  width: auto;
}

/* CSS-only mobil menü: gizli checkbox + label (JS yok) */
.nav-toggle {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.nav-toggle-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex: 0 0 auto;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.nav-toggle:focus-visible + .nav-toggle-label {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

.site-nav {
  display: none;
  width: 100%;
  order: 3;
  padding-bottom: 12px;
}

.nav-toggle:checked ~ .site-nav {
  display: block;
}

.site-nav ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-nav a {
  display: block;
  padding: 10px 12px;
  color: var(--text-muted);
  font-weight: 500;
  border-radius: var(--radius-sm);
}

.site-nav a:hover {
  color: var(--text);
  background: var(--surface-hover);
  text-decoration: none;
}

/* Aktif menü öğesi: header işaretlemesi tüm sayfalarda aynı kalsın diye
   vurgu <body> sınıfından türetilir. */
.p-index .site-nav [data-nav="index"],
.p-urunler .site-nav [data-nav="urunler"],
.p-hakkimizda .site-nav [data-nav="hakkimizda"],
.p-iletisim .site-nav [data-nav="iletisim"] {
  color: var(--text);
  background: var(--accent-soft);
  box-shadow: inset 2px 0 0 var(--accent);
}

/* 5) Bileşenler ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: #06101f;
}

.btn--primary:hover {
  background: var(--accent-bright);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn--ghost:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.card p:last-child {
  margin-bottom: 0;
}

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

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  background: var(--accent-soft);
  border-radius: 10px;
  color: var(--accent-bright);
  font-weight: 700;
}

.badge {
  display: inline-block;
  padding: 4px 11px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge--canli {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
}

.badge--yakinda {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
}

.badge--store {
  color: var(--accent-bright);
  background: var(--accent-soft);
}

.badge--hizmet {
  color: #a5b4cf;
  background: rgba(148, 163, 184, 0.12);
}

.meta {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--border);
  font-size: 0.94rem;
}

.meta div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.meta dt,
.meta-label {
  color: var(--accent-bright);
  font-weight: 600;
}

.meta dd {
  margin: 0;
  color: var(--text-muted);
}

/* 6) Sayfa bölümleri ------------------------------------------------------ */
.hero {
  padding: 64px 0 56px;
  background-image: radial-gradient(
    60% 60% at 20% 0%,
    rgba(59, 130, 246, 0.16) 0%,
    rgba(11, 18, 32, 0) 100%
  );
}

.hero p.hero-slogan {
  max-width: 56ch;
  margin-bottom: 28px;
  color: var(--text-muted);
  font-size: clamp(1.02rem, 2.6vw, 1.22rem);
}

.page-header {
  padding: 48px 0 8px;
  background-image: radial-gradient(
    70% 70% at 10% 0%,
    rgba(59, 130, 246, 0.12) 0%,
    rgba(11, 18, 32, 0) 100%
  );
}

.page-header p {
  max-width: 62ch;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Ürün kartları (ana sayfa) */
.product-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.product-card:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
  text-decoration: none;
}

.product-card h3 {
  margin: 0;
}

.product-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.product-card .card-more {
  margin-top: auto;
  padding-top: 6px;
  color: var(--accent-bright);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Ürün detayları (urunler.html) */
.product {
  padding: 40px 0;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.product + .product {
  border-top: 1px solid var(--border);
}

.product-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.product-head h2 {
  margin: 0;
}

.product-body {
  max-width: 68ch;
}

.product-body p:last-of-type {
  margin-bottom: 0;
}

/* Adımlar (hakkimizda.html) */
.steps {
  display: grid;
  gap: 16px;
  counter-reset: step;
  grid-template-columns: 1fr;
}

.steps li {
  position: relative;
  padding: 24px 24px 24px 68px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent-bright);
  font-weight: 700;
  font-size: 0.95rem;
}

.steps h3 {
  margin-bottom: 4px;
}

.steps p {
  margin: 0;
  color: var(--text-muted);
}

.prose {
  max-width: 68ch;
}

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

.prose strong {
  color: var(--text);
}

/* İletişim (iletisim.html) */
.contact-list {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.contact-list .label {
  display: block;
  margin-bottom: 4px;
  color: var(--accent-bright);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-list .value {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-list .note {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* CTA şeridi */
.cta {
  padding: 32px;
  background: var(--navy-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.cta h2 {
  margin-bottom: 8px;
}

.cta p {
  max-width: 52ch;
  margin: 0 auto 22px;
  color: var(--text-muted);
}

.cta .btn-row {
  justify-content: center;
}

/* 404 */
.notfound {
  display: flex;
  align-items: center;
  min-height: 58vh;
  padding: 56px 0;
  text-align: center;
}

.notfound .code {
  display: block;
  color: var(--accent);
  font-size: clamp(3.4rem, 16vw, 6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.notfound p {
  max-width: 46ch;
  margin: 0 auto 24px;
  color: var(--text-muted);
}

.notfound .btn-row {
  justify-content: center;
}

/* 7) Footer -------------------------------------------------------------- */
.site-footer {
  margin-top: 24px;
  background: var(--navy-raised);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  gap: 28px;
  padding: 44px 20px 32px;
  grid-template-columns: 1fr;
}

.footer-brand img {
  height: 28px;
  width: auto;
  margin-bottom: 12px;
}

.footer-brand p {
  max-width: 34ch;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.footer-title {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.footer-col li + li {
  margin-top: 6px;
}

.footer-col a,
.footer-contact a {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.footer-col a:hover,
.footer-contact a:hover {
  color: var(--text);
}

.footer-contact p {
  margin: 0 0 6px;
  color: var(--text-muted);
  font-size: 0.94rem;
  overflow-wrap: anywhere;
}

.footer-bottom {
  padding: 16px 20px 28px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
}

/* 8) Responsive ----------------------------------------------------------- */
@media (min-width: 600px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 780px) {
  .section {
    padding: 76px 0;
  }

  .hero {
    padding: 104px 0 88px;
  }

  .page-header {
    padding: 72px 0 8px;
  }

  .product {
    padding: 56px 0;
  }

  /* Masaüstünde menü her zaman açık; hamburger gizli */
  .nav-toggle-label {
    display: none;
  }

  .site-nav,
  .nav-toggle:checked ~ .site-nav {
    display: block;
    width: auto;
    order: 0;
    padding-bottom: 0;
  }

  .site-nav ul {
    flex-direction: row;
    gap: 4px;
  }

  .site-nav a {
    padding: 8px 14px;
  }

  .p-index .site-nav [data-nav="index"],
  .p-urunler .site-nav [data-nav="urunler"],
  .p-hakkimizda .site-nav [data-nav="hakkimizda"],
  .p-iletisim .site-nav [data-nav="iletisim"] {
    box-shadow: inset 0 -2px 0 var(--accent);
  }
}

@media (min-width: 900px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
  }

  .cta {
    padding: 48px;
  }
}
