/* Panter: telefon, tablet ve geniş ekran düzen düzeltmeleri (2026-11-29, görseller ve tutarlılık 2026-11-30,
   Laws of UX denetimi 2026-11-30c: dokunma alanları, süreç bağlantısı, video tuşu).
   Her sayfada en son yüklenir. Metin, renk ve içerik değiştirmez; yalnızca yerleşim. */

/* ---------- Tüm genişlikler ---------- */

/* Footer alt satırı: "Çerez ayarları" düğmesi bağlantılarla aynı hizada */
.site-footer .rem-footer-links { align-items: center; }

/* İletişim bandı: arka plan fotoğrafı kaldırıldığından kalan sabit yükseklik boşluk bırakıyordu */
.contact { min-height: 0 !important; padding-block: clamp(56px, 6vw, 96px) !important; }

/* Süreç adımları: görselsiz kartlarda sabit yükseklik boş şerit bırakıyordu */
.process-copy { min-height: 0 !important; }

/* Bilgi merkezi kutusu: geniş ekranda kenar boşluğu 800px kutunun içinden düşülüp metni ~180px'e sıkıştırıyordu */
.new-article-teaser > .shell { max-width: none; }
.new-article-teaser .nat-copy > p { max-width: 62ch; }

/* 12px alt sınırı */
.header-contact { font-size: .75rem !important; }
.pw-mark { font-size: .75rem !important; }

/* ---------- Tablet ve küçük dizüstü ---------- */

@media (min-width: 601px) and (max-width: 1100px) {
  /* İlkeler: 4 dar sütun / tek uzun sütun yerine 2 sütun */
  .manifesto .principles { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .manifesto .principle { min-height: 0 !important; }
  .manifesto .principle + .principle { border-inline-start: 0 !important; }
  .manifesto .principle:nth-child(even) { border-inline-start: 1px solid var(--line) !important; }
}

@media (min-width: 601px) and (max-width: 1020px) {
  /* Süreç kartları: eski görsel sütunu boş kalıyor, metin dar sütuna sıkışıyordu */
  .process-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .process-card { display: block !important; }
  .process-copy { grid-template-columns: 1fr !important; gap: .5rem !important; }
}

/* ---------- Telefon ---------- */

@media (max-width: 600px) {
  /* Özellik etiketleri: daha sıkı, satıra iki tane sığabilsin */
  .ribbon-track { gap: 8px !important; padding: 12px var(--gutter, 20px) !important; }
  .ribbon-track span { padding: 8px 11px !important; }

  /* Bölüm boşlukları */
  .contact { padding-block: 56px !important; }
  .contact h2 { margin-top: 0 !important; }
  .new-article-teaser { padding-block: 44px !important; }
  .site-footer { padding-top: 48px !important; }
  .site-footer .footer-top { gap: 24px !important; padding-bottom: 32px !important; }

  /* Footer bağlantıları iki sütun: liste yarı uzunlukta */
  .site-footer .footer-links { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) !important; gap: 20px 16px !important; }
  .site-footer .footer-links a { min-height: 44px; display: flex; align-items: center; }
  .site-footer .footer-links a[data-booking] { white-space: normal !important; }

  /* Dokunma alanları en az 44px */
  .language-switch summary { min-height: 44px; display: flex; align-items: center; }
  .language-switch a { min-height: 44px; display: flex; align-items: center; }
  .text-link, .pw-more, .ix-more, .new-article-teaser .nat-copy > a, .pw-roi > a { min-height: 44px; display: inline-flex; align-items: center; }
  .contact-book-guide { display: inline-block; padding-block: 11px; }
  .pw-roi { margin-bottom: 0 !important; }
  .dist-strip-link { position: relative; }
  .dist-strip-link::after { content: ""; position: absolute; inset: -8px -4px; }

  /* Ürün sayfası: ikincil tuşlar yarım genişlikte iki satıra kırılıyordu */
  .pr-actions { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; }
  .pr-actions .button { width: 100%; justify-content: center; }

  /* İç sayfa tuşları: uzun yazılar üç satıra bölünmesin */
  .rem-wrap .button { font-size: .875rem !important; }
}

/* ================= 2026-11-30: boş kalan alanlara ürün görselleri ================= */

/* Ortak pencere: DESIGN.md "Recess + bezel" (fotoğraf panele gömülü pencere, üstünde metin yok) */
.pw-band-window, .process-media, .nat-thumb {
  display: block; margin: 0; overflow: hidden; border-radius: 10px; background: #111417;
  box-shadow: 0 0 0 5px #2a2e33, 0 0 0 6px rgba(255, 255, 255, .1), inset 0 3px 14px rgba(0, 0, 0, .75);
}
.pw-band-window img, .process-media img, .nat-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* "Uzaktan kontrol. Modüler yapı.": başlık ile ilkeler arasında geniş saha penceresi */
.pw-band-window { aspect-ratio: 3 / 1; margin: clamp(28px, 4vw, 48px) 6px; }
.pw-band-window img { object-position: 50% 62%; }

/* Süreç adımları: her adımın üstünde görsel (eski görsel sütununun yerine) */
.process-media { aspect-ratio: 16 / 10; margin: 26px 26px 0; }
.process-card:hover .process-media img { transform: scale(1.02); transition: transform .4s ease; }

/* Bilgi merkezi: metnin yanında yazının kapak görseli */
.new-article-teaser > .shell { display: grid; gap: 28px; align-items: center; }
.nat-thumb { aspect-ratio: 16 / 10; margin: 6px; max-width: 520px; }
@media (min-width: 768px) {
  .new-article-teaser > .shell { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 80px); }
  .nat-thumb { justify-self: end; width: calc(100% - 12px); }
}

/* İletişim bandı (geniş ekran): boş sağ yarıya iletişim bilgileri paneli */
@media (min-width: 1021px) {
  .contact-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); column-gap: clamp(40px, 5vw, 88px); align-items: start; }
  .contact-inner > :not(.contact-details) { grid-column: 1; }
  .contact-inner > .contact-book-guide { justify-self: start; }
  .contact-details {
    grid-column: 2; grid-row: 1 / span 4; align-self: center; margin: 0 !important;
    display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 0 24px;
    padding: clamp(20px, 2.4vw, 32px) !important; border: 1px solid var(--pw-edge, rgba(255,255,255,.09)) !important; border-radius: 14px;
    background: linear-gradient(180deg, #262b30, #1e2226) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 18px 40px rgba(0, 0, 0, .35);
  }
  .contact-details > * { padding: 16px 0 !important; border: 0 !important; border-bottom: 1px solid var(--line, rgba(230,226,217,.14)) !important; }
  .contact-details > :nth-last-child(-n+2) { border-bottom: 0 !important; }
  .contact-details strong { font-size: .95rem; }
}

/* 1021–1279px: kumanda simülasyonunda tuş yazıları iki satıra kırılıyordu */
@media (min-width: 1021px) and (max-width: 1279px) {
  .pw-hero .pw-sim { grid-template-columns: minmax(0, 1fr) !important; grid-template-areas: "view" "screen" "pad" "hint" !important; }
}

@media (min-width: 601px) and (max-width: 1020px) {
  .process-media { margin: 20px 20px 0; }
}

@media (max-width: 600px) {
  .pw-band-window { aspect-ratio: 16 / 10; margin: 24px 6px; }
  .process-media { aspect-ratio: 2.4 / 1; margin: 20px 6px 0; }
  .nat-thumb { max-width: none; width: calc(100% - 12px); }
  .new-article-teaser > .shell { gap: 24px; }
}

/* ================= 2026-11-30 (3): tasarım tutarlılığı ================= */

/* Ürün sayfası "Optimak üretir": eski düz liste ve köşeli foto -> Hakkımızda'daki bilgi kartları ve çerçeveli pencere */
.pr-maker dl { border-top: 0 !important; padding-top: 0 !important; margin-top: 26px !important; gap: 12px !important; }
.pr-maker dl > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; padding: 18px; border-radius: 14px; border: 1px solid var(--pw-edge, rgba(255,255,255,.09)); background: #1a1e22; }
.pr-maker dt { font-size: .8rem !important; color: var(--pw-dim) !important; }
.pr-maker dd { margin: 0 !important; font-size: .95rem !important; line-height: 1.3 !important; }
.pr-maker-photo { border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 5px #2a2e33, 0 0 0 6px rgba(255, 255, 255, .1); margin: 6px !important; }
.pr-maker-photo img { border-radius: 0 !important; }

/* Ürün sayfası "Nasıl ilerlemek istersiniz?": çıplak iki sütun -> iki işlenmiş panel */
.pr-next-grid { gap: clamp(12px, 1.6vw, 20px); }
.pr-next-col, .pr-next-col + .pr-next-col {
  display: flex; flex-direction: column; padding: clamp(20px, 2.6vw, 32px) !important;
  border: 1px solid var(--pw-edge, rgba(255,255,255,.09)) !important; border-radius: 14px;
  background: linear-gradient(180deg, #262b30, #1e2226);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 18px 40px rgba(0, 0, 0, .35);
}
.pr-next-actions { margin-top: auto; }
.pr-next-actions .button { border-radius: 6px !important; }

/* Bilgi merkezi listesi: iki küçük kart yerine geniş, dönüşümlü yazı satırları */
@media (min-width: 901px) {
  .ix-blog .ix-posts { grid-template-columns: minmax(0, 1fr) !important; gap: clamp(20px, 2.4vw, 32px); }
  .ix-blog .ix-post { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: stretch; }
  .ix-blog .ix-post-img { aspect-ratio: auto; height: 100%; min-height: 320px; }
  .ix-blog .ix-post:nth-child(even) .ix-post-img { order: 2; }
  .ix-blog .ix-post-body { justify-content: center; padding: clamp(28px, 3.4vw, 52px); gap: 16px; }
  .ix-blog .ix-post-body h2 { font-size: clamp(1.35rem, 2vw, 1.9rem) !important; }
}

/* Blog yazısı sonu: "İlgili yazı" düz bağlantı yerine görselli kart */
.ix-related {
  display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto; gap: 20px; align-items: center;
  margin-top: 14px; padding: 14px; border: 1px solid var(--pw-edge, rgba(255,255,255,.09)); border-radius: 14px;
  background: #1a1e22; color: var(--pw-text) !important; text-decoration: none !important;
  transition: transform .3s ease, border-color .3s ease;
}
.ix-related:hover { transform: translateY(-3px); border-color: rgba(255, 194, 77, .32); }
.ix-related-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 10px; background: #0e1012; }
.ix-related-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ix-related-body { display: grid; gap: 6px; }
.ix-related-body strong { font-size: 1.08rem; line-height: 1.3; color: var(--pw-text); }
.ix-related-body span { font-size: .9rem; line-height: 1.5; color: var(--pw-dim); }
.ix-related .ix-arrow { width: 18px; height: 18px; color: var(--pw-dim); margin-inline-end: 6px; }
@media (prefers-reduced-motion: reduce) { .ix-related, .ix-related:hover { transition: none; transform: none; } }

/* Telefon: ikon kartları (başvuru listesi, iletişim kutuları, bilgi kartları) kısa satır düzeninde */
@media (max-width: 600px) {
  .ix-numcards li, .ix-facts li, .ix-page a.ix-tile {
    display: grid !important; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; row-gap: 2px;
    align-items: center; align-content: center; min-height: 0 !important; padding: 14px 16px !important;
  }
  .ix-numcards li { padding-inline-end: 52px !important; }
  .ix-page a.ix-tile { padding-inline-end: 48px !important; }
  .ix-numcards li::before { top: 50% !important; transform: translateY(-50%); }
  .ix-page a.ix-tile .ix-arrow { top: 50% !important; margin-top: -8px; }
  .ix-numcards li > .ix-ico, .ix-facts li > .ix-ico, .ix-tile > .ix-ico { grid-row: 1 / span 2; margin: 0 !important; align-self: center; }
  .ix-numcards li > span, .ix-facts li > strong, .ix-facts li > span, .ix-tile > small, .ix-tile > strong { grid-column: 2; }
  .ix-numcards li > span { grid-row: 1 / span 2; }
  .ix-facts { gap: 10px !important; }

  /* Blog kartı ve ilgili yazı */
  .ix-related { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ix-related .ix-arrow { display: none; }

  /* Yüzen WhatsApp düğmesi: daha küçük ve köşeye yakın, tuşların ucunu daha az kapatsın */
  .floating-contact { width: 2.75rem !important; height: 2.75rem !important; padding: .45rem !important; right: 8px !important; bottom: calc(10px + env(safe-area-inset-bottom)) !important; left: auto !important; }
}
@media (min-width: 901px) { .ix-blog .ix-post-body .ix-more { margin-top: 10px !important; } }

/* ================= 2026-11-30c: Laws of UX denetimi ================= */

/* Fitts: tablet ve dokunmatik ekranlarda da dokunma alanları en az 44px (telefon kuralları yalnızca 600px altındaydı) */
@media (max-width: 1100px), (pointer: coarse) {
  .site-footer .footer-links a { display: flex; align-items: center; min-height: 44px; }
  .site-footer .rem-footer-links a, .site-footer .rem-footer-links button, .site-footer .rem-consent-settings { display: inline-flex !important; align-items: center; min-height: 44px; }
  .language-switch a { min-height: 44px; display: flex; align-items: center; }
  .text-link, .pw-more, .ix-more, .new-article-teaser .nat-copy > a, .pw-roi > a { min-height: 44px; display: inline-flex !important; align-items: center; }
  .contact-book-guide { display: inline-block; padding-block: 11px; }
  .ix-toc a { min-height: 44px; display: flex; align-items: center; }
  .rem-breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
  .guide-book-alt { display: inline-flex; align-items: center; min-height: 44px; }
  .desktop-nav > a { display: inline-flex; align-items: center; min-height: 44px; }
}
/* Telefon: alt satır bağlantıları ve çerez ayarları düğmesi de 44px */
@media (max-width: 600px) {
  .site-footer .rem-footer-links { row-gap: 0 !important; }
}

/* Uniform Connectedness: ana sayfadaki 01 → 02 → 03 süreç kartları arasında yön işareti */
@media (min-width: 601px) {
  .process-card { position: relative; container-type: inline-size; }
  .process-card:not(:last-child)::after {
    content: "\2192"; position: absolute; z-index: 2; inset-inline-end: -15px;
    top: calc(26px + (100cqw - 52px) * .3125 - 15px);
    width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
    background: var(--pw-charcoal, #15181b); border: 1px solid var(--pw-amber, #ffc24d); color: var(--pw-amber, #ffc24d);
    font: 600 14px/1 var(--pw-mono, monospace); pointer-events: none;
  }
  html[dir=rtl] .process-card:not(:last-child)::after { content: "\2190"; }
  .process-grid { overflow: visible !important; }
}
@media (min-width: 601px) and (max-width: 1020px) {
  .process-card:not(:last-child)::after { top: calc(20px + (100cqw - 40px) * .3125 - 15px); }
}

/* Von Restorff / Similarity: lime yalnızca teklif tuşunda; video oynat tuşu diğer "Videoyu izleyin" tuşlarıyla aynı gri tuş */
.pw-video-play { background: rgba(21, 24, 27, .86) !important; color: var(--pw-text, #e6e2d9) !important; border: 1px solid rgba(230, 226, 217, .28) !important; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); backdrop-filter: blur(4px); }
.pw-video-play:hover { background: var(--pw-gunmetal, #3a4047) !important; border-color: var(--pw-amber, #ffc24d) !important; }
.pw-video-play svg { color: var(--pw-amber, #ffc24d); }
