/* =========================================================
   vitrin-v2.css — VİTRİN ARAYÜZ İYİLEŞTİRME KATMANI
   vitrin.css ve tema-v2.css'ten SONRA yüklenir (_Layout.cshtml).
   Kural: HTML'e DOKUNULMAZ. Yalnız mevcut sınıflar override edilir.
   Geri almak için _Layout.cshtml'deki cssV2 satırını kaldırmak yeterlidir.

   FONT: Bu dosya font TANIMLAMAZ. Fontlar tenant ayarından
   (ThemePresets.FontPresetKey) gelir. Burada yalnız ağırlık/ölçek ayarlanır.
   ========================================================= */

/* Gölge tokenları, odak halkası, reduced-motion ve mobil başlık şeridi
   tema-v2.css'te tanımlıdır — burada TEKRARLANMAZ. */
html:root {
  --gap-section: 48px;
}

/* ---------------------------------------------------------
   1) Temel tipografi ve okunabilirlik
   --------------------------------------------------------- */
body {
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -.015em;
}

/* ---------------------------------------------------------
   2) Giriş animasyonu
   JS çalışmazsa sayfa boş kalıyordu: reveal artık gizlemez, sadece giriş yapar
   --------------------------------------------------------- */
.reveal,
.scale-in {
  opacity: 1;
  transform: none;
  animation: vy-fade-up .7s var(--ease-smooth) both;
}

.home-hero-stage.scale-in,
.home-hero-stage.scale-in.active {
  transform: rotate(-.5deg);
}

@keyframes vy-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------
   3) Header — menüye gidiş her ekranda görünür
   (ortak mobil başlık kuralları tema-v2.css'te)
   --------------------------------------------------------- */
.public-header {
  min-height: 68px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.public-header.is-scrolled {
  min-height: 58px;
}

.brand-logo,
.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 10px;
}

.brand-copy strong {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.brand-copy small {
  font-size: 10px;
  letter-spacing: .06em;
}

/* Ana eylem menüye gitmek: nötr siyah yerine marka rengi */
.home-web-cta {
  display: inline-flex;
  background-color: var(--brand);
  font-family: var(--font);
  font-weight: 600;
  font-size: 13px;
  padding: 9px 18px;
  box-shadow: 0 2px 10px color-mix(in srgb, var(--brand) 30%, transparent);
}

.home-web-cta:hover {
  background-color: var(--brand-hover);
}

.language-switch a {
  padding: 5px 10px;
  font-size: 11px;
}

/* ---------------------------------------------------------
   4) Hero — ölçek, sakinlik, çalışan slider
   --------------------------------------------------------- */
.home-hero h1 {
  font-size: clamp(30px, 5.2vw, 52px);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.08;
}

.home-hero-eyebrow {
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: .08em;
}

.home-hero-copy > span {
  font-size: 16px;
  line-height: 1.65;
}

.home-hero-primary,
.home-hero-text-link {
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  border-radius: 12px;
  min-height: 50px;
}

.home-hero-text-link {
  border-width: 1px;
  border-color: color-mix(in srgb, var(--ink) 22%, transparent);
  color: var(--muted);
}

.home-hero-stage {
  transform: rotate(-.5deg);
  border: 0;
  overflow: visible;
}

.home-hero-stage:hover {
  transform: rotate(0) scale(1.01);
}

/* Sürekli zıplayan rozet dikkat dağıtıyordu — sabitlendi */
.home-hero-panel {
  animation: none;
  padding: 14px 18px;
  border-radius: 14px;
  max-width: min(300px, 78%);
}

.home-hero-panel span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* HTML'de var olan ama CSS ile gizlenmiş slider kontrolleri açıldı */
.home-hero-controls {
  display: flex !important;
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-s);
}

.home-hero-controls > button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.home-hero-controls > button:hover {
  background: var(--surface-2);
}

.home-hero-dots {
  display: flex;
  gap: 6px;
}

.home-hero-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 25%, transparent);
  cursor: pointer;
  transition: all .25s var(--ease-smooth);
}

.home-hero-dots button.active {
  width: 20px;
  border-radius: 4px;
  background: var(--brand);
}

@media (min-width: 900px) {
  .home-hero {
    min-height: 520px;
    margin: 32px auto;
    gap: 56px;
  }
}

/* ---------------------------------------------------------
   5) Hızlı bilgi şeridi — dikey kutular yerine kompakt satır
   --------------------------------------------------------- */
.home-web-quick-strip {
  margin: 28px auto;
  gap: 14px;
}

.home-web-quick-strip .info-card {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  border-color: var(--line);
  box-shadow: var(--shadow-s);
}

.home-web-quick-strip .info-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-m);
}

.home-web-quick-strip .info-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 10px;
  background: var(--brand-soft);
}

.home-web-quick-strip .info-icon svg {
  width: 20px;
  height: 20px;
}

.home-web-quick-strip strong {
  font-size: 10px;
  letter-spacing: .07em;
}

.home-web-quick-strip span {
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
}

@media (min-width: 900px) {
  .home-web-quick-strip .info-card {
    flex: 1 1 260px;
    max-width: 380px;
  }
}

/* ---------------------------------------------------------
   6) Bölüm başlıkları — hiyerarşi düzeltmesi
   --------------------------------------------------------- */
.home-popular,
.showcase-gallery,
.showcase-testimonials {
  padding-top: var(--gap-section);
}

.home-popular-title,
.showcase-section-title {
  gap: 8px;
  margin-bottom: 28px;
}

.showcase-section-title p {
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: .14em;
}

.home-popular-title h2,
.showcase-section-title h2 {
  font-size: clamp(25px, 3.4vw, 36px);
  font-weight: 600;
  letter-spacing: -.02em;
}

.showcase-section-desc {
  font-size: 15px;
  max-width: 560px;
}

.btn-all-menu {
  margin-top: 6px;
  font-family: var(--font);
  border-radius: 10px;
}

/* ---------------------------------------------------------
   7) Ürün kartları
   --------------------------------------------------------- */
.product-grid {
  gap: 20px;
}

.product-card {
  border-radius: 16px;
  border-color: var(--line);
  box-shadow: var(--shadow-s);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-m);
}

.product-card > img,
.product-logo-fallback {
  height: 200px;
}

/* Görseli olmayan ürün 4'lü ızgarada delik gibi duruyordu */
.product-logo-fallback {
  background: linear-gradient(150deg,
    color-mix(in srgb, var(--brand-soft) 70%, var(--surface)),
    var(--surface-2));
}

.product-logo-fallback img {
  opacity: .3;
}

.product-card-body {
  padding: 18px;
  gap: 8px;
}

.product-card-body h3 {
  font-size: 17px;
  font-weight: 600;
}

.product-card-body p {
  font-size: 13.5px;
  line-height: 1.55;
}

.product-card-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.product-card-footer strong {
  font-family: var(--font);
  font-size: 19px;
  font-weight: 700;
  color: var(--brand);
}

/* Ok butonu yalnız hover'da renkleniyordu; mobilde ölü ikondu */
.product-card-action {
  width: 34px;
  height: 34px;
  background: var(--brand-soft);
  color: var(--brand);
}

/* ---------------------------------------------------------
   8) Galeri
   --------------------------------------------------------- */
.showcase-gallery-grid {
  gap: 14px;
  grid-template-rows: 230px 230px;
}

.showcase-gallery-grid figure {
  border-radius: 16px;
  border-color: var(--line);
  box-shadow: var(--shadow-s);
}

.showcase-gallery-grid figure:hover {
  box-shadow: var(--shadow-m);
}

/* ---------------------------------------------------------
   9) Yorumlar — sayfanın ritmini kıran tam genişlik şerit
   Kısa yorumlar 32px padding'li kocaman kartlarda kayboluyordu.
   --------------------------------------------------------- */
.showcase-testimonials {
  margin-top: var(--gap-section);
  padding: 56px 24px;
  background: var(--surface-2);
  box-shadow: 0 0 0 100vmax var(--surface-2);
  clip-path: inset(0 -100vmax);
}

.showcase-testimonial-grid {
  gap: 16px;
}

.showcase-testimonial-grid blockquote {
  position: relative;
  gap: 14px;
  padding: 22px 24px;
  border: 0;
  border-radius: 14px;
  box-shadow: var(--shadow-s);
}

.showcase-testimonial-grid blockquote:hover {
  transform: none;
  box-shadow: var(--shadow-m);
}

.showcase-testimonial-grid blockquote::before {
  content: '\201C';
  position: absolute;
  top: 8px;
  right: 18px;
  font-family: var(--display);
  font-size: 56px;
  line-height: 1;
  color: color-mix(in srgb, var(--brand) 14%, transparent);
  pointer-events: none;
}

.showcase-stars {
  font-size: 15px;
}

/* Kısa metin italik + gri iken cılız duruyordu */
.showcase-testimonial-grid blockquote > p {
  font-style: normal;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
}

.showcase-testimonial-grid footer span {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  font-family: var(--font);
  font-size: 14px;
}

.showcase-testimonial-grid footer {
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* ---------------------------------------------------------
   10) CTA — eskisi: 80px padding, tek satır başlık, boş siyah kutu.
   Yeni: markalı degrade, ince desen, kompakt ve iddialı buton.
   --------------------------------------------------------- */
.showcase-cta {
  margin: var(--gap-section) auto;
  padding: clamp(40px, 5.5vw, 60px) 24px;
  border-radius: 22px;
  box-shadow: var(--shadow-l);
  background:
    radial-gradient(120% 140% at 100% 0%,
      color-mix(in srgb, var(--brand) 55%, transparent) 0%,
      transparent 58%),
    linear-gradient(135deg,
      color-mix(in srgb, var(--ink) 92%, var(--brand)) 0%,
      var(--ink) 60%);
}

/* Eski dev radial leke yerine ince nokta dokusu */
.showcase-cta::before {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: none;
  background-image: radial-gradient(rgba(255, 255, 255, .10) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 75%);
  opacity: .8;
}

.showcase-cta h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.12;
  max-width: 16ch;
}

/* Koyu zeminde en yüksek kontrast: beyaz buton */
.showcase-cta > a {
  margin-top: 24px;
  padding: 15px 30px;
  gap: 10px;
  background-color: #FFF;
  color: var(--ink);
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
}

.showcase-cta > a::after {
  content: '→';
  font-size: 17px;
  transition: transform .25s var(--ease-smooth);
}

.showcase-cta > a:hover {
  background-color: #FFF;
  color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .34);
}

.showcase-cta > a:hover::after {
  transform: translateX(4px);
}

/* ---------------------------------------------------------
   11) Footer
   --------------------------------------------------------- */
.public-footer {
  padding: 56px 0 24px;
}

.footer-logo-text {
  font-size: 20px;
  font-weight: 600;
}

.footer-col h4 {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 16px;
}

.footer-container {
  padding-bottom: 28px;
}

/* =========================================================
   12) MOBİL (<900px) — ayrı ve öncelikli blok.
   Geniş ekran kuralları bu bloğun dışında, karışmaz.
   ========================================================= */
@media (max-width: 899px) {

  html:root {
    --gap-section: 36px;
    --radius-lg: 18px;
  }

  /* ---- Başlık şeridi ----
     Ortak kurallar (yükseklik, marka metni, dil seçimi) tema-v2.css'te.
     Burada yalnız vitrine özel olanlar var. */
  .public-header {
    padding: 10px var(--pad-x);
  }

  .public-header.is-scrolled {
    min-height: 54px;
  }

  .header-actions { gap: 8px; }

  /* Menüye gidiş her ekranda görünür ve birincil eylem */
  .home-web-cta {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 36px;
    padding: 8px 14px;
    font-size: 12.5px;
    white-space: nowrap;
    border-radius: 10px;
  }

  /* Hero */
  .home-hero {
    padding: 20px var(--pad-x) 16px;
    gap: 18px;
  }

  /* Sabit 240px yükseklik ekran genişliği değiştikçe oranı bozuyor ve
     tabağı kırpıyordu. Oran sabit, yükseklik ekrana göre. */
  .home-hero-stage {
    height: auto;
    aspect-ratio: 3 / 2;
    max-height: 46vh;
    transform: none;
  }

  .home-hero-stage.scale-in,
  .home-hero-stage.scale-in.active {
    transform: none;
  }

  .home-hero-copy {
    gap: 14px;
  }

  .home-hero h1 {
    font-size: clamp(26px, 7.4vw, 34px);
  }

  .home-hero-copy > span {
    font-size: 15px;
  }

  .home-hero-actions {
    gap: 10px;
    margin-top: 4px;
  }

  /* "Bilgiler" ikincil butonu kaldırıldı: aynı yere footer'dan ve
     başlıktaki bağlantıdan zaten gidiliyor, tek eylem daha net.
     Kalıcı çözüm CSS değil, Index.cshtml / panel ayarı. */
  .home-hero-text-link {
    display: none;
  }

  /* Rozet mobilde görselin üstünde okunmuyordu ve metni zaten hemen
     altındaki alt başlıkla birebir aynı. Tekrarı kaldırdık. */
  .home-hero-panel {
    display: none;
  }

  .home-hero-controls {
    top: 12px;
    right: 12px;
    bottom: auto;
    padding: 5px 7px;
  }

  /* Dokunma hedefi 44px altına düşmesin */
  .home-hero-controls > button {
    width: 36px;
    height: 36px;
  }

  .home-hero-dots button        { width: 8px; height: 8px; }
  .home-hero-dots button.active { width: 18px; }

  /* Hızlı bilgi */
  .home-web-quick-strip {
    margin: 18px auto;
    gap: 10px;
  }

  .home-web-quick-strip .info-card {
    padding: 13px 14px;
    gap: 12px;
  }

  .home-web-quick-strip .info-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }

  .home-web-quick-strip span { font-size: 14px; }

  /* Bölüm başlıkları */
  .home-popular,
  .showcase-gallery,
  .showcase-testimonials {
    padding-top: var(--gap-section);
  }

  .home-popular-title,
  .showcase-section-title {
    margin-bottom: 20px;
    gap: 6px;
  }

  .showcase-section-desc {
    font-size: 14px;
  }

  /* Ürün kartları: mobilde tek sütun devasa kartlar yerine 2 sütun */
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .product-card { border-radius: 14px; }

  .product-card > img,
  .product-logo-fallback { height: 120px; }

  .product-card-body {
    padding: 10px 12px 12px;
    gap: 4px;
  }

  .product-card-body h3 {
    font-size: 14px;
    line-height: 1.25;
  }

  /* Dar sütunda 3 satırdan uzun açıklama kartı şişiriyor */
  .product-card-body p {
    font-size: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-card-footer {
    margin-top: 8px;
    padding-top: 8px;
  }

  .product-card-footer strong { font-size: 16px; }

  .product-card-action {
    width: 30px;
    height: 30px;
  }

  .product-card-action svg {
    width: 15px;
    height: 15px;
  }

  /* Galeri: alt alta 4 kutu = 800px'lik ölü kaydırma. 2'li ızgara. */
  .showcase-gallery-grid,
  .showcase-gallery-grid.fallback-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    grid-auto-rows: 150px;
    gap: 10px;
  }

  .showcase-gallery-grid figure {
    grid-column: auto !important;
    grid-row: auto !important;
    flex: none;
    height: 100%;
    border-radius: 12px;
  }

  /* Yorumlar */
  .showcase-testimonials {
    padding: 34px 18px;
  }

  .showcase-testimonial-grid { gap: 12px; }

  .showcase-testimonial-grid blockquote {
    padding: 18px;
    gap: 10px;
  }

  .showcase-testimonial-grid blockquote::before {
    font-size: 42px;
    top: 4px;
    right: 14px;
  }

  .showcase-testimonial-grid blockquote > p { font-size: 15px; }

  /* CTA */
  .showcase-cta {
    padding: 34px 20px;
    border-radius: 18px;
  }

  .showcase-cta h2 {
    font-size: clamp(22px, 6.4vw, 28px);
    max-width: none;
  }

  .showcase-cta > a {
    display: flex;
    width: 100%;
    margin-top: 20px;
    padding: 15px 20px;
  }

  /* ---- Footer ----
     Eskisi: küçücük yuvarlak logo, altında dev isim, dağınık boşluklar,
     başlık ile bağlantılar arasında 24px boşluk. */
  .public-footer { padding: 36px 0 18px; }

  .footer-container {
    gap: 22px;
    padding-bottom: 20px;
  }

  /* Logo ve isim yan yana — dikey dizilim yer israfıydı */
  .footer-brand {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .footer-logo {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 10px;
  }

  .footer-logo-text {
    font-size: 17px;
    line-height: 1.2;
  }

  .col-brand-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .footer-contact-info { gap: 10px; }

  .footer-contact-info p {
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
  }

  .footer-icon-svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin-top: 0;
  }

  .footer-col h4 {
    margin-bottom: 10px;
    font-size: 11px;
  }

  /* Bağlantılar tek sütunda uzayıp gidiyordu */
  .col-links ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    font-size: 13.5px;
  }

  .hours-val { font-size: 13.5px; }

  .footer-bottom-container {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    padding-top: 16px;
  }

  .footer-bottom-container p { font-size: 11px; }
}

/* Çok dar ekran (<380px) — başlık şeridi sıkışıyor */
/* Çok dar ekran — logo/marka/dil ölçüleri tema-v2.css'te */
@media (max-width: 379px) {
  .home-web-cta { padding: 7px 11px; font-size: 11px; }
}
