/* ============================================================
   Sinopbul — uygulama modu
   Yalnızca <html class="is-app"> iken (Android uygulaması içinde)
   geçerlidir; web sitesinin görünümüne dokunmaz.
   ============================================================ */

html.is-app {
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: auto;
}

html.is-app body {
  -webkit-user-select: none;
  user-select: none;
  overscroll-behavior-y: none;
}

html.is-app input,
html.is-app textarea,
html.is-app select,
html.is-app p,
html.is-app h1,
html.is-app h2 {
  -webkit-user-select: text;
  user-select: text;
}

/* ---------- üst çubuk: yalnızca logo (+ alt sayfada geri) ---------- */
html.is-app .header {
  background: rgba(247, 246, 241, .97);
  box-shadow: none;
  border-bottom: 1px solid rgba(16, 45, 52, .07);
}

html.is-app .header.is-scrolled {
  box-shadow: 0 6px 18px rgba(11, 52, 61, .07);
}

html.is-app .header__inner {
  position: relative;
  min-height: 56px;
  padding: 6px 16px;
  justify-content: center;
}

html.is-app .header .nav,
html.is-app .header .tools {
  display: none !important;
}

html.is-app .sinopbul-page .header .brand--logo {
  width: 128px;
  height: 40px;
  margin: 0 auto;
}

html.is-app .sinopbul-page .header .brand--logo img {
  width: 128px;
  height: 40px;
}

html.is-app .app-back {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

html.is-app .app-back:active {
  background: rgba(16, 45, 52, .08);
}

html.is-app .app-back svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- uygulamada gereksiz olan site parçaları ---------- */
html.is-app .footer,
html.is-app .cookie-notice,
html.is-app .sb-back-link,
html.is-app .footer-owner-link {
  display: none !important;
}

html.is-app main {
  padding-bottom: 18px;
}

/* İlk ekranda kahraman alanı telefona sığsın */
html.is-app .sb-hero--compact {
  min-height: auto;
}

html.is-app .sb-hero--compact .sb-hero__inner {
  padding-block: 34px 30px;
}

html.is-app .sb-page-hero--compact {
  padding-block: 30px 24px;
}

html.is-app .sb-detail-hero__inner {
  padding-top: 76px;
}

/* ---------- favori (kalp) butonu ---------- */
.app-fav,
.app-share {
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.app-fav svg,
.app-share svg {
  width: 22px;
  height: 22px;
}

.app-fav svg path {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
  transition: fill .2s ease, stroke .2s ease;
}

.app-fav.is-on svg path {
  fill: #E5484D;
  stroke: #E5484D;
}

.app-fav.is-pop svg {
  animation: appHeartPop .42s cubic-bezier(.2, .9, .3, 1.4);
}

@keyframes appHeartPop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.32); }
  100% { transform: scale(1); }
}

.app-fav--card {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(6, 31, 38, .18);
}

.sb-home-list .app-fav--card {
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
}

.sb-home-list .app-fav--card svg {
  width: 19px;
  height: 19px;
}

/* ---------- detay sayfası: kalp + paylaş ---------- */
.app-detail-tools {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.app-fav--hero,
.app-share {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .34);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.app-share svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-fav--hero.is-on {
  background: #fff;
  border-color: #fff;
}

/* ---------- kısa bildirim ---------- */
.app-toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 90;
  max-width: calc(100vw - 40px);
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(11, 35, 52, .94);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  box-shadow: 0 12px 32px rgba(6, 31, 38, .28);
  opacity: 0;
  transform: translate(-50%, 14px);
  transition: opacity .22s ease, transform .22s ease;
  pointer-events: none;
}

.app-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- favoriler sayfası ---------- */
.fav-empty {
  max-width: 420px;
  margin: 12px auto 0;
  padding: 36px 22px;
  text-align: center;
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
}

.fav-empty__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(229, 72, 77, .1);
  color: #E5484D;
}

.fav-empty__icon svg {
  width: 30px;
  height: 30px;
}

.fav-empty__icon svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
}

.fav-empty h2 {
  font-size: 22px;
}

.fav-empty p {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 15.5px;
}

.fav-empty .btn {
  margin-top: 20px;
}
