/* BCT YAPI - Patch CSS (animasyonlu logo) */

/* ============ BCT (beyaz) + subtle glow pulse ============ */
.bct-text-bct {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
  animation: bctWhiteGlow 3.8s ease-in-out infinite;
}
@keyframes bctWhiteGlow {
  0%, 100% { text-shadow: 0 1px 2px rgba(0,0,0,0.35), 0 0 0 rgba(255,255,255,0); }
  50%      { text-shadow: 0 1px 2px rgba(0,0,0,0.35), 0 0 14px rgba(255,255,255,0.65); }
}

/* ============ YAPI (akan altın + parlak ışık bandı) ============ */
.bct-text-yapi {
  background: linear-gradient(
    100deg,
    #8b6914 0%,
    #d4af37 18%,
    #f9e199 38%,
    #fff6c4 50%,
    #f9e199 62%,
    #d4af37 82%,
    #8b6914 100%
  ) !important;
  background-size: 300% 100% !important;
  -webkit-background-clip: text !important;
          background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  animation: bctGoldFlow 3s linear infinite;
}
@keyframes bctGoldFlow {
  0%   { background-position: 150% 50%; }
  100% { background-position: -150% 50%; }
}

/* ============ Navbar logosu üzerinde ışık sweep ============ */
a[data-testid="logo"] {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 4px 6px;
  border-radius: 6px;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
}
a[data-testid="logo"]:hover {
  transform: translateY(-1px) scale(1.04);
}
a[data-testid="logo"]::after {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 55%; height: 100%;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(255,255,255,0.18) 42%,
    rgba(255,255,255,0.45) 50%,
    rgba(255,255,255,0.18) 58%,
    transparent 100%
  );
  transform: skewX(-18deg);
  animation: bctShineSweep 4.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes bctShineSweep {
  0%, 70%, 100% { left: -120%; }
  85%           { left: 140%; }
}

/* ============ FOOTER LOGO (aynı animasyonlar) ============ */
footer .logo-letter-orange,
footer h2 .logo-letter-orange {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  animation: bctWhiteGlow 3.8s ease-in-out infinite;
}

footer .logo-letter-yapi,
footer h2 .logo-letter-yapi {
  background: linear-gradient(
    100deg,
    #8b6914 0%,
    #d4af37 18%,
    #f9e199 38%,
    #fff6c4 50%,
    #f9e199 62%,
    #d4af37 82%,
    #8b6914 100%
  ) !important;
  background-size: 300% 100% !important;
  -webkit-background-clip: text !important;
          background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  animation: bctGoldFlow 3s linear infinite;
}

/* ============================================================
   HERO / SLIDER MODERN MAKYAJ
   ============================================================ */

/* Hero yüksekliğini düşür (eskiden 1000px+ idi, çok uzundu) */
.bct-hero-modern {
  min-height: 560px !important;
  height: 78vh !important;
  max-height: 760px !important;
}
@media (max-width: 768px) {
  .bct-hero-modern {
    min-height: 480px !important;
    height: 86vh !important;
    max-height: 640px !important;
  }
}

/* Hero arka plan görüntü kalitesini artır */
.bct-hero-modern .hero-bg {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  /* GPU katmanı ve net render */
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  image-rendering: -webkit-optimize-contrast;
  /* Hafif kontrast/satürasyon artışı = algılanan netlik */
  filter: contrast(1.06) saturate(1.08) brightness(1.02);
  will-change: transform, opacity;
}

/* Daha hafif gradient overlay - görsel daha net görünsün */
.bct-hero-modern .hero-gradient,
.bct-hero-modern > div[class*="hero-gradient"] {
  background:
    radial-gradient(ellipse at 18% 75%, rgba(255,90,0,0.10) 0%, transparent 55%),
    linear-gradient(105deg, rgba(8,8,12,0.62) 0%, rgba(8,8,12,0.30) 50%, rgba(8,8,12,0.10) 80%, rgba(8,8,12,0.32) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.42) 100%) !important;
}

/* Ken Burns zoom: çok hafif (1.03) - görsel netliğini bozmasın */
.bct-hero-modern .hero-bg {
  transition: opacity 1s ease;
}
.bct-hero-modern .hero-bg.active,
.bct-hero-modern .hero-bg.opacity-100 {
  animation: bctKenBurns 18s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes bctKenBurns {
  0%   { transform: scale(1.0)  translate3d(0,0,0); }
  100% { transform: scale(1.03) translate3d(-0.6%, -0.4%, 0); }
}

/* İçerik konteynerinin alt boşluğunu küçült */
.bct-hero-modern .relative.z-10 {
  padding-bottom: 3rem !important;
}
@media (min-width: 640px) {
  .bct-hero-modern .relative.z-10 {
    padding-bottom: 4rem !important;
  }
}

/* Başlık fontunu da makul boyutta tutalım (overflow olmasın) */
.bct-hero-modern .relative.z-10 h1 {
  font-size: clamp(2.25rem, 5vw, 4.25rem) !important;
  line-height: 1.05 !important;
  margin-bottom: 0.75rem !important;
}

/* ---- Kicker badge (üst etiket) ---- */
.bct-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  margin-bottom: 28px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  width: fit-content;
  animation: bctFadeUp 800ms cubic-bezier(.2,.8,.2,1) both;
}
.bct-kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FF5A00;
  box-shadow: 0 0 0 0 rgba(255,90,0,0.7);
  animation: bctPulseDot 1.8s ease-in-out infinite;
}
@keyframes bctPulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,90,0,0.7); }
  50%      { box-shadow: 0 0 0 8px rgba(255,90,0,0); }
}
.bct-kicker-text {
  color: rgba(255,255,255,0.92);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  font-family: 'Outfit','Inter',system-ui,sans-serif;
  text-transform: uppercase;
}

/* ---- Hero başlık tipografisi: gradient accent ---- */
.bct-hero-modern .relative.z-10 h1,
.bct-hero-modern .relative.z-10 [class*="text-5xl"],
.bct-hero-modern .relative.z-10 [class*="text-6xl"],
.bct-hero-modern .relative.z-10 [class*="text-7xl"] {
  letter-spacing: -0.035em !important;
  text-shadow: 0 4px 28px rgba(0,0,0,0.45);
}

/* Başlık + alt başlık + butonlar fade-up animasyon (slide değişiminde) */
.bct-hero-modern [data-bct-hero-content] > * {
  animation: bctFadeUp 900ms cubic-bezier(.2,.8,.2,1) both;
}
.bct-hero-modern [data-bct-hero-content].bct-hero-anim > *:nth-child(1) { animation-delay: 0.05s; }
.bct-hero-modern [data-bct-hero-content].bct-hero-anim > *:nth-child(2) { animation-delay: 0.18s; }
.bct-hero-modern [data-bct-hero-content].bct-hero-anim > *:nth-child(3) { animation-delay: 0.30s; }
.bct-hero-modern [data-bct-hero-content].bct-hero-anim > *:nth-child(4) { animation-delay: 0.42s; }
.bct-hero-modern [data-bct-hero-content].bct-hero-anim > *:nth-child(5) { animation-delay: 0.54s; }
@keyframes bctFadeUp {
  0%   { opacity: 0; transform: translate3d(0, 28px, 0); filter: blur(8px); }
  100% { opacity: 1; transform: translate3d(0, 0, 0);   filter: blur(0); }
}

/* ---- Modern butonlar (hero) ---- */
.bct-hero-modern .btn-modern.btn-filled {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #FF5A00 0%, #FF8A3D 100%) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  box-shadow:
    0 10px 30px -8px rgba(255,90,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.25) !important;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s ease !important;
}
.bct-hero-modern .btn-modern.btn-filled::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 80%; height: 100%;
  background: linear-gradient(110deg,
    transparent 0%, rgba(255,255,255,0.25) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
  pointer-events: none;
}
.bct-hero-modern .btn-modern.btn-filled:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 18px 40px -8px rgba(255,90,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.3) !important;
}
.bct-hero-modern .btn-modern.btn-filled:hover::before { left: 130%; }

.bct-hero-modern .btn-modern.btn-outline {
  background: rgba(255,255,255,0.06) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.35) !important;
  color: #fff !important;
  transition: all 0.4s cubic-bezier(.2,.8,.2,1) !important;
}
.bct-hero-modern .btn-modern.btn-outline:hover {
  background: rgba(255,255,255,0.16) !important;
  border-color: rgba(255,255,255,0.6) !important;
  transform: translateY(-3px) scale(1.02);
}

/* ---- Modern pagination çubukları (slide indicators) ---- */
.bct-hero-modern button.h-1.rounded-full {
  height: 3px !important;
  border-radius: 2px !important;
  position: relative;
  overflow: hidden;
  transition: width 0.6s cubic-bezier(.2,.8,.2,1), background-color 0.4s ease !important;
}
.bct-hero-modern button.h-1.rounded-full.bg-\[\#FF5A00\] {
  width: 60px !important;
  background: rgba(255,255,255,0.18) !important;
  box-shadow: 0 0 12px rgba(255,90,0,0.5);
}
/* Aktif çubuğun içine ilerleyen turuncu progress bar */
.bct-hero-modern button.h-1.rounded-full.bg-\[\#FF5A00\]::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  height: 100%; width: 100%;
  background: linear-gradient(90deg, #FF5A00 0%, #FFB37A 100%);
  transform-origin: left center;
  animation: bctSlideProgress 6s linear infinite;
}
@keyframes bctSlideProgress {
  0%   { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}
.bct-hero-modern button.h-1.rounded-full.bg-white\/30 {
  width: 22px !important;
  background: rgba(255,255,255,0.28) !important;
}
.bct-hero-modern button.h-1.rounded-full.bg-white\/30:hover {
  background: rgba(255,255,255,0.55) !important;
  width: 32px !important;
}

/* "01 / 03" sayaç stilini biraz daha modern */
.bct-hero-modern .relative.z-10 [class*="text-white\\/60"],
.bct-hero-modern .relative.z-10 .text-white\/60 {
  font-family: 'Outfit','Inter',system-ui,sans-serif;
  letter-spacing: 0.25em !important;
  font-weight: 600 !important;
  font-size: 12px !important;
}

/* ---- Scroll-down indicator (hero alt sağ) ---- */
.bct-scroll-indicator {
  position: absolute;
  right: 32px;
  bottom: 32px;
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: rgba(255,255,255,0.78);
  transition: color 0.3s ease;
}
.bct-scroll-indicator:hover { color: #fff; }
.bct-scroll-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  font-family: 'Outfit','Inter',system-ui,sans-serif;
  text-transform: uppercase;
}
.bct-scroll-line {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.25);
  position: relative;
  overflow: hidden;
}
.bct-scroll-dot {
  position: absolute;
  top: -10px;
  left: -2px;
  width: 5px;
  height: 12px;
  border-radius: 3px;
  background: #FF5A00;
  box-shadow: 0 0 12px rgba(255,90,0,0.7);
  animation: bctScrollDot 2.2s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes bctScrollDot {
  0%   { top: -12px; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { top: 70px; opacity: 0; }
}

/* Mobile düzenlemeler */
@media (max-width: 640px) {
  .bct-hero-kicker { padding: 6px 12px; margin-bottom: 18px; }
  .bct-kicker-text { font-size: 10px; letter-spacing: 0.16em; }
  .bct-scroll-indicator { display: none; }
}

/* ============================================================
   ÖZEL LOGO (admin'den yüklenmiş)
   ============================================================ */
.bct-custom-logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}
.bct-custom-logo-mobile { height: 36px; }
.bct-custom-logo-footer { height: 56px; max-width: 280px; }

/* Eğer custom logo yüklenmişse, navbar logosundaki shine sweep ve animasyonları sıfırla */
a[data-testid="logo"][data-bct-logo-img] { padding: 0; }
a[data-testid="logo"][data-bct-logo-img]::after { display: none; }
a[data-testid="logo"][data-bct-logo-img] .bct-text-bct,
a[data-testid="logo"][data-bct-logo-img] .bct-text-yapi { display: none !important; }

/* ============================================================
   ADMIN LOGO UPLOADER WIDGET
   ============================================================ */
#bct-logo-uploader.bct-logo-card {
  background: #ffffff;
  border: 1px solid #e6e8ee;
  border-radius: 16px;
  padding: 24px;
  margin: 0 0 24px 0;
  box-shadow: 0 2px 8px rgba(15,23,42,0.04);
  font-family: 'Outfit','Inter',system-ui,sans-serif;
  color: #0f172a;
}
.bct-logo-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}
.bct-logo-card-head h3 {
  margin: 0 0 4px 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.bct-logo-card-head p {
  margin: 0;
  color: #64748b;
  font-size: 13.5px;
  line-height: 1.5;
}
.bct-logo-badge {
  background: linear-gradient(135deg, #FF5A00, #FF8A3D);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 14px -4px rgba(255,90,0,0.5);
}
.bct-logo-preview {
  width: 100%;
  min-height: 120px;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  background:
    repeating-conic-gradient(#f1f5f9 0% 25%, #f8fafc 0% 50%) 0/16px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  margin-bottom: 14px;
  overflow: hidden;
}
.bct-logo-preview img {
  max-height: 110px;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
.bct-logo-preview-empty {
  color: #94a3b8;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.bct-logo-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.bct-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.bct-btn-primary {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(15,23,42,0.4);
}
.bct-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -6px rgba(15,23,42,0.5);
}
.bct-btn-ghost {
  background: #f1f5f9;
  color: #475569;
}
.bct-btn-ghost:hover { background: #e2e8f0; }
.bct-logo-status {
  margin-left: 4px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  min-height: 18px;
}
.bct-logo-status-ok  { color: #059669; }
.bct-logo-status-err { color: #dc2626; }
.bct-logo-status-info{ color: #2563eb; }
.bct-logo-hint {
  margin-top: 12px;
  color: #94a3b8;
  font-size: 12px;
}
