/* ==========================================================================
   Bioscha Beauty Lab — Responsive kurallar
   --------------------------------------------------------------------------
   Tablet ve mobil düzenlemeleri. Masaüstü varsayılanları styles.css içindedir.
   ========================================================================== */

/* ---------- Geniş tablet / küçük masaüstü (≤ 1100px) ---------- */
@media (max-width: 1100px) {
  .values { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .insta-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-layout { grid-template-columns: minmax(0, 1fr); }
  .sticky-card { position: static; }
  .hero-badge--tl { left: 4%; }
  .hero-badge--br { right: 4%; }
}

/* ---------- Tablet ve altı (≤ 1023px): mobil üst bar + alt navigasyon ---------- */
@media (max-width: 1023px) {
  :root { --header-h: 64px; }

  .main-nav, .header-call, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .brand-logo { width: 38px; height: 39px; }
  .brand-name { font-size: 1.2rem; }

  .bottom-nav { display: block; }
  body { padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px)); }

  /* Asistan düğmesi alt menünün üstünde kalsın */
  .assistant-fab {
    right: 16px;
    bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 14px);
    padding: 0;
    width: 54px; height: 54px;
    justify-content: center;
    min-height: 0;
  }
  .assistant-fab .fab-label, .assistant-fab .dot { display: none; }

  /* Paneller mobilde bottom-sheet gibi davranır */
  .assistant-panel {
    right: 0; left: 0; bottom: 0;
    width: 100%;
    height: min(86vh, 720px);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transform: translateY(30px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .assistant-panel.is-open { transform: none; }

  .sheet {
    left: 0; right: 0; top: auto; bottom: 0;
    width: 100%;
    max-height: 92vh;
    transform: translateY(30px);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .sheet.is-open { transform: none; }
  .sheet-handle { display: block; }

  .cookie-banner { bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 12px); }

  /* Çerez bandı açıkken yüzen asistan düğmesi gizlenir; alt menüdeki "Asistan" kullanılabilir */
  .has-cookie-banner .assistant-fab { display: none; }

  .hero-inner, .page-hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { order: -1; max-width: 520px; }
  .hero-frame { aspect-ratio: 5 / 4; }
  .page-hero-visual { display: none; }
  .page-hero-visual--photo { display: block; aspect-ratio: 16 / 10; margin-top: 8px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band { grid-template-columns: minmax(0, 1fr); }
  .cta-band .cta-actions { flex-direction: row; flex-wrap: wrap; }
  .contact-cards { grid-template-columns: minmax(0, 1fr); }
  .blog-tools { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Telefon (≤ 640px) ---------- */
@media (max-width: 640px) {
  :root { --gutter: 16px; --section: clamp(52px, 12vw, 72px); }

  .brand-text { display: flex; }
  .hero { padding-top: 24px; }
  .hero h1 { max-width: none; }
  .hero-actions .btn, .page-hero .cluster .btn { flex: 1 1 100%; }
  .hero-visual { max-width: none; }
  .hero-frame { aspect-ratio: 4 / 3; }
  .hero-badge { padding: 8px 12px; max-width: 190px; gap: 8px; border-radius: 14px; }
  .hero-badge svg { width: 18px; height: 18px; }
  .hero-badge strong { font-size: 0.8rem; }
  .hero-badge span { font-size: 0.7rem; }
  .hero-badge--tl { top: 12px; left: 12px; }
  .hero-badge--br { bottom: 12px; right: 12px; }

  .grid-2, .grid-3, .grid-4, .two-col, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .values { grid-template-columns: minmax(0, 1fr); }
  .insta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer-bottom { flex-direction: column; }

  .card, .principle, .step, .info-panel, .sticky-card { padding: 22px; }
  .cta-band .cta-actions { flex-direction: column; }
  .cta-band .btn { width: 100%; }

  .sheet-header, .sheet-body { padding-left: 18px; padding-right: 18px; }
  .assistant-head { padding-left: 16px; }
  .msg { max-width: 92%; }

  .article-cover { aspect-ratio: 16 / 10; border-radius: var(--radius); }
  .map-frame { aspect-ratio: 4 / 3; }
  .photo-grid { gap: 10px; margin: 28px 0; }
  .photo-grid figure { border-radius: var(--radius-sm); }
  .article-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .article-cta .btn { width: 100%; }
  .blog-tools .filter-bar { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .blog-tools .filter-bar button { flex: none; }

  .faq summary { font-size: 1.1rem; padding-right: 36px; }
  .cookie-banner { left: 12px; right: 12px; padding: 16px 18px; }
  .cookie-banner .cluster { justify-content: stretch; }
  .cookie-banner .cluster .btn { flex: 1; }
}

/* ---------- Çok küçük ekranlar (≤ 380px) ---------- */
@media (max-width: 340px) {
  .brand-text { display: none; }
  .btn { padding-inline: 18px; }
  .bottom-nav a, .bottom-nav button { font-size: 0.66rem; }
}

/* ---------- Yatay telefon: panel yüksekliği ---------- */
@media (max-height: 560px) and (max-width: 1023px) {
  .assistant-panel { height: 100vh; border-radius: 0; }
}

/* ---------- Geniş ekranlar: hover destekliyorsa mikro etkileşimler ---------- */
@media (hover: none) {
  .btn:hover, .card:hover { transform: none; }
}
