/* ============================================================
   MODERN UI (2026) — Hero, Cards, CTA, Sections
   ============================================================ */

/* ---- Modern Hero ---- */
.hero-modern {
  position: relative;
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 8vw, 6rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(248, 221, 224, .55), transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(248, 241, 229, .85), transparent 55%),
    var(--color-bg);
  min-height: clamp(600px, 90vh, 900px);
  display: flex;
  align-items: center;
}

/* ---- Hero arkasında admin görseli (naif sinematik) ---- */
.hero-modern.hero-with-bg {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(248, 221, 224, .35), transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(248, 241, 229, .55), transparent 55%),
    var(--color-bg);
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.55;
  z-index: 0;
  /* filter ve sürekli scale animasyonu KALDIRILDI — composite layer + GPU yükü kasma yaratıyordu */
}

/* ---- Çoklu görsel için arka plan stack — sağ vitrin Swiper'ı ile senkron ---- */
.hero-bg-stack {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  filter: saturate(1.05) contrast(1.02);
  /* Crossfade: opacity değişikliği yumuşak, sağ vitrin Swiper'ı ile aynı süre (1200ms) */
  transition: opacity 1.2s cubic-bezier(.4, 0, .2, 1);
  will-change: opacity;
}
.hero-bg-slide.is-active {
  opacity: 0.55;
  /* Ken-Burns animasyonu kaldırıldı — sürekli transform GPU'yu yoruyor.
     Yine de subtle bir Ken-Burns isteniyorsa @keyframes heroBgZoomActive aşağıda hazır. */
}
[data-theme="dark"] .hero-bg-slide.is-active { opacity: 0.42; }

@keyframes heroBgZoomActive {
  from { transform: scale(1.0) translate(0, 0); }
  to   { transform: scale(1.07) translate(-1%, -1.2%); }
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    /* Yazıların arkasında daha yoğun beyazımsı, sağ tarafta hafif şeffaf */
    linear-gradient(105deg,
      rgba(255, 251, 247, 0.92) 0%,
      rgba(255, 251, 247, 0.78) 35%,
      rgba(255, 251, 247, 0.45) 60%,
      rgba(248, 221, 224, 0.35) 100%
    ),
    /* Üstten ve alttan yumuşak fade */
    linear-gradient(180deg,
      rgba(255, 251, 247, 0.35) 0%,
      transparent 25%,
      transparent 75%,
      rgba(255, 251, 247, 0.4) 100%
    );
  z-index: 1;
  pointer-events: none;
}

@keyframes heroBgZoom {
  from { transform: scale(1.0) translate(0, 0); }
  to   { transform: scale(1.08) translate(-1%, -1.5%); }
}

/* Dark mode'da overlay ayarı */
[data-theme="dark"] .hero-bg-overlay {
  background:
    linear-gradient(105deg,
      rgba(26, 16, 20, 0.92) 0%,
      rgba(26, 16, 20, 0.78) 35%,
      rgba(26, 16, 20, 0.5) 60%,
      rgba(60, 40, 45, 0.4) 100%
    ),
    linear-gradient(180deg,
      rgba(26, 16, 20, 0.45) 0%,
      transparent 25%,
      transparent 75%,
      rgba(26, 16, 20, 0.5) 100%
    );
}
[data-theme="dark"] .hero-bg-layer {
  opacity: 0.42;
}

/* Mobil: arka plan biraz daha yoğun overlay (yazı okunsun) */
@media (max-width: 768px) {
  .hero-bg-overlay {
    background:
      linear-gradient(180deg,
        rgba(255, 251, 247, 0.85) 0%,
        rgba(255, 251, 247, 0.65) 60%,
        rgba(255, 251, 247, 0.85) 100%
      );
  }
  [data-theme="dark"] .hero-bg-overlay {
    background:
      linear-gradient(180deg,
        rgba(26, 16, 20, 0.88) 0%,
        rgba(26, 16, 20, 0.7) 60%,
        rgba(26, 16, 20, 0.88) 100%
      );
  }
}

/* prefers-reduced-motion: animasyonu kapat */
@media (prefers-reduced-motion: reduce) {
  .hero-bg-layer { animation: none; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: rgba(255, 255, 255, .92);     /* opaklığı arttır → blur'a gerek kalmadı */
  /* backdrop-filter KALDIRILDI — pill için gereksiz GPU yükü */
  border: 1px solid rgba(201, 162, 39, .25);
  border-radius: 999px;
  padding: .5rem 1.1rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--color-accent-strong);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 14px rgba(201, 162, 39, .12);
}

.hero-eyebrow-dot {
  width: 8px; height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 3s ease-in-out infinite;  /* 1.6s → 3s (yarısı kadar GPU yükü) */
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, .7); }
  50% { box-shadow: 0 0 0 6px rgba(201, 162, 39, 0); }
}

.hero-title-anim {
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.05;
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-family: 'Cormorant Garamond', var(--font-display);
  letter-spacing: -0.01em;
}

.hero-modern .lead {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--color-muted);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.btn-lg-modern {
  padding: .85rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: .01em;
  transition: transform .2s cubic-bezier(.16, 1, .3, 1), box-shadow .25s ease, background .2s ease;
}

.btn-bale.btn-lg-modern {
  box-shadow: 0 10px 24px rgba(201, 162, 39, .35);
}

.btn-bale.btn-lg-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(201, 162, 39, .5);
}

.btn-outline-bale.btn-lg-modern:hover {
  transform: translateY(-2px);
}

/* ---- Hero güven çubuğu ---- */
.hero-trust {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed rgba(201, 162, 39, .35);
  flex-wrap: wrap;
}

.hero-trust-item {
  display: flex;
  flex-direction: column;
}

.hero-trust-label {
  font-size: .85rem;
  color: var(--color-muted);
  margin-top: .15rem;
}

/* ---- Hero görsel ---- */
.hero-visual {
  position: relative;
  padding: 1rem;
}

.hero-visual-frame {
  position: relative;
  z-index: 2;
  border-radius: 50% 50% 24px 24px / 60% 60% 24px 24px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(180deg, rgba(248, 221, 224, .35), rgba(248, 241, 229, .45));
  box-shadow: 0 20px 60px rgba(42, 26, 26, .15);
  border: 8px solid #fff;
}

.hero-visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-deco {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.hero-deco-circle {
  width: 100px; height: 100px;
  background: radial-gradient(circle, var(--color-accent), transparent 70%);
  opacity: .35;
  top: -20px; right: 10%;
  border-radius: 50%;
  filter: blur(20px);
}

.hero-deco-ring {
  width: 80px; height: 80px;
  border: 2px dashed var(--color-accent);
  border-radius: 50%;
  bottom: 10%; left: -20px;
  opacity: .4;
  /* ring-rotate animasyonu KALDIRILDI — sürekli 360° rotate composite layer'a kasma yapıyordu */
}

.hero-deco-dot {
  width: 14px; height: 14px;
  background: var(--color-accent);
  border-radius: 50%;
  bottom: 30%; right: -5px;
  box-shadow: 0 0 0 6px rgba(201, 162, 39, .25);
}

/* ---- Hero gerçek fotoğraf görünümü (admin yüklediği) ---- */
.hero-visual-frame.hero-visual-photo {
  background: #fff;
  box-shadow:
    0 30px 80px rgba(232, 168, 184, .25),
    0 8px 30px rgba(42, 26, 26, .12);
  border-color: #fff;
  position: relative;
}
.hero-visual-frame.hero-visual-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, transparent 60%, rgba(196, 107, 126, .12) 100%);
  pointer-events: none;
}

/* ---- Hero Swiper (carousel) ---- */
.hero-visual-frame .hero-swiper,
.hero-visual-frame .swiper {
  width: 100%;
  height: 100%;
}
.hero-visual-frame .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-visual-frame .swiper-pagination {
  bottom: 16px !important;
}
.hero-visual-frame .swiper-pagination-bullet {
  background: #fff;
  opacity: .55;
  width: 8px; height: 8px;
  transition: background .25s ease, opacity .25s ease, width .25s ease;  /* "all" yerine spesifik prop */
}
.hero-visual-frame .swiper-pagination-bullet-active {
  background: var(--color-accent);
  opacity: 1;
  width: 24px;
  border-radius: 999px;
}

/* ---- Hero scroll indicator ---- */
.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 50px;
  border: 2px solid var(--color-accent);
  border-radius: 999px;
  z-index: 5;
}

.hero-scroll-indicator span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px; height: 8px;
  background: var(--color-accent);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scroll-down 1.8s ease-in-out infinite;
}

@keyframes scroll-down {
  0% { top: 8px; opacity: 1; }
  100% { top: 28px; opacity: 0; }
}

/* ---- Section title ---- */
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px; height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

/* ---- Branch link cards ---- */
.branch-link-card {
  display: block;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem 1.6rem;
  text-align: center;
  color: var(--color-text);
  text-decoration: none;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s ease, border-color .3s ease;
}

.branch-link-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-strong));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

.branch-link-card:hover {
  border-color: var(--color-accent);
  color: var(--color-text);
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(201, 162, 39, .15);
}

.branch-link-card:hover::before {
  transform: scaleX(1);
}

.branch-icon-wrap {
  width: 100px; height: 100px;
  margin: 0 auto 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1);
}

.branch-icon-wrap img {
  width: 70px; height: 70px;
  transition: transform .3s ease;
}

.branch-link-card:hover .branch-icon-wrap img {
  transform: scale(1.08);
}

.branch-bale { background: linear-gradient(135deg, #FFE9A8, #C9A227); }
.branch-jimnastik { background: linear-gradient(135deg, #F8DDE0, #E9B8BE); }
.branch-muzik { background: linear-gradient(135deg, #F8F1E5, #E5D5B5); }

.branch-cta {
  display: inline-block;
  font-weight: 600;
  color: var(--color-accent-strong);
  letter-spacing: .02em;
  transition: padding-right .25s ease;
}

.branch-link-card:hover .branch-cta {
  padding-right: .35rem;
}

/* ---- Why cards ---- */
.why-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.4rem 1.2rem;
  height: 100%;
  border: 1px solid var(--color-border);
  transition: transform .25s ease, border-color .25s ease;
}

.why-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-accent);
}

.why-icon {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, var(--color-primary), rgba(201, 162, 39, .25));
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: .8rem;
}

.why-card h4 {
  font-size: 1.1rem;
  margin-bottom: .35rem;
}

/* ---- Modern event cards ---- */
.event-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.event-card-cover {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.event-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.16, 1, .3, 1);
}

.event-card:hover .event-card-cover img {
  transform: scale(1.06);
}

.event-card-date {
  position: absolute;
  top: 12px; left: 12px;
  background: #fff;                  /* tam opak — blur'a gerek yok */
  /* backdrop-filter KALDIRILDI — küçük element için gereksiz GPU yükü */
  border-radius: var(--radius-sm);
  padding: .35rem .65rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.event-card-day {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-accent-strong);
}

.event-card-month {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--color-muted);
}

.event-card-body {
  padding: 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-card-body h3 {
  font-size: 1.2rem;
  margin-bottom: .5rem;
}

.event-card-body .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ---- CTA Strip ---- */
.cta-strip {
  margin: 4rem 0 0;
  background: linear-gradient(135deg, #2A1A1A 0%, #4a3030 60%, var(--color-accent-strong) 100%);
  position: relative;
  overflow: hidden;
}

.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(201, 162, 39, .25), transparent 60%);
}

.cta-strip-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 3.5rem 0;
}

@media (min-width: 768px) {
  .cta-strip-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.cta-strip h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0;
}

.btn-cta-white {
  background: #fff;
  color: var(--color-accent-strong);
  border: none;
  font-weight: 700;
}

.btn-cta-white:hover {
  background: var(--color-secondary);
  color: var(--color-accent-strong);
  transform: translateY(-2px);
}

/* ---- Empty state ---- */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--color-secondary);
  border-radius: var(--radius-md);
}

.empty-state-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  opacity: .6;
}

/* ---- Mobil navbar ---- */
@media (max-width: 991px) {
  .navbar-mybd .navbar-brand .brand-text {
    font-size: 1rem;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* ---- Mobil hero görsel (vitrin başlığın üstünde) ---- */
@media (max-width: 991px) {
  .hero-modern { padding: 1.5rem 0 2.5rem; min-height: auto; }
  .hero-visual-col { margin-bottom: 0; }
  .hero-visual-col .hero-visual { padding: 0; }
  .hero-visual-col .hero-visual-frame {
    aspect-ratio: 4/3;
    max-width: 380px;
    margin: 0 auto;
    border-radius: 22px 22px 22px 22px / 60px 60px 22px 22px;
    border-width: 6px;
  }
  .hero-visual-col .hero-deco { display: none; } /* mobil — küçük dekoratif elemanları gizle */
  .hero-bg-overlay {
    /* mobilde overlay daha şeffaf — admin görsel görünür kalsın */
  }
}

@media (max-width: 575px) {
  .hero-visual-col .hero-visual-frame {
    aspect-ratio: 4/3;
    max-width: 300px;
    border-radius: 18px 18px 18px 18px / 40px 40px 18px 18px;
    border-width: 5px;
  }
}
