:root {
  --header-offset: 5.25rem;
  /* Logo referans: #2c3e72 (RGB 44, 62, 114) */
  --brand: #2c3e72;
  --brand-dark: #1e2d52;
  --brand-light: #4a5f9a;
  --brand-soft: #6b7fb8;
  --brand-muted: #8b9bc4;

  --background: #f5f7fb;
  --foreground: #1a2340;
  --surface: #ffffff;
  --surface-light: #eceef4;
  --primary: var(--brand);
  --primary-dark: var(--brand-dark);
  --primary-light: var(--brand-light);
  --accent: var(--brand-soft);
  --accent-soft: var(--brand-muted);
  --muted: #5c6478;
  --border: rgba(44, 62, 114, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

::selection {
  background: rgba(44, 62, 114, 0.18);
  color: var(--foreground);
}

.gradient-text {
  background: linear-gradient(
    135deg,
    var(--brand-dark) 0%,
    var(--brand) 45%,
    var(--brand-light) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(44, 62, 114, 0.06);
}

.card-soft {
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(44, 62, 114, 0.08);
}

.grid-bg {
  background-image:
    linear-gradient(rgba(44, 62, 114, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 62, 114, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}

.glow-orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(90px);
  pointer-events: none;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(44, 62, 114, 0.08);
  border: 1px solid rgba(44, 62, 114, 0.14);
}

.btn-gradient {
  display: inline-block;
  background: linear-gradient(
    135deg,
    var(--brand-dark) 0%,
    var(--brand) 50%,
    var(--brand-light) 100%
  );
  color: #fff;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-gradient:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

a { color: inherit; }

.cta-gradient {
  background: linear-gradient(
    135deg,
    var(--brand-dark) 0%,
    var(--brand) 50%,
    var(--brand-light) 100%
  );
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.85;
  }
}

.animate-float {
  animation: float 5s ease-in-out infinite;
}

.animate-float-delay {
  animation: float 5s ease-in-out 2.5s infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 5s ease-in-out infinite;
}

.hero-gradient {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(74, 95, 154, 0.15), transparent),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(44, 62, 114, 0.1), transparent),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(107, 127, 184, 0.08), transparent),
    linear-gradient(180deg, #eef1f7 0%, #f5f7fb 50%, #ffffff 100%);
}

/* —— Site header —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0.625rem 0.75rem 0;
}

.site-header__wrap {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 0.75rem;
}

@media (min-width: 640px) {
  .site-header {
    padding: 0.75rem 1rem 0;
  }
  .site-header__wrap {
    padding: 0 1.25rem;
  }
}

@media (min-width: 1024px) {
  .site-header__wrap {
    padding: 0 2rem;
  }
}

.site-header__bar {
  border-radius: 1rem;
  padding: 0.5rem 0.75rem;
}

@media (min-width: 768px) {
  .site-header__bar {
    padding: 0.5rem 1rem 0.5rem 1.25rem;
  }
}

.site-header__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
}

.site-header__brand {
  flex: 0 0 auto;
  min-width: 0;
  max-width: 9.5rem;
}

@media (min-width: 1024px) {
  .site-header__brand {
    max-width: 11rem;
  }
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 0;
  text-decoration: none;
}

.site-logo__img {
  display: block;
  height: 2rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.site-logo__img--icon {
  height: 2.25rem;
  width: 2.25rem;
}

.site-logo__text {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.2;
}

@media (max-width: 639px) {
  .site-logo__text {
    display: none;
  }
}

.site-header__nav {
  display: none;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
  min-width: 0;
  padding: 0 0.25rem;
}

@media (min-width: 768px) {
  .site-header__nav {
    display: flex;
  }
}

.site-header__link {
  flex: 0 1 auto;
  padding: 0.4375rem 0.625rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--muted);
  text-decoration: none;
  border-radius: 0.5rem;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

@media (min-width: 1024px) {
  .site-header__link {
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
  }
}

.site-header__link:hover {
  color: var(--primary);
  background: rgba(44, 62, 114, 0.06);
}

.site-header__link.is-active {
  color: var(--primary);
  background: rgba(44, 62, 114, 0.1);
}

.site-header__end {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.5rem;
  margin-left: auto;
}

.site-header__cta {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.125rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none;
  border-radius: 0.75rem;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .site-header__cta {
    display: inline-flex;
  }
}

.site-header__menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: 0.5rem;
  background: rgba(44, 62, 114, 0.06);
  color: var(--foreground);
  cursor: pointer;
  transition: background 0.15s ease;
}

.site-header__menu-btn:hover {
  background: rgba(44, 62, 114, 0.12);
}

@media (min-width: 768px) {
  .site-header__menu-btn {
    display: none;
  }
}

.site-header__menu-icon {
  display: block;
  width: 1.125rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.site-header__mobile {
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 0 0.25rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}

.site-header__mobile:not(.hidden) {
  display: flex;
}

.site-header__mobile-link {
  display: block;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  text-align: center;
  border-radius: 0.5rem;
}

.site-header__mobile-link.is-active,
.site-header__mobile-link:hover {
  color: var(--primary);
  background: rgba(44, 62, 114, 0.08);
}

.site-header__mobile-cta {
  display: block;
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff !important;
  text-align: center;
  text-decoration: none;
  border-radius: 0.75rem;
}

.site-main,
main.pt-28 {
  padding-top: var(--header-offset);
}

@media (min-width: 768px) {
  :root {
    --header-offset: 5.75rem;
  }
}

body.site-header-mobile-open {
  --header-offset: 11rem;
}

/* Sabit header (eski sınıflar — uyumluluk) */
header.fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}

.cta-gradient {
  color: #fff;
  padding: 3rem 1.5rem;
}

.cta-gradient .text-primary {
  color: var(--primary) !important;
}

input.admin-input,
textarea.admin-input,
select.admin-input {
  width: 100%;
  display: block;
}

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

.stat-card {
  text-align: center;
  padding: 1.25rem 1rem;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.stat-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
}

#cookie-banner {
  z-index: 45;
}

#floating-contact {
  z-index: 50;
  bottom: 5.5rem;
}

body.cookie-visible #floating-contact {
  bottom: 5.5rem;
}

/* Admin panel */
.admin-shell {
  background: linear-gradient(180deg, #eef1f7 0%, #f5f7fb 40%, #ffffff 100%);
  min-height: 100vh;
}

.admin-sidebar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border);
  box-shadow: 4px 0 24px rgba(44, 62, 114, 0.06);
}

.admin-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: 0 4px 24px rgba(44, 62, 114, 0.06);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.admin-card:hover {
  box-shadow: 0 8px 32px rgba(44, 62, 114, 0.1);
  border-color: rgba(44, 62, 114, 0.18);
}

.admin-stat-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  box-shadow: 0 4px 20px rgba(44, 62, 114, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.admin-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(44, 62, 114, 0.12);
}

.admin-nav-active {
  background: linear-gradient(
    135deg,
    var(--brand-dark) 0%,
    var(--brand) 50%,
    var(--brand-light) 100%
  );
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(44, 62, 114, 0.25);
}

.admin-input {
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(44, 62, 114, 0.12);
}

.badge-new {
  background: rgba(44, 62, 114, 0.1);
  color: var(--primary);
}
.badge-warn {
  background: #fef3c7;
  color: #92400e;
}
.badge-ok {
  background: #d1fae5;
  color: #065f46;
}
