/*
 * AS Yönetim — tanıtım sitesi (giriş öncesi sayfalar). Uygulamanın kendisi React ile yazılmıştır (/app).
 * Bootstrap yalnızca ızgara, form ve pencere (modal) bileşenleri için kullanılır; görünüm bu dosyadadır.
 */

:root {
  --navy-950: #071020;
  --navy-900: #0a1628;
  --navy-800: #0b1f33;
  --brand: #14958a;
  --brand-600: #0d7770;
  --brand-300: #2dd4bf;
  --brand-50: #e6fcf8;
  --blue: #3b82f6;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f6f8fb;
  --card: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, 0.08), 0 2px 6px rgba(16, 24, 40, 0.04);
  --shadow-lg: 0 24px 48px rgba(16, 24, 40, 0.14);
  --font: "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body.pub {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

.pub a {
  color: var(--brand);
  text-decoration: none;
}
.pub a:hover {
  color: var(--brand-600);
}

.pub-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Düğmeler ---- */
.pub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}
.pub-btn-sm {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
}
.pub-btn-lg {
  height: 50px;
  padding: 0 26px;
  font-size: 16px;
}
.pub .pub-btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 16px rgba(20, 149, 138, 0.28);
}
.pub .pub-btn-primary:hover {
  background: var(--brand-600);
  color: #fff;
}
.pub .pub-btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.pub .pub-btn-ghost:hover {
  background: #fff;
  border-color: #cbd5e1;
  color: var(--text);
}
.pub .pub-btn-light {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
}
.pub .pub-btn-light:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.pub-btn:focus-visible {
  outline: 3px solid rgba(45, 212, 191, 0.45);
  outline-offset: 2px;
}

/* ---- Üst çubuk ---- */
.pub-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.pub-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.pub-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text) !important;
}
.pub-brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}
.pub-brand-name {
  font-weight: 700;
  font-size: 17px;
  line-height: 1.15;
}
.pub-brand-sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.2;
}
.pub-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.pub-nav a {
  color: var(--text-2);
  font-weight: 500;
  font-size: 15px;
}
.pub-nav a:hover,
.pub-nav a[aria-current="page"] {
  color: var(--brand);
}
.pub-actions {
  display: flex;
  gap: 10px;
}
@media (max-width: 860px) {
  .pub-nav {
    display: none;
  }
}
@media (max-width: 480px) {
  .pub-brand-sub,
  .pub-actions .pub-btn-ghost {
    display: none;
  }
}

/* ---- Bölümler ---- */
.pub-section {
  padding: 88px 0;
}
.pub-section-tight {
  padding: 56px 0;
}
.pub-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
}
.pub-h1 {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.1;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin: 14px 0 18px;
}
.pub-h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 10px 0 12px;
}
.pub-lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 620px;
}
.pub-center {
  text-align: center;
}
.pub-center .pub-lead {
  margin-left: auto;
  margin-right: auto;
}

/* ---- Kahraman (hero) ---- */
.pub-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 520px at 0% 0%, rgba(45, 212, 191, 0.28), transparent 60%),
    radial-gradient(800px 520px at 100% 100%, rgba(59, 130, 246, 0.3), transparent 60%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 55%, var(--navy-950) 100%);
  padding: 96px 0 104px;
}
.pub-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
  pointer-events: none;
}
.pub-hero > * {
  position: relative;
  z-index: 1;
}
.pub-hero .pub-eyebrow {
  color: var(--brand-300);
}
.pub-hero .pub-lead {
  color: rgba(255, 255, 255, 0.78);
}
.pub-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
@media (max-width: 960px) {
  .pub-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.pub-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.pub-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 32px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}
.pub-hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pub-hero-points svg {
  color: var(--brand-300);
}

/* Panel önizlemesi (CSS ile çizilmiş) */
.pub-mock {
  background: #fff;
  color: var(--text);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.pub-mock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}
.pub-mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e2e8f0;
}
.pub-mock-body {
  display: grid;
  grid-template-columns: 120px 1fr;
  min-height: 300px;
}
.pub-mock-side {
  border-right: 1px solid var(--line);
  padding: 14px 10px;
  display: grid;
  align-content: start;
  gap: 6px;
}
.pub-mock-nav {
  height: 26px;
  border-radius: 7px;
  background: #f1f5f9;
}
.pub-mock-nav.on {
  background: var(--brand-50);
  box-shadow: inset 3px 0 0 var(--brand);
}
.pub-mock-main {
  padding: 16px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.pub-mock-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.pub-mock-kpi {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}
.pub-mock-kpi small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.pub-mock-kpi b {
  font-size: 17px;
}
.pub-mock-chart {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 120px;
}
.pub-mock-chart i {
  flex: 1;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, var(--brand-300), var(--brand));
  opacity: 0.85;
}
.pub-mock-rows {
  display: grid;
  gap: 8px;
}
.pub-mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 12px;
}
.pub-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}
.pub-tag.ok {
  background: #dcfce7;
  color: #15803d;
}
.pub-tag.wait {
  background: #fef3c7;
  color: #b45309;
}
.pub-tag.info {
  background: #dbeafe;
  color: #1d4ed8;
}
@media (max-width: 520px) {
  .pub-mock-body {
    grid-template-columns: 1fr;
  }
  .pub-mock-side {
    display: none;
  }
}

/* ---- Kartlar ---- */
.pub-grid {
  display: grid;
  gap: 20px;
}
.pub-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pub-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.pub-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 960px) {
  .pub-grid-3,
  .pub-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .pub-grid-2,
  .pub-grid-3,
  .pub-grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }
}
.pub-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition:
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}
.pub-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}
.pub-card h3 {
  font-size: 18px;
  font-weight: 650;
  margin: 16px 0 8px;
}
.pub-card p {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
}
.pub-card ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.pub-card li {
  display: flex;
  gap: 10px;
  color: var(--text-2);
  font-size: 14px;
}
.pub-card li svg {
  flex-shrink: 0;
  color: var(--brand);
  margin-top: 3px;
}
.pub-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brand-50);
  color: var(--brand);
}
.pub-icon.blue {
  background: #dbeafe;
  color: #1d4ed8;
}
.pub-icon.orange {
  background: #ffedd5;
  color: #c2410c;
}
.pub-icon.violet {
  background: #ede9fe;
  color: #6d28d9;
}

/* Adımlar */
.pub-step-no {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  box-shadow: 0 6px 14px rgba(20, 149, 138, 0.3);
}

/* İstatistik şeridi */
.pub-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 760px) {
  .pub-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.pub-stat b {
  display: block;
  font-size: 28px;
  font-weight: 750;
  color: var(--text);
}
.pub-stat span {
  color: var(--muted);
  font-size: 14px;
}

/* Çağrı bandı */
.pub-cta {
  border-radius: 20px;
  padding: 48px;
  color: #fff;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(45, 212, 191, 0.35), transparent 60%),
    linear-gradient(135deg, var(--navy-800), var(--navy-950));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.pub-cta h2 {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 700;
}
.pub-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}
@media (max-width: 640px) {
  .pub-cta {
    padding: 32px 24px;
  }
}

/* ---- Formlar ---- */
.pub .form-label {
  font-weight: 500;
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 6px;
}
.pub .form-control {
  border-radius: var(--radius-sm);
  border-color: #cbd5e1;
  padding: 10px 14px;
  font-size: 15px;
}
/* Dokunmatik ekranlarda en az 16px: iOS Safari daha küçük yazılı kutuya odaklanınca sayfayı yakınlaştırır. */
@media (pointer: coarse) {
  .pub .form-control,
  .pub .form-select {
    font-size: 16px;
  }
}
.pub .form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(20, 149, 138, 0.18);
}

/* ---- Alt bilgi ---- */
.pub-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 40px 0 28px;
  color: var(--muted);
  font-size: 14px;
}
.pub-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 760px) {
  .pub-footer-grid {
    grid-template-columns: 1fr;
  }
}
.pub-footer h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  font-weight: 650;
  margin-bottom: 12px;
}
.pub-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.pub-footer a {
  color: var(--muted);
}
.pub-footer a:hover {
  color: var(--brand);
}
.pub-footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---- Pencereler (KVKK, gizlilik, iletişim) ---- */
.pub .modal-content {
  border: 0;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}
.pub .modal-header,
.pub .modal-footer {
  border-color: var(--line);
}
.pub .modal-title {
  font-weight: 650;
}
.pub .modal-body h6 {
  font-weight: 650;
  margin-top: 18px;
}
.pub .modal-body {
  color: var(--text-2);
}

/* ---- Bildirim kutuları (site.js) ---- */
.toast-alert,
.toast-info {
  position: fixed;
  top: 84px;
  right: 20px;
  z-index: 1080;
  max-width: 380px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  text-align: left !important;
}
.toast-alert {
  border-left: 4px solid #dc2626;
}
.toast-info {
  border-left: 4px solid var(--brand);
}

/* ---- Çerez bandı ---- */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1070;
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 16px 18px;
}
.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-text {
  font-size: 14px;
}
.cookie-text .muted {
  color: var(--muted);
  font-size: 13px;
}
.cookie-actions {
  display: flex;
  gap: 8px;
}

/* ---- Hata sayfaları ---- */
.pub-error {
  min-height: calc(100dvh - 68px - 200px);
  display: grid;
  place-items: center;
  padding: 64px 20px;
  text-align: center;
}
.pub-error-code {
  font-size: 88px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--brand), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
