/* ==========================================================================
   DENTALINS — PAGE HEADER (page-header.css)
   Tüm iç sayfalarda kullanılan kompakt dark header banner.
   Breadcrumb + sayfa başlığı + isteğe bağlı alt başlık.
   BEM: .page-header
   ========================================================================== */

.page-header {
  position: relative;
  background:
    radial-gradient(ellipse 90% 80% at 0% 110%, rgba(5, 160, 214, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 100% -10%, rgba(5, 160, 214, 0.08) 0%, transparent 50%),
    linear-gradient(160deg, var(--color-secondary-800) 0%, var(--color-secondary-900) 100%);
  padding-top: 120px;
  padding-bottom: var(--space-14);
  /* overflow: visible — deco logo alt kenardan taşar */
  overflow: visible;
}

/* Dekoratif dalgalı çizgiler */
.page-header__waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.page-header__wave {
  fill: none;
  stroke: rgba(5, 160, 214, 0.15);
  stroke-linecap: round;
}

.page-header__wave--1 { stroke-width: 1.2; }
.page-header__wave--2 { stroke-width: 0.8; stroke: rgba(5, 160, 214, 0.10); }
.page-header__wave--3 { stroke-width: 1; stroke: rgba(5, 160, 214, 0.07); }

/* Grid overlay */
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(5, 160, 214, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 160, 214, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Alt soluk geçiş */
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(3, 9, 22, 0.3));
  pointer-events: none;
  z-index: 0;
}

.page-header__inner {
  position: relative;
  z-index: 2;
  /* Deco artık position:absolute olduğundan sadece text bloğu akışta */
}

.page-header__text {
  max-width: 620px;
  /* Deco'nun (z-index: 0) üstünde kal */
  position: relative;
  z-index: 2;
}

/* Dev dekoratif logo — absolute, alt kenardan taşar */
.page-header__deco {
  position: absolute;
  /* Sağ tarafta, hafif merkeze doğru */
  right: 4%;
  bottom: -100px;
  pointer-events: none;
  user-select: none;
  display: none;
  align-items: center;
  justify-content: center;
  /* z-index: 0 — metnin arkasında kal */
  z-index: 0;
}

@media (min-width: 900px) {
  .page-header__deco {
    display: flex;
    right: 6%;
    bottom: -110px;
  }
}

@media (min-width: 1200px) {
  .page-header__deco {
    bottom: -50px;
  }
}

/* Glow halkası */
.page-header__deco::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgb(5 160 214 / 22%) 0%, transparent 68%);
    pointer-events: none;
    z-index: 12312312312312312;
}

/* İnce pulse halkası */
.page-header__deco::after {
      content: '';
    position: absolute;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    border: 1px solid var(--color-primary-400);
    pointer-events: none;
    box-shadow: var(--shadow-primary-lg);
    background: #000000;
}

@keyframes deco-pulse {
  0%, 100% { transform: scale(1);    opacity: 0.5; }
  50%       { transform: scale(1.07); opacity: 1;   }
}

.page-header__deco-logo {
    width: 400px;
    height: 400px;
    object-fit: contain;
    position: relative;
    z-index: 12321312;
}

@media (min-width: 1200px) {
  .page-header__deco-logo {

            width: 360px;
        height: 320px;
    }
  

  .page-header__deco::before {
    width: 350px;
    height: 350px;
  }

  .page-header__deco::after {
    width: 420px;
    height: 420px;
  }
}

/* -----------------------------------------------------------------------
   META CHIPS — Hızlı özet bilgiler
   ----------------------------------------------------------------------- */

.page-header__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
  max-width: 550px;
}

.page-header__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px var(--space-3);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.01em;
}

.page-header__meta-item svg {
  color: var(--color-primary-400);
  flex-shrink: 0;
}

.page-header__meta-item strong {
  color: rgba(255, 255, 255, 0.85);
  font-weight: var(--weight-semibold);
}

/* -----------------------------------------------------------------------
   BREADCRUMB
   ----------------------------------------------------------------------- */

.breadcrumb {
  display: inline-flex;
  align-items: center;
  list-style: none;
  padding: 4px var(--space-3) 4px var(--space-2);
  margin: 0 0 var(--space-6);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-full);
  gap: 0;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}

.breadcrumb__item--current {
  color: var(--color-primary-300);
  font-weight: var(--weight-semibold);
  padding: 0 var(--space-1);
}

.breadcrumb__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.50);
  text-decoration: none;
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.breadcrumb__link:hover {
  color: rgba(255, 255, 255, 0.90);
  background: rgba(255, 255, 255, 0.08);
}

/* Ayraç <li> — chevron SVG içerir */
.breadcrumb__sep {
  display: flex;
  align-items: center;
  padding: 0 3px;
  color: rgba(255, 255, 255, 0.30);
  flex-shrink: 0;
}

/* -----------------------------------------------------------------------
   TITLE BLOCK
   ----------------------------------------------------------------------- */

.page-header__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4);
  background: rgba(5, 160, 214, 0.10);
  border: 1px solid rgba(5, 160, 214, 0.22);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-primary-300);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  margin-bottom: var(--space-4);
}

.page-header__title {
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-neutral-0);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-4);
}

.page-header__title-highlight {
  background: linear-gradient(135deg, var(--color-primary-300) 0%, var(--color-primary-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header__subtitle {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.55);
  line-height: var(--leading-relaxed);
}

/* -----------------------------------------------------------------------
   RESPONSIVE
   ----------------------------------------------------------------------- */

@media (min-width: 768px) {
  .page-header {
    padding-bottom: var(--space-16);
  }

  .page-header__title {
    font-size: var(--text-5xl);
  }

  .page-header__subtitle {
    font-size: var(--text-md);
  }
}

/* Tüm iç sayfa hero'ları masaüstünde aynı yükseklikte görünsün */
@media (min-width: 1024px) {
  .page-header {
    min-height: 500px;
  }
}

@media (max-width: 479px) {
  .page-header {
    padding-top: 100px;
    padding-bottom: var(--space-10);
  }

  .page-header__title {
    font-size: var(--text-3xl);
  }
}

@media (max-width: 360px) {
  .page-header__title {
    font-size: var(--text-2xl);
  }
}


/* -----------------------------------------------------------------------
   ATMOSPHERIC PHOTO — çift eksen maskeli atmosferik arka plan görseli
   position:absolute; metin akışını bozmaz; sadece masaüstünde görünür.
   .page-header__photo  >  img
   ----------------------------------------------------------------------- */

.page-header__photo {
  display: none;
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 58%;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  overflow: hidden;
  /* Soldan ve üstten çift eksen erime */
  -webkit-mask-image:
    linear-gradient(to right,  transparent 0%, black 52%),
    linear-gradient(to bottom, transparent 0%, black 35%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right,  transparent 0%, black 52%),
    linear-gradient(to bottom, transparent 0%, black 35%);
  mask-composite: intersect;
}

@media (min-width: 1024px) {
  .page-header__photo { display: block; }
}

.page-header__photo img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.22;
  mix-blend-mode: luminosity;
}

/* -----------------------------------------------------------------------
   PAGE-HEADER MINI SHOWCASE
   hero__visual'ın minimize edilmiş hali — tüm iç sayfalarda kullanılır.
   BEM: .page-header__visual  __visual-glow  __showcase  __showcase-img
   ----------------------------------------------------------------------- */

/* __inner'ı 2-sütunlu flex'e dönüştür (sadece visual varsa) */
@media (min-width: 1024px) {
  .page-header__inner:has(.page-header__visual) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-10);
  }

  .page-header__inner:has(.page-header__visual) .page-header__text {
    flex: 0 1 560px;
    max-width: 560px;
  }
}

/* Wrapper — mobilde gizli */
.page-header__visual {
  display: none;
  position: relative;
  flex-shrink: 0;
  z-index: 2;
}

@media (min-width: 1024px) {
  .page-header__visual {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    align-self: center;
  }
}

/* Mavi ışıma — hero'daki ile aynı ama sayfa başlığına orantılı */
.page-header__visual-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(
    ellipse 70% 60% at 50% 50%,
    rgba(5, 160, 214, 0.20) 0%,
    rgba(5, 160, 214, 0.07) 45%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
  animation: phGlowPulse 8s ease-in-out infinite;
}

@keyframes phGlowPulse {
  0%, 100% { opacity: 1;   transform: translate(-50%, -50%) scale(1);    }
  50%       { opacity: 0.6; transform: translate(-50%, -50%) scale(1.06); }
}

/* Showcase frame — çift offset border + görsel */
.page-header__showcase {
  position: relative;
  z-index: 2;
  width: 320px;
}

@media (min-width: 1280px) {
  .page-header__showcase {
    width: 380px;
  }
}

/* İlk offset çerçeve — birincil, mavi kenarlık */
.page-header__showcase::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  background: linear-gradient(
    145deg,
    rgba(5, 160, 214, 0.12) 0%,
    rgba(5, 160, 214, 0.04) 60%,
    transparent 100%
  );
  border: 1.5px solid rgba(5, 160, 214, 0.22);
  z-index: -1;
  pointer-events: none;
}

/* İkinci offset çerçeve — daha soluk, daha büyük */
.page-header__showcase::after {
  content: '';
  position: absolute;
  top: -22px;
  left: -22px;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  border: 1px solid rgba(5, 160, 214, 0.08);
  z-index: -2;
  pointer-events: none;
}

/* Görsel */
.page-header__showcase-img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 14px;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(5, 160, 214, 0.12),
    0 0 32px rgba(5, 160, 214, 0.10);
  transition:
    transform var(--transition-image),
    box-shadow var(--transition-hover);
}

@media (min-width: 1280px) {
  .page-header__showcase-img {
    height: 272px;
  }
}

.page-header__visual:hover .page-header__showcase-img {
  transform: scale(1.025);
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(5, 160, 214, 0.18),
    0 0 42px rgba(5, 160, 214, 0.16);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .page-header__deco-logo {
    animation: none;
  }

  .page-header__visual-glow {
    animation: none;
  }

  .page-header__showcase-img {
    transition: none;
  }
}

