/* =============================================================
   DENTAL INSIGHT THEME — Page-Specific Styles
   ============================================================= */

/* ══════════════════════════════════════════════════════════
   ALL PAGES — Shared page chrome
   ══════════════════════════════════════════════════════════ */

/* Page hero band — shared across interior pages */
.page-hero {
  padding-top: calc(var(--navbar-height) + var(--space-20));
  padding-bottom: var(--space-20);
  position: relative;
  overflow: hidden;
}

.page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-5);
}

.page-hero__title {
  margin-bottom: var(--space-6);
}

.page-hero__desc {
  font-size: clamp(var(--font-size-base), 1.5vw, var(--font-size-md));
  color: var(--color-text-muted);
  max-width: 60ch;
  margin-bottom: var(--space-10);
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

/* ── Decorative grid mesh overlay ───────────────────────── */
.mesh-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 180, 166, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 180, 166, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

/* ══════════════════════════════════════════════════════════
   HOME — front-page.php / index.html
   Cinematic 2-column hero with panoramic dental X-ray
   ══════════════════════════════════════════════════════════ */

/* ── Outer shell ─────────────────────────────────────── */
.home-hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--navbar-height);
  padding-bottom: var(--space-16);
}

/* ── Decorative ambient blobs ─────────────────────────── */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  animation: glowPulse 10s ease-in-out infinite;
}

.hero-blob--left {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(0,180,166,0.18) 0%, transparent 70%);
  top: -100px;
  left: -220px;
}

.hero-blob--right {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(0,102,255,0.10) 0%, transparent 70%);
  bottom: -80px;
  right: -160px;
  animation-delay: -4s;
}

/* ── 2-column inner grid ──────────────────────────────── */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 4vw, var(--space-16));
  align-items: center;
  width: 100%;
  position: relative;
  z-index: var(--z-raised);
}

/* ══════════════════════════════════════════════════════════
   LEFT COLUMN — Text content
   ══════════════════════════════════════════════════════════ */
.hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* Kicker badge */
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  align-self: flex-start;
  padding: var(--space-2) var(--space-4);
  background: rgba(0, 180, 166, 0.08);
  border: 1px solid rgba(0, 180, 166, 0.22);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
  color: var(--color-primary);
  opacity: 0; /* GSAP sets to 1 */
}

.hero__kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 8px var(--color-primary);
  flex-shrink: 0;
  animation: glowPulse 2s ease-in-out infinite;
}

/* Main headline */
.hero__headline {
  font-size: clamp(var(--font-size-3xl), 4.5vw, var(--font-size-6xl));
  font-weight: var(--font-weight-black);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-white);
  /* SplitText overflow container */
  overflow: hidden;
  margin: 0;
}

/* Each SplitText line wrapper inherits this */
.hero__headline .split-line-wrap {
  overflow: hidden;
  display: block;
}

/* Sub headline */
.hero__sub {
  font-size: clamp(var(--font-size-base), 1.6vw, var(--font-size-md));
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
  max-width: 44ch;
  margin: 0;
  opacity: 0; /* GSAP sets to 1 */
}

/* CTA row */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  opacity: 0; /* GSAP sets to 1 */
}

/* ── Inline stats row ─────────────────────────────────── */
.hero__stats {
  display: flex;
  align-items: flex-start;
  gap: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-2);
  opacity: 0; /* GSAP sets to 1 */
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.hero__stat-value {
  font-size: clamp(var(--font-size-xl), 2.2vw, var(--font-size-3xl));
  font-weight: var(--font-weight-black);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-primary);
  line-height: 1;
}

.hero__stat-label {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  white-space: nowrap;
}

.hero__stat-divider {
  width: 1px;
  height: 40px;
  background: var(--color-border);
  align-self: center;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   RIGHT COLUMN — X-Ray Visual
   ══════════════════════════════════════════════════════════ */
.hero__visual {
  position: relative;
  opacity: 0; /* GSAP sets to 1 */
}

/* Outer ambient glow behind panel */
.xray-panel-glow {
  position: absolute;
  inset: -40px;
  border-radius: 40px;
  background: radial-gradient(ellipse 80% 60% at 50% 50%,
    rgba(0,180,166,0.10) 0%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Glass panel ──────────────────────────────────────── */
.xray-panel {
  position: relative;
  z-index: 1;
  background: #030c15;
  border: 1px solid rgba(0, 180, 166, 0.18);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 180, 166, 0.04),
    0 24px 80px rgba(0, 0, 0, 0.65),
    0 4px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

/* ── HUD header ───────────────────────────────────────── */
.xray-panel__hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-5);
  background: rgba(0, 180, 166, 0.04);
  border-bottom: 1px solid rgba(0, 180, 166, 0.10);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  color: rgba(0, 180, 166, 0.75);
  gap: var(--space-4);
  user-select: none;
}

.xray-hud__brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  color: var(--color-primary);
}

.xray-hud__id {
  font-size: 9px;
  color: rgba(0, 180, 166, 0.55);
}

.xray-hud__status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 9px;
}

/* Live pulsing indicator dot */
.xray-hud__live-dot,
.xray-hud__status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: glowPulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

/* ── SVG illustration body ────────────────────────────── */
.xray-panel__body {
  position: relative;
  overflow: hidden;
  line-height: 0; /* remove inline gap */
}

.xray__illustration {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Animated scan line ───────────────────────────────── */
.xray-scan-line {
  position: absolute;
  top: 0;
  bottom: 0;
  /* GSAP animates left: -4px → 100% */
  left: -4px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent     0%,
    rgba(0,180,166,0.3) 15%,
    rgba(0,180,166,0.95) 50%,
    rgba(0,180,166,0.3) 85%,
    transparent     100%
  );
  box-shadow:
    0 0 6px  3px rgba(0, 180, 166, 0.25),
    0 0 18px 8px rgba(0, 180, 166, 0.10);
  z-index: 5;
  pointer-events: none;
}

/* Wider glow halo following scan line */
.xray-scan-line::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -18px;
  width: 38px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(0, 180, 166, 0.06),
    rgba(0, 180, 166, 0.10),
    rgba(0, 180, 166, 0.06),
    transparent
  );
  pointer-events: none;
}

/* ── HUD footer ───────────────────────────────────────── */
.xray-panel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-5);
  background: rgba(0, 180, 166, 0.03);
  border-top: 1px solid rgba(0, 180, 166, 0.08);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  color: rgba(0, 180, 166, 0.45);
  user-select: none;
}

.xray-footer__scale {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.xray-footer__scale-inner {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: rgba(0, 180, 166, 0.5);
  position: relative;
}

.xray-footer__scale-inner::before,
.xray-footer__scale-inner::after {
  content: '';
  position: absolute;
  top: -3px;
  width: 1px;
  height: 7px;
  background: rgba(0, 180, 166, 0.5);
}

.xray-footer__scale-inner::before { left: 0; }
.xray-footer__scale-inner::after  { right: 0; }

/* ── Treatment marker (inside SVG, controlled by GSAP) ── */
/* No separate CSS needed — SVG text/rect elements styled inline */
/* Base opacity=0 is set on the SVG groups; GSAP reveals them */

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */

/* Tablet: stack columns */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .hero__content {
    order: 1;
    align-items: center;
    text-align: center;
  }

  .hero__kicker {
    align-self: center;
  }

  .hero__sub {
    max-width: 52ch;
    margin-inline: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__stats {
    justify-content: center;
  }

  .hero__visual {
    order: 2;
    max-width: 560px;
    margin-inline: auto;
    width: 100%;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .hero__stats {
    gap: var(--space-5);
    flex-wrap: wrap;
  }

  .hero__stat-divider {
    display: none;
  }

  .hero__stat-value {
    font-size: var(--font-size-2xl);
  }

  .xray-panel__hud {
    font-size: 8px;
  }

  .xray-hud__id {
    display: none;
  }
}

/* ── Legacy selectors kept for backward compat ────────── */
.home-hero__avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--color-bg);
  margin-left: -8px;
  background: var(--color-bg-light);
}

.home-hero__avatars img:first-child,
.home-hero__avatar-placeholder:first-child {
  margin-left: 0;
}

/* ══════════════════════════════════════════════════════════
   URUN — Product page
   ══════════════════════════════════════════════════════════ */

.urun-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

@media (max-width: 900px) {
  .urun-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .urun-features {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════════════════
   PAZAR — Market page
   ══════════════════════════════════════════════════════════ */

.pazar-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

@media (max-width: 900px) {
  .pazar-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .pazar-stats-row {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════════════════
   FIYAT — Pricing page
   ══════════════════════════════════════════════════════════ */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  align-items: start;
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }
}

.pricing-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  position: relative;
  overflow: hidden;
  transition: transform var(--duration-base) var(--ease-out), border-color var(--duration-base) var(--ease-out);
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-border-light);
}

.pricing-card--featured {
  border-color: var(--color-primary);
  background: linear-gradient(
    160deg,
    rgba(0, 180, 166, 0.10) 0%,
    var(--color-bg-card) 50%
  );
  transform: scale(1.03);
}

.pricing-card--featured:hover {
  transform: scale(1.03) translateY(-6px);
}

.pricing-badge {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
}

.pricing-name {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.pricing-price {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-black);
  letter-spacing: var(--letter-spacing-tight);
  line-height: 1;
  color: var(--color-white);
  margin-bottom: var(--space-2);
}

.pricing-price sup {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  vertical-align: top;
  margin-top: var(--space-3);
}

.pricing-period {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.pricing-feature svg {
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 1px;
}

/* ══════════════════════════════════════════════════════════
   ILETISIM — Contact page
   ══════════════════════════════════════════════════════════ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-12), 6vw, var(--space-24));
  align-items: start;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-white);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-white);
  font-size: var(--font-size-sm);
  font-family: var(--font-family);
  transition:
    border-color var(--duration-base) var(--ease-out),
    background var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-faint);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--color-primary);
  background: rgba(0, 180, 166, 0.04);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}
