/* Telekom 19 — tema değişkenleri, animasyonlar, köprü sınıfları */

/* Küçük ekranlarda yatay konum uyarısı (kaynak site ile uyumlu) */
.orientation-notice {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
  text-align: center;
}

.orientation-notice-inner {
  max-width: 22rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: var(--surface);
  color: var(--text);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

html.dark .orientation-notice-inner {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

@media (max-width: 900px) and (orientation: landscape) {
  .orientation-notice {
    display: flex;
  }
}

/* Mobil menü: üst çubuktan aşağı kayarak açılır, kapanırken yukarı kayar */
.mobile-menu-panel {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--mobile-menu-top, 7.5rem);
  z-index: 40;
  transform: translate3d(0, -100%, 0);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

.mobile-menu-panel.is-open {
  transform: translate3d(0, 0, 0);
  opacity: 1;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu-panel {
    transition-duration: 0.01ms;
  }
}

/* Logolar: önceki boyut × 1.75 (%75 büyütme). CDN img kurallarına karşı !important + body sonunda link */
img.site-logo-img {
  display: block !important;
  width: auto !important;
  height: 5.6875rem !important;
  min-height: 5.6875rem !important;
  max-height: none !important;
  max-width: min(96vw, 45.5rem) !important;
  flex-shrink: 0 !important;
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 640px) {
  img.site-logo-img {
    height: 6.5625rem !important;
    min-height: 6.5625rem !important;
    max-width: 52.5rem !important;
  }
}

@media (min-width: 1024px) {
  img.site-logo-img {
    height: 7.875rem !important;
    min-height: 7.875rem !important;
    max-width: 59.5rem !important;
  }
}

img.footer-logo-img {
  display: block !important;
  width: auto !important;
  height: 6.5625rem !important;
  min-height: 6.5625rem !important;
  max-height: none !important;
  max-width: min(96vw, 52.5rem) !important;
  flex-shrink: 0 !important;
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 640px) {
  img.footer-logo-img {
    height: 7.875rem !important;
    min-height: 7.875rem !important;
    max-width: 59.5rem !important;
  }
}

@media (min-width: 1024px) {
  img.footer-logo-img {
    height: 9.625rem !important;
    min-height: 9.625rem !important;
    max-width: 66.5rem !important;
  }
}

/* Sabit navbar yüksekliği kadar içerik kaydırması (JS: --site-header-h) */
html {
  scroll-padding-top: var(--site-header-h, 9rem);
}

#main {
  padding-top: calc(var(--site-header-h, 9rem) + 0.75rem);
}

:root {
  --bg: #f4f8fc;
  --surface: #ffffff;
  --surface-subtle: #e8f0f8;
  --header-bg: rgba(255, 255, 255, 0.85);
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #cbd5e1;
  --accent: #0891b2;
  --accent-hover: #0e7490;
}

html.dark {
  --bg: #0b1220;
  --surface: #111b2e;
  --surface-subtle: #0f172a;
  --header-bg: rgba(15, 23, 42, 0.88);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #1e3a5f;
  --accent: #22d3ee;
  --accent-hover: #67e8f9;
}

html {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: 0.5rem;
  transition: left 0.2s;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.text-gradient {
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html.dark .text-gradient {
  background: linear-gradient(135deg, #22d3ee, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-gradient {
  background: linear-gradient(
    165deg,
    var(--bg) 0%,
    var(--surface-subtle) 45%,
    var(--bg) 100%
  );
}

.hero-glow {
  background: radial-gradient(
    ellipse 80% 50% at 70% 20%,
    rgba(6, 182, 212, 0.18),
    transparent 55%
  );
}

html.dark .hero-glow {
  background: radial-gradient(
    ellipse 80% 50% at 70% 20%,
    rgba(34, 211, 238, 0.12),
    transparent 55%
  );
}

.btn-primary {
  background: linear-gradient(135deg, #0891b2, #2563eb);
  box-shadow: 0 10px 40px -10px rgba(8, 145, 178, 0.45);
}

html.dark .btn-primary {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  box-shadow: 0 10px 40px -10px rgba(34, 211, 238, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.nav-link {
  position: relative;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.floating-card {
  animation: floatY 4s ease-in-out infinite;
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.hero-image-wrap {
  animation: fadeInUp 0.8s ease-out both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tema ikonları: açık temada ay, koyu temada güneş */
html.dark .theme-btn .light-icon {
  display: none;
}

html.dark .theme-btn .dark-icon {
  display: inline-block !important;
}

html:not(.dark) .theme-btn .dark-icon {
  display: none !important;
}

html:not(.dark) .theme-btn .light-icon {
  display: inline-block !important;
}

.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
}

/* SweetAlert2 — temaya uyum */
html.dark .swal2-popup {
  background: var(--surface) !important;
  color: var(--text) !important;
  border: 1px solid var(--border);
}

html.dark .swal2-title {
  color: var(--text) !important;
}

html.dark .swal2-html-container {
  color: var(--text-muted) !important;
}

html.dark .swal2-confirm {
  background: linear-gradient(135deg, #06b6d4, #3b82f6) !important;
}
