/* ==========================================================================
   Okan Akgül — PRO katmanı
   Tema: light / dark · site içi arama · ince görsel düzenlemeler
   Bu dosya her zaman style.css, okan.css ve banner.css'ten sonra yüklenir.
   ========================================================================== */

:root {
  color-scheme: light;
  /* Yeni logo paleti: kırmızı, mavi, sarı, bordo */
  --brand: #e11d1d;
  --brand-2: #d97706;
  --brand-3: #7f1d1d;
  --brand-dark: #7f1d1d;
  --brand-glow: rgba(225, 29, 29, .35);
  --brand-soft: rgba(225, 29, 29, .1);
  --cyan: #2563eb;
  --gold: #eab308;
  --wine: #5b0f1c;
  --pro-surface: #ffffff;
  --pro-surface-2: #f8f1e6;
  --pro-accent: #b91c1c;
  --pro-accent-soft: rgba(185, 28, 28, .1);
}

/* --------------------------------------------------------------------------
   Koyu tema
   -------------------------------------------------------------------------- */

html[data-theme="dark"] {
  color-scheme: dark;
  --brand: #ff5a4d;
  --brand-2: #f59e0b;
  --brand-3: #c8102e;
  --brand-dark: #7f1d1d;
  --brand-glow: rgba(255, 90, 77, .4);
  --brand-soft: rgba(255, 90, 77, .14);
  --cyan: #60a5fa;
  --gold: #facc15;
  --wine: #5b0f1c;
  --text: #e4ebf6;
  --muted: #a2b0c4;
  --line: rgba(148, 163, 184, .22);
  --bg: #070c16;
  --bg-soft: #0c1322;
  --white: #101828;
  --ink: #f4f7fb;
  --ink-2: #e6edf8;
  --ink-3: #c4d0e0;
  --shadow-sm: 0 12px 34px -18px rgba(0, 0, 0, .9);
  --shadow: 0 34px 70px -46px rgba(0, 0, 0, .95);
  --shadow-lg: 0 60px 120px -70px rgba(255, 96, 96, .34);
  --gradient-brand: radial-gradient(circle at top left, #f59e0b, #ff5a4d 48%, #7f1d1d);
  --pro-surface: #101828;
  --pro-surface-2: #0c1322;
  --pro-accent: #ff5a4d;
  --pro-accent-soft: rgba(255, 90, 77, .14);
}

html[data-theme="dark"] body {
  background:
    radial-gradient(900px 620px at 100% -8%, rgba(255, 96, 96, .09), transparent 62%),
    radial-gradient(760px 560px at 0% 102%, rgba(34, 211, 238, .07), transparent 62%),
    linear-gradient(180deg, #070c16 0%, #0a1120 55%, #0d1525 100%);
}

html[data-theme="dark"] .site-header {
  background: radial-gradient(circle at top, rgba(16, 24, 40, .97), rgba(7, 12, 22, .92));
  border-color: rgba(148, 163, 184, .2);
}

html[data-theme="dark"] .site-header.is-scrolled {
  box-shadow: 0 30px 60px -48px rgba(0, 0, 0, .95);
}

html[data-theme="dark"] .brand-sub,
html[data-theme="dark"] .site-nav a {
  color: #c2cede;
}

html[data-theme="dark"] .site-nav a:hover,
html[data-theme="dark"] .site-nav a.active {
  color: #ff8b8b;
}

html[data-theme="dark"] :is(
  .bg-white, .bg-soft, .quick-card, .stats-bar, .service-card, .feature-card,
  .video-card, .trust-panel, .quote-card, .faq-item, .contact-form-card,
  .contact-card, .map-card, .value-card, .stack-chip, .site-card, .post-card,
  .project-card, .info-card, .review-card, .author-box, .article-tags span,
  .form-control, .form-control:focus, .pro-tool, .nav-toggle, .lang-switch,
  .mobile-action-bar, .to-top
) {
  color: var(--text);
  background-color: var(--pro-surface);
  border-color: var(--line);
}

html[data-theme="dark"] .mobile-action-bar a {
  color: #dce5f2;
}

html[data-theme="dark"] .mobile-action-bar a:hover {
  color: #ff8b8b;
}

html[data-theme="dark"] .mobile-action-bar a:nth-child(2) i {
  color: #4ade80;
}

html[data-theme="dark"] .form-control::placeholder {
  color: #8594aa;
}

html[data-theme="dark"] .hero,
html[data-theme="dark"] .page-hero--tech {
  background-color: #070c16;
}

html[data-theme="dark"] .form-message.success {
  color: #8ce7b1;
  background: rgba(34, 197, 94, .14);
  border-color: rgba(34, 197, 94, .32);
}

html[data-theme="dark"] .form-message.error {
  color: #ffb2b2;
  background: rgba(255, 96, 96, .12);
  border-color: rgba(255, 96, 96, .3);
}

html[data-theme="dark"] ::selection {
  background: var(--brand);
  color: #fff;
}

html[data-theme="dark"] ::-webkit-scrollbar-track {
  background: #0a1120;
}

html[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: #35435a;
  border-color: #0a1120;
}

/* --------------------------------------------------------------------------
   Marka işareti — O/A monogramı
   -------------------------------------------------------------------------- */

.brand-logo {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(127, 29, 29, .18);
}

.site-footer .brand-logo {
  background: transparent;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .45);
}

html[data-theme="dark"] .brand-logo {
  box-shadow: 0 8px 24px rgba(255, 90, 77, .22);
}

.site-header::after {
  background: linear-gradient(90deg,
    transparent,
    rgba(225, 29, 29, .85),
    rgba(245, 158, 11, .75),
    rgba(59, 130, 246, .8),
    transparent);
}

/* --------------------------------------------------------------------------
   Header araçları: tema ve arama
   -------------------------------------------------------------------------- */

.pro-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, .9);
  font-size: .95rem;
  line-height: 1;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s var(--ease-out);
}

.pro-tool:hover {
  color: var(--brand);
  border-color: rgba(255, 46, 46, .35);
  background: var(--brand-soft);
  transform: translateY(-1px);
}

.pro-tool kbd {
  display: none;
}

@media (min-width: 1200px) {
  .pro-tool[data-search-open] {
    width: auto;
    padding: 0 12px;
    gap: 8px;
  }

  .pro-tool kbd {
    display: inline-block;
    padding: 2px 5px;
    border: 1px solid var(--line);
    border-radius: 5px;
    color: var(--muted);
    font: 600 .65rem/1.2 var(--font-body);
    background: var(--pro-surface-2);
  }
}

/* --------------------------------------------------------------------------
   Site içi arama katmanı
   -------------------------------------------------------------------------- */

.pro-search[hidden] {
  display: none !important;
}

body.search-open {
  overflow: hidden;
}

.pro-search {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: start center;
  padding: clamp(16px, 7vh, 76px) 16px 24px;
}

.pro-search__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 15, .74);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pro-search__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(680px, 100%);
  max-height: min(78vh, 720px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--pro-surface);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .8);
  animation: pro-search-in .22s var(--ease-out) both;
}

@keyframes pro-search-in {
  from { opacity: 0; transform: translateY(-10px) scale(.985); }
  to { opacity: 1; transform: none; }
}

.pro-search__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.pro-search__head > i {
  color: var(--brand);
  font-size: 1.1rem;
}

.pro-search__head input {
  flex: 1;
  min-width: 0;
  padding: 6px 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 1rem;
}

.pro-search__head input::placeholder {
  color: #8996a9;
}

.pro-search__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
}

.pro-search__close:hover {
  color: var(--brand);
  border-color: var(--brand);
}

.pro-search__hint {
  padding: 10px 18px;
  color: var(--muted);
  background: var(--pro-surface-2);
  font-size: .74rem;
}

.pro-search__results {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px 0;
}

.pro-search__empty {
  padding: 34px 20px;
  color: var(--muted);
  text-align: center;
}

.pro-search__result {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 12px 18px;
  color: var(--text);
  border-left: 3px solid transparent;
  text-decoration: none;
}

.pro-search__result:hover,
.pro-search__result.is-active {
  color: var(--text);
  border-left-color: var(--brand);
  background: var(--brand-soft);
}

.pro-search__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: .85rem;
}

.pro-search__copy {
  min-width: 0;
}

.pro-search__copy b {
  display: block;
  font-family: var(--font-head);
  font-size: .95rem;
  line-height: 1.35;
}

.pro-search__copy small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: .73rem;
  line-height: 1.45;
}

.pro-search__copy mark {
  padding: 0 2px;
  border-radius: 3px;
  color: inherit;
  background: rgba(255, 46, 46, .18);
}

.pro-search__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 11px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--pro-surface-2);
  font-size: .7rem;
}

.pro-search__foot kbd {
  display: inline-block;
  min-width: 18px;
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  background: var(--pro-surface);
  font: 600 .65rem/1.2 var(--font-body);
  text-align: center;
}

html[data-theme="dark"] .pro-search__dialog {
  background: #101828;
}

html[data-theme="dark"] .pro-search__hint,
html[data-theme="dark"] .pro-search__foot {
  background: #0c1322;
}

/* --------------------------------------------------------------------------
   Teklif formu: hızlı WhatsApp akışı
   -------------------------------------------------------------------------- */

.pro-form-wa {
  margin-top: 10px;
}

.pro-form-wa--whatsapp {
  color: #fff;
  background: #1fa855;
  border-color: #1fa855;
}

.pro-form-wa--whatsapp:hover {
  color: #fff;
  background: #188f49;
  border-color: #188f49;
}

/* --------------------------------------------------------------------------
   İnce görsel düzenlemeler
   -------------------------------------------------------------------------- */

h1, h2, h3 {
  text-wrap: balance;
}

.section-head .eyebrow,
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.section-head .eyebrow::before,
.hero .eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.site-header.is-scrolled {
  box-shadow: 0 26px 60px -52px rgba(11, 18, 32, .95);
}

.service-card:hover,
.site-card:hover,
.post-card:hover,
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px -44px rgba(11, 18, 32, .5);
}

.cta-band {
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -110px;
  top: -170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, .22), transparent 68%);
  pointer-events: none;
}

.site-footer {
  border-top: 1px solid rgba(255, 46, 46, .28);
}

.scroll-progress {
  z-index: 1500 !important;
}

/* --------------------------------------------------------------------------
   Erişilebilirlik, hareket azaltma ve yazdırma
   -------------------------------------------------------------------------- */

:focus-visible {
  outline-color: var(--brand);
}

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

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .region-track,
  .cam__scan {
    animation: none !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .whatsapp-float,
  .mobile-action-bar,
  .to-top,
  .pro-search,
  .hero-regions,
  .scroll-progress {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff !important;
  }

  .container {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Küçük ekran uyumu
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
  .header-row {
    gap: 10px;
  }

  .header-actions {
    gap: 6px;
  }

  .header-actions .header-call {
    display: none;
  }

  .pro-tool {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 1.12rem;
  }

  .brand-sub {
    font-size: .6rem;
  }

  .pro-search {
    padding-top: 12px;
  }

  .pro-search__dialog {
    max-height: 86vh;
    border-radius: 16px;
  }

  .pro-search__foot span:last-child {
    display: none;
  }
}
