/* ========== THEME TOKENS ========== */
:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --text: #1c1f24;
  --muted: #6b7280;
  --brand: #3b82f6;      /* primary */
  --brand-600:#2563eb;
  --accent: #22c55e;     /* success-ish accent */
  --soft-ring: rgba(59,130,246,.15);
}
.dark {
  --bg: #0e1116;
  --surface: #141922;
  --text: #e8eef5;
  --muted: #a5b4c3;
  --brand: #60a5fa;
  --brand-600:#3b82f6;
  --accent: #34d399;
  --soft-ring: rgba(96,165,250,.18);
}

html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  transition: background .3s ease, color .3s ease;
}

/* Navbar (Bootstrap üzerinden geliyor; gölge) */
.navbar { box-shadow: 0 6px 18px rgba(0,0,0,.06); }

/* Buttons */
.btn-pill { border-radius: 999px; }
.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
}
.btn-primary:hover { background: var(--brand-600); border-color: var(--brand-600);}
.btn-outline-dark { color: var(--text); border-color: var(--muted); }
.btn-outline-dark:hover { background: var(--surface); }

/* ========== HERO / SLIDER ========== */
.hero-carousel { margin-top: 1rem; }
.hero {
  min-height: 420px;
  background: linear-gradient(180deg, var(--surface), var(--bg));
}
.hero-bg{
  position:absolute; inset:0;
  background-size:cover; background-position:center;
  filter: brightness(.75);
}
.dark .hero-bg{ filter: brightness(.6); }
.hero-content{
  position:relative;
  z-index:2;
  padding: 64px 16px;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,.35);
}
.text-accent{ color: var(--accent); }

/* Carousel indicators color tweak */
.carousel-indicators [data-bs-target]{
  background-color:#fff; opacity:.6;
}
.carousel-indicators .active{ opacity:1; }

/* ========== CARDS / SERVICES ========== */
.card{
  background: var(--surface);
  color: var(--text);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.04);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card-img-top{ border-top-left-radius:16px; border-top-right-radius:16px; max-height:240px; object-fit:cover; }
.card-title{ font-weight: 700; }
.card-body{ padding: 22px; }

/* Tek parça büyüme (resim + yazı birlikte) */
.service-item{ overflow: hidden; }
.service-item:hover{
  transform: translateY(-4px) scale(1.035);
  box-shadow: 0 16px 40px rgba(0,0,0,.10);
  border-color: var(--soft-ring);
}

/* ========== GRADIENT CTA ========== */
.gradient-card{
  background: radial-gradient(600px 200px at 10% 0%, var(--soft-ring), transparent 60%),
              radial-gradient(600px 220px at 90% 10%, rgba(34,197,94,.12), transparent 60%),
              var(--surface);
}

/* ========== ANIMATIONS (scroll reveal) ========== */
[data-animate]{
  opacity:0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-animate].in{ opacity:1; transform:none; }
[data-animate][data-animate-delay="100"]{ transition-delay:.1s; }
[data-animate][data-animate-delay="200"]{ transition-delay:.2s; }

/* Theme toggle tweaks */
#themeToggle{ backdrop-filter: blur(6px); }

/* === HERO CAROUSEL: tam kapla + boşluk yok === */
.hero-carousel{
  position: relative;
  overflow: hidden;          /* taşan kısımlar görünmesin */
  height: 440px;             /* ihtiyaca göre 380–520px arası ayarlayabilirsin */
  border-radius: 16px;
}

/* İç yapıyı tam yükseklik yap */
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item{
  height: 100%;
}

/* .hero içerik kabı min-height yerine tam yükseklik kullansın */
.hero{ 
  height: 100%;
  min-height: unset;         /* önceki min-height:420'yi etkisizleştirir */
  display: flex;
}
.hero-content{
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;   /* dikey ortalama */
}

/* Arka plan zaten .hero-bg ile background-image kullanıyor; kaplama tamam */
.hero-bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.75);
}
.dark .hero-bg{ filter: brightness(.6); }

/* === Sadece oklar tıklansın: control alanını küçük buton yap === */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next{
  width: auto;               /* 15% yerine içerik kadar */
  height: 48px;              /* buton yüksekliği */
  top: 50%; bottom: auto;
  transform: translateY(-50%);
  padding: 10px;
  background: rgba(0,0,0,.35);
  border-radius: 9999px;
  backdrop-filter: blur(2px);
}
.hero-carousel .carousel-control-prev{ left: 12px; }
.hero-carousel .carousel-control-next{ right: 12px; }
.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon{
  width: 28px; height: 28px; background-size: 28px 28px;
}

/* Mobilde yüksekliği biraz düşür */
@media (max-width: 768px){
  .hero-carousel{ height: 360px; }
}

/* ==== Carousel tıklanabilirlik & katman düzeltmeleri ==== */
.hero-carousel { position: relative; }
.hero-carousel .hero-bg { z-index: 1; }
.hero-carousel .hero-content {
  z-index: 2;
  /* İçerik buton/forma izin ver, ama genel olarak kontrolleri kapatma */
  pointer-events: none;
}
/* İçerikteki etkileşimli öğelere tıklanabilsin */
.hero-carousel .hero-content a,
.hero-carousel .hero-content button,
.hero-carousel .hero-content input,
.hero-carousel .hero-content form,
.hero-carousel .hero-content .btn {
  pointer-events: auto;
}

/* Oklar her şeyin ÜSTÜNDE olsun */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  z-index: 6;         /* içerikten de yüksek */
  width: auto;
  height: 48px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  padding: 10px;
  background: rgba(0,0,0,.35);
  border-radius: 9999px;
  backdrop-filter: blur(2px);
}
.hero-carousel .carousel-control-prev { left: 12px; }
.hero-carousel .carousel-control-next { right: 12px; }
.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
  width: 28px; height: 28px; background-size: 28px 28px;
}

/* İndikatörler görünür ve tıklanabilir olsun, içerikten yukarıda dursun */
.hero-carousel .carousel-indicators {
  z-index: 6;
  bottom: 12px; /* form ile çakışmasın diye biraz yukarıda */
}
.hero-carousel .carousel-indicators [data-bs-target]{
  pointer-events: auto;
  opacity: .7;
}
.hero-carousel .carousel-indicators .active { opacity: 1; }

/* Yükseklik/boşluk stabil kalsın (varsa önceki min-height etkisiz) */
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item,
.hero { height: 100%; min-height: unset; }

/* Mobil yükseklik */
@media (max-width: 768px){
  .hero-carousel{ height: 360px; }
}



/* Input-group içindeki yuvarlatma düzeltmesi */
.input-group .form-control.btn-pill {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group .btn.btn-pill {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* Takip formu için özel tasarım */
.input-group-lg .form-control.btn-pill {
  height: 58px;              /* inputu daha büyük yapar */
  font-size: 1.1rem;
  border-radius: 999px !important; /* her zaman yuvarlak */
  padding-left: 20px;
}

.input-group-lg .btn.btn-pill {
  height: 58px;
  font-size: 1.05rem;
  border-radius: 999px !important; /* yuvarlak buton */
  padding: 0 26px;
}

.footer {
  font-size: 0.9rem;
  z-index: 1030; /* navbar üstünde dursun */
}


/* ==== LOGIN PAGE CUSTOM ==== */
.login-wrap { background: #fff; }

.login-left {
  padding: 48px 32px;
  width: 100%;
  max-width: 720px;
}

.login-left h2 {
  font-weight: 700;
}

.login-left p {
  color: #6c757d;
}

.login-hero {
  position: relative;
  width: 55vw;
  min-width: 640px;
  background-image: url('/assets/img/login-hero.png'); /* sağdaki büyük görsel */
  background-size: cover;
  background-position: center;
}

.login-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(1200px 400px at 20% -10%, rgba(255,255,255,0.08), transparent),
              linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.55) 100%);
}

.login-hero-text {
  position: absolute;
  left: 48px;
  bottom: 48px;
  text-shadow: 0 8px 24px rgba(0,0,0,.45);
}

.login-hero-text .display-6 {
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .login-hero { display: none; }
  .login-left { max-width: 100%; padding: 32px 24px; }
}


/* === AUTH (Login/Register) Tam Ekran Arkaplan + Glass Kart === */
:root{
  /* Arka plan görselini buradan değiştir */
  --login-bg: url('/assets/img/login-hero.png');
}

.auth-page{
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Tam ekran görsel */
.auth-page::before{
  content: "";
  position: fixed; inset: 0;
  background: var(--login-bg) center/cover no-repeat fixed;
  z-index: -2;
  transform: translateZ(0);
}

/* Karanlık degrade overlay (okunabilirlik için) */
.auth-page::after{
  content: "";
  position: fixed; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.35), rgba(0,0,0,.55));
  z-index: -1;
}

/* Şeffaf cam efekti kart */
.glass{
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(0,0,0,.28);
}

.dark .glass{
  background: rgba(20,25,34,.55);
  border-color: rgba(255,255,255,.08);
}

/* Kart genişliği + iç boşluk */
.auth-card{
  width: min(92vw, 420px);
  padding: 22px;
}

/* Form alanları (cam kart içinde okunabilirlik) */
.glass .form-control{
  background: rgba(255,255,255,.92);
  border-color: rgba(0,0,0,.08);
  color: #111;
}

.glass .form-control:focus{
  box-shadow: 0 0 0 0.25rem rgba(59,130,246,.25); /* mavi halka */
}

/* Başlık ve alt metinler */
.auth-title{
  font-weight: 700;
  letter-spacing: .2px;
  color: #fff;
  text-align: center;
}

.auth-sub{
  color: rgba(255,255,255,.85);
  text-align: center;
}

/* Logo da ortalansın */
.auth-logo{
  display: block;
  margin: 0 auto 8px auto;
  height: 42px;
}

/* Footer login’de görünürken okunabilir olsun */
.footer.fixed-bottom{
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}


