/* ============================================================
   IT FIX · "PRECISION OPS" TEMA KATMANI — 2026 site geneli reskin
   Nav Ops Console'un teknik dilini (mono mikro-etiketler, köşe
   braketleri, LED sinyalleri, blueprint ızgarası) tüm siteye taşır.
   Açık zemin + lacivert mürekkep + teal sinyal = kurumsal ama sıradışı.
   En son yüklenir; ifx-v31/v32 bileşenlerini token + override ile
   yeniden giydirir, markup'a dokunmaz.
   ============================================================ */

:root {
  /* mürekkep & zemin — daha derin lacivert, daha soğuk gri */
  --ifx31-ink: #0b1424;
  --ifx31-ink-2: #16233a;
  --ifx31-graphite: #0b1424;
  --ifx31-graphite-2: #16233a;
  --ifx31-text: #38465c;
  --ifx31-muted: #64748b;

  /* sinyal rengi: tek aile — teal/cyan (menü deck'i ile aynı dil) */
  --ifx31-accent: #0d9488;
  --ifx31-accent-deep: #0b6e63;
  --ifx31-accent-soft: rgba(13, 148, 136, 0.10);

  /* köşeler: daha keskin, daha teknik */
  --ifx31-r-xs: 7px;
  --ifx31-r-sm: 10px;
  --ifx31-r: 14px;
  --ifx31-r-lg: 18px;
  --ifx31-r-xl: 24px;

  /* gölgeler: daha az "yumuşak pazarlama", daha çok hassas derinlik */
  --ifx31-shadow-sm: 0 8px 20px rgba(11, 20, 36, 0.07);
  --ifx31-shadow-md: 0 18px 40px rgba(11, 20, 36, 0.10);
  --ifx31-shadow-lg: 0 30px 70px rgba(11, 20, 36, 0.14);

  /* tema katmanı yardımcıları */
  --ifxp-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --ifxp-teal: #0f766e;
  --ifxp-teal-bright: #14b8a6;
  --ifxp-cyan: #22d3ee;
  --ifxp-grid-line: rgba(11, 20, 36, 0.035);
  --ifxp-hairline: rgba(11, 20, 36, 0.10);
  --ifxp-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ------------------------------------------------------------
   1 · GLOBAL ZEMİN — blueprint ızgarası, seçim, scrollbar, odak
   ------------------------------------------------------------ */
body.ifx-v31-on {
  background-color: #f6f8fb;
  background-image:
    linear-gradient(var(--ifxp-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--ifxp-grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
}

body.ifx-v31-on ::selection {
  background: rgba(20, 184, 166, 0.25);
  color: var(--ifx31-ink);
}

body.ifx-v31-on {
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 #eef2f7;
}

body.ifx-v31-on ::-webkit-scrollbar { width: 10px; height: 10px; }
body.ifx-v31-on ::-webkit-scrollbar-track { background: #eef2f7; }
body.ifx-v31-on ::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 99px;
  border: 2px solid #eef2f7;
}
body.ifx-v31-on ::-webkit-scrollbar-thumb:hover { background: var(--ifxp-teal); }

body.ifx-v31-on :focus-visible {
  outline: 2px solid var(--ifxp-teal-bright);
  outline-offset: 2px;
}

/* beyaz/krem section'lar ızgarayı kapatmasın diye hafif şeffaflaştır */
body.ifx-v31-on .ifx-v31-section--paper { background: rgba(255, 255, 255, 0.82); }
body.ifx-v31-on .ifx-v31-section--cream {
  background: linear-gradient(180deg, rgba(247, 248, 250, 0.6) 0%, rgba(238, 242, 247, 0.85) 100%);
}

/* ------------------------------------------------------------
   2 · EYEBROW / KICKER — pill yerine teknik mono etiket: // ETİKET
   ------------------------------------------------------------ */
body.ifx-v31-on .ifx-v31-eyebrow,
body.ifx-v31-on .ifx-v32-eyebrow,
body.ifx-v31-on .ifx-v32-kicker {
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  font-family: var(--ifxp-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ifxp-teal);
}

body.ifx-v31-on .ifx-v31-eyebrow::before,
body.ifx-v31-on .ifx-v32-eyebrow::before,
body.ifx-v31-on .ifx-v32-kicker::before {
  content: "//";
  width: auto;
  height: auto;
  background: transparent;
  border-radius: 0;
  font-family: var(--ifxp-mono);
  font-weight: 600;
  color: var(--ifxp-teal-bright);
  letter-spacing: 0;
  margin-right: 2px;
}

/* eski pill içindeki nokta elementi — "//" imzası onun yerini aldı */
body.ifx-v31-on .ifx-v31-eyebrow i {
  display: none;
}

body.ifx-v31-on .ifx-v31-eyebrow::after,
body.ifx-v31-on .ifx-v32-eyebrow::after {
  content: "";
  display: inline-block;
  width: 38px;
  height: 1px;
  margin-left: 12px;
  background: linear-gradient(90deg, var(--ifxp-teal-bright), transparent);
  vertical-align: middle;
}

/* ------------------------------------------------------------
   3 · BAŞLIKLAR — sıkı kerning, lacivert mürekkep, ölçü işareti
   ------------------------------------------------------------ */
body.ifx-v31-on .ifx-v32-display,
body.ifx-v31-on .ifx-v31-section-head h2,
body.ifx-v31-on .ifx-v32-section-head h2,
body.ifx-v31-on .ifx-v31-page-hero h1 {
  color: var(--ifx31-ink);
  letter-spacing: -0.022em;
}

body.ifx-v31-on .ifx-v31-section-head h2 {
  position: relative;
  padding-bottom: 18px;
}

body.ifx-v31-on .ifx-v31-section-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 52px;
  height: 3px;
  background: linear-gradient(90deg, var(--ifxp-teal), var(--ifxp-teal-bright));
  border-radius: 2px;
}

body.ifx-v31-on .ifx-v31-section-head--center h2::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ------------------------------------------------------------
   4 · BUTONLAR — keskin köşe, LED sinyali, mono detay
   ------------------------------------------------------------ */
body.ifx-v31-on .ifx-v31-btn,
body.ifx-v31-on .ifx-v32-btn {
  border-radius: var(--ifx31-r-sm);
  letter-spacing: 0.01em;
}

body.ifx-v31-on .ifx-v31-btn-primary,
body.ifx-v31-on .ifx-v32-btn-primary {
  position: relative;
  /* v31'deki flat-teal kuralı !important taşıdığı için burada da gerekli */
  background: linear-gradient(135deg, #11998a 0%, #0f766e 55%, #0b5e57 100%) !important;
  border: 1px solid rgba(11, 94, 87, 0.45) !important;
  box-shadow: 0 14px 32px rgba(15, 118, 110, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

/* primary CTA'larda nabız atan LED — menü kartlarıyla aynı sinyal dili */
body.ifx-v31-on .ifx-v31-btn-primary::before,
body.ifx-v31-on .ifx-v32-btn-primary::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 2px;
  border-radius: 50%;
  background: #6ee7b7;
  box-shadow: 0 0 0 0 rgba(110, 231, 183, 0.55);
  animation: ifxp-led 2.4s ease-out infinite;
  flex: 0 0 auto;
}

@keyframes ifxp-led {
  0% { box-shadow: 0 0 0 0 rgba(110, 231, 183, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(110, 231, 183, 0); }
  100% { box-shadow: 0 0 0 0 rgba(110, 231, 183, 0); }
}

body.ifx-v31-on .ifx-v31-btn-ghost,
body.ifx-v31-on .ifx-v31-btn-ghost-light,
body.ifx-v31-on .ifx-v32-btn-line,
body.ifx-v31-on .ifx-v32-btn-ink {
  border-radius: var(--ifx31-r-sm);
}

/* header'daki Teklif Al CTA'sı da aynı dile geçsin */
[data-itfixx-header] .itfixx-cta {
  border-radius: var(--ifx31-r-sm, 10px);
}

/* ------------------------------------------------------------
   5 · KART SİSTEMİ — hairline çerçeve + hover'da köşe braketleri
   ------------------------------------------------------------ */
body.ifx-v31-on .ifx-v31-scope-grid li,
body.ifx-v31-on .ifx-v31-firm-card,
body.ifx-v31-on .ifx-v31-related-grid a,
body.ifx-v31-on .ifx-v31-page-hero-card,
body.ifx-v31-on .ifx-v31-contact-brief,
body.ifx-v31-on .ifx-v31-faq-list details {
  position: relative;
  border: 1px solid var(--ifxp-hairline);
  border-radius: var(--ifx31-r);
  box-shadow: var(--ifx31-shadow-sm);
  transition:
    transform 0.25s var(--ifxp-ease),
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

/* köşe braketleri — menü trigger'larıyla aynı imza */
body.ifx-v31-on .ifx-v31-scope-grid li::before,
body.ifx-v31-on .ifx-v31-firm-card::before,
body.ifx-v31-on .ifx-v31-related-grid a::before,
body.ifx-v31-on .ifx-v31-page-hero-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 16px;
  height: 16px;
  border-top: 2px solid var(--ifxp-teal-bright);
  border-left: 2px solid var(--ifxp-teal-bright);
  border-top-left-radius: var(--ifx31-r);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

body.ifx-v31-on .ifx-v31-scope-grid li::after,
body.ifx-v31-on .ifx-v31-firm-card::after,
body.ifx-v31-on .ifx-v31-related-grid a::after {
  content: "";
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 16px;
  height: 16px;
  border-bottom: 2px solid var(--ifxp-teal-bright);
  border-right: 2px solid var(--ifxp-teal-bright);
  border-bottom-right-radius: var(--ifx31-r);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

body.ifx-v31-on .ifx-v31-scope-grid li:hover,
body.ifx-v31-on .ifx-v31-firm-card:hover,
body.ifx-v31-on .ifx-v31-related-grid a:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 118, 110, 0.32);
  box-shadow: var(--ifx31-shadow-md);
}

body.ifx-v31-on .ifx-v31-scope-grid li:hover::before,
body.ifx-v31-on .ifx-v31-scope-grid li:hover::after,
body.ifx-v31-on .ifx-v31-firm-card:hover::before,
body.ifx-v31-on .ifx-v31-firm-card:hover::after,
body.ifx-v31-on .ifx-v31-related-grid a:hover::before,
body.ifx-v31-on .ifx-v31-related-grid a:hover::after {
  opacity: 1;
}

/* hero kartında braket sürekli açık — sayfanın imzası */
body.ifx-v31-on .ifx-v31-page-hero-card::before {
  opacity: 1;
}

/* ------------------------------------------------------------
   6 · İÇ SAYFA HERO — blueprint + mono crumb (terminal path havası)
   ------------------------------------------------------------ */
body.ifx-v31-on .ifx-v31-page-hero {
  background:
    linear-gradient(rgba(11, 20, 36, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 20, 36, 0.028) 1px, transparent 1px),
    radial-gradient(ellipse at 88% 16%, rgba(20, 184, 166, 0.16), transparent 40%),
    linear-gradient(180deg, #fbfcfe 0%, #f7f8fa 70%, #eef2f7 100%);
  background-size: 44px 44px, 44px 44px, auto, auto;
}

body.ifx-v31-on .ifx-v31-crumb {
  font-family: var(--ifxp-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ifx31-muted);
}

body.ifx-v31-on .ifx-v31-crumb a {
  color: var(--ifxp-teal);
}

body.ifx-v31-on .ifx-v31-crumb::before {
  content: "~/";
  font-family: var(--ifxp-mono);
  color: var(--ifxp-teal-bright);
  margin-right: 4px;
}

/* adım numaraları mono */
body.ifx-v31-on .ifx-v31-step-num,
body.ifx-v31-on .ifx-v32-process-num,
body.ifx-v31-on .ifx-v32-service-code,
body.ifx-v31-on .ifx-v32-mslicense-code {
  font-family: var(--ifxp-mono);
  font-weight: 600;
  color: var(--ifxp-teal);
}

/* ------------------------------------------------------------
   7 · ANASAYFA v32 — servis kayıtları teknik defter görünümü
   ------------------------------------------------------------ */
body.ifx-v31-on .ifx-v32-service-row {
  border-radius: var(--ifx31-r-sm);
  transition: background 0.22s ease, padding-left 0.25s var(--ifxp-ease);
}

body.ifx-v31-on .ifx-v32-service-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 2px;
  background: linear-gradient(180deg, var(--ifxp-teal-bright), var(--ifxp-teal));
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.22s ease;
}

body.ifx-v31-on .ifx-v32-service-row:hover {
  background: rgba(13, 148, 136, 0.05);
  padding-left: 18px;
}

body.ifx-v31-on .ifx-v32-service-row:hover::before {
  opacity: 1;
}

body.ifx-v31-on .ifx-v32-service-arrow {
  font-family: var(--ifxp-mono);
}

/* ------------------------------------------------------------
   8 · ÜST UTILITY BAR — konsol şeridi (deck ile aynı zemin)
   ------------------------------------------------------------ */
body.ifx-v31-on [data-itfixx-header] .ifx-v31-utility {
  background: linear-gradient(180deg, #0b1424, #0e1a2e);
  border-bottom: 1px solid rgba(45, 212, 191, 0.18) !important;
  color: #b6c2d4;
}

body.ifx-v31-on [data-itfixx-header] .ifx-v31-utility-item,
body.ifx-v31-on [data-itfixx-header] .ifx-v31-utility-lang {
  color: #b6c2d4;
}

body.ifx-v31-on [data-itfixx-header] .ifx-v31-utility-item:hover {
  color: #2dd4bf;
}

body.ifx-v31-on [data-itfixx-header] .ifx-v31-utility-item svg {
  stroke: #2dd4bf;
}

body.ifx-v31-on [data-itfixx-header] .ifx-v31-utility-divider {
  background: rgba(148, 163, 184, 0.25);
}

body.ifx-v31-on [data-itfixx-header] .ifx-v31-utility-portal {
  color: #e2e8f0;
}

body.ifx-v31-on [data-itfixx-header] .ifx-v31-utility-portal i {
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18);
}

/* ------------------------------------------------------------
   9 · FOOTER — Ops Console'un devamı: koyu konsol + ızgara
   ------------------------------------------------------------ */
/* footer üstü NOC durum şeridi */
body.ifx-v31-on .ifxf-status {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 8, 20, 0.45);
}

body.ifx-v31-on .ifxf-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 11px;
  padding-bottom: 11px;
  font-family: var(--ifxp-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
}

body.ifx-v31-on .ifxf-status-led {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #34d399;
  white-space: nowrap;
}

body.ifx-v31-on .ifxf-status-led i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5);
  animation: ifxp-led 2.2s ease-out infinite;
}

body.ifx-v31-on .ifxf-status-meta {
  color: #7d8da3;
}

@media (max-width: 640px) {
  body.ifx-v31-on .ifxf-status-meta {
    display: none;
  }
}

body.ifx-v31-on .ifx-v31-footer {
  background:
    radial-gradient(900px 380px at 12% 0%, rgba(20, 184, 166, 0.10), transparent 55%),
    linear-gradient(180deg, #0b1424, #070d1a);
  border-top: 1px solid rgba(45, 212, 191, 0.28);
}

body.ifx-v31-on .ifx-v31-footer::before {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 1;
}

body.ifx-v31-on .ifx-v31-footer-ribbon a small,
body.ifx-v31-on .ifx-v31-footer-ribbon span small {
  font-family: var(--ifxp-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7d8da3;
}

body.ifx-v31-on .ifx-v31-footer-col h4 {
  font-family: var(--ifxp-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #2dd4bf;
}

body.ifx-v31-on .ifx-v31-footer-col h4::before {
  content: "// ";
  color: rgba(45, 212, 191, 0.55);
}

body.ifx-v31-on .ifx-v31-footer-col a {
  transition: color 0.18s ease, padding-left 0.2s var(--ifxp-ease);
}

body.ifx-v31-on .ifx-v31-footer-col a:hover {
  color: #2dd4bf;
  padding-left: 6px;
}

body.ifx-v31-on .ifx-v31-footer-bottom {
  font-family: var(--ifxp-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

/* ------------------------------------------------------------
   10 · SLIDER & TRUST — mono mikro-etiketler
   ------------------------------------------------------------ */
body.ifx-v31-on .ifx-v31-slide-eyebrow,
body.ifx-v31-on .ifx-v31-slide-tag {
  font-family: var(--ifxp-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

body.ifx-v31-on .ifx-v31-slider-dot-num,
body.ifx-v31-on .ifx-v31-slider-counter {
  font-family: var(--ifxp-mono);
}

/* logo altındaki "Technology Operations" imzası */
[data-itfixx-header] .itfixx-logo-accent {
  font-family: var(--ifxp-mono, monospace);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------
   11 · ERİŞİLEBİLİRLİK
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  body.ifx-v31-on .ifx-v31-btn-primary::before,
  body.ifx-v31-on .ifx-v32-btn-primary::before {
    animation: none;
  }
  body.ifx-v31-on .ifx-v31-scope-grid li,
  body.ifx-v31-on .ifx-v31-firm-card,
  body.ifx-v31-on .ifx-v31-related-grid a,
  body.ifx-v31-on .ifx-v32-service-row {
    transition: none;
  }
}
