/* ============================================================
   İŞLETMEYE ÖZEL CLUB PROFİLİ — yerleşim, yazı karakteri, hikâye,
   olanaklar, imza lezzetler, galeri, Club ayrıcalıkları, Club kartı
   Renk: işletmenin tema rengi (--vb). Zemin açık tema (--ink, --surface).
   ============================================================ */

/* ---- Yazı karakteri: başlık, bölüm başlığı ve hikâye ---- */
.venue-profile[data-font="serif"]   { --vp-font: 'Fraunces', Georgia, 'Times New Roman', serif; }
.venue-profile[data-font="rounded"] { --vp-font: 'Nunito', ui-rounded, 'SF Pro Rounded', system-ui, sans-serif; }
.venue-profile[data-font="mono"]    { --vp-font: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace; }
.venue-profile[data-font]:not([data-font="modern"]) .vp-name,
.venue-profile[data-font]:not([data-font="modern"]) .cp-about p,
.venue-profile[data-font]:not([data-font="modern"]) .cp-sigc b,
.venue-profile[data-font]:not([data-font="modern"]) .cp-perk b { font-family: var(--vp-font); }
.venue-profile[data-font="serif"] .vp-name { font-weight: 500; letter-spacing: -.02em; }
.venue-profile[data-font="rounded"] .vp-name { font-weight: 800; letter-spacing: -.02em; }
.venue-profile[data-font="mono"] .vp-name { font-weight: 500; letter-spacing: -.04em; text-transform: lowercase; }

/* ---- Sinema: uzun kapak, ad kapağın üstünde ---- */
.venue-profile[data-layout="cinema"] .vp-hero { height: min(62vh, 520px); }
.venue-profile[data-layout="cinema"] .vp-hero-fade { background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.72) 100%); }
.venue-profile[data-layout="cinema"] .vp-mark { left: 18px; bottom: 112px; transform: none; width: 64px; height: 64px; }
.venue-profile[data-layout="cinema"] .vp-hero-txt { margin-top: -104px; background: transparent; text-align: left; padding: 0 18px 20px; }
.venue-profile[data-layout="cinema"] .vp-name,
.venue-profile[data-layout="cinema"] .vp-sub,
.venue-profile[data-layout="cinema"] .vp-id { color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.venue-profile[data-layout="cinema"] .vp-body { background: #fff; border-radius: 26px 26px 0 0; position: relative; z-index: 2; padding-top: 6px; }

/* ---- Dergi: sola yaslı, büyük başlık, ince çizgi, hikâye öne çıkar ---- */
.venue-profile[data-layout="editorial"] .vp-hero { height: 210px; }
.venue-profile[data-layout="editorial"] .vp-mark { left: 18px; transform: none; width: 72px; height: 72px; bottom: -36px; }
.venue-profile[data-layout="editorial"] .vp-hero-txt { text-align: left; padding-top: 52px; border-radius: 0; margin-top: 0; }
.venue-profile[data-layout="editorial"] .vp-name { font-size: clamp(34px, 10vw, 46px); line-height: 1.02; }
.venue-profile[data-layout="editorial"] .vp-hero-txt::after { content: ""; display: block; height: 2px; width: 44px; background: var(--vb, #3D7BEF); margin-top: 14px; }
.venue-profile[data-layout="editorial"] .cp-about p { font-size: 19px; line-height: 1.5; }

/* ---- Sade: kısa kapak, logo odaklı, kompakt ---- */
.venue-profile[data-layout="compact"] .vp-hero { height: 150px; }
.venue-profile[data-layout="compact"] .vp-mark { width: 84px; height: 84px; bottom: -42px; }
.venue-profile[data-layout="compact"] .vp-hero-txt { padding-top: 58px; }
.venue-profile[data-layout="compact"] .vp-name { font-size: clamp(24px, 7vw, 30px); }

/* ---- Vitrin: ad üst şeritte ortada, köşeleri yuvarlak kapak, konum ve puan satırı, imza lezzetler diğer yerleşimlerle aynı.
        Alt düğmeler Truva'nın sabit düğme tasarımıdır. Logo gösterilmez (kapak öne çıkar). ---- */
.vp-rate { display: none; }
.venue-profile[data-layout="showcase"] .vp-scroll { position: relative; }
.venue-profile[data-layout="showcase"] .vp-hero { height: auto; aspect-ratio: 4 / 3; max-height: 300px; margin: calc(62px + env(safe-area-inset-top)) 16px 0; border-radius: 22px; }
.venue-profile[data-layout="showcase"] .vp-hero img,
.venue-profile[data-layout="showcase"] .vp-hero-clip,
.venue-profile[data-layout="showcase"] .vp-hero-fade { border-radius: 22px; }
.venue-profile[data-layout="showcase"] .vp-hero-fade { background: none; }
.venue-profile[data-layout="showcase"] .vp-mark { display: none; }
.venue-profile[data-layout="showcase"] .vp-back,
.venue-profile[data-layout="showcase"] .vp-fav { top: -52px; background: #F2F2F5; border: 0; color: #111; backdrop-filter: none; -webkit-backdrop-filter: none; }
.venue-profile[data-layout="showcase"] .vp-back { left: 0; }
.venue-profile[data-layout="showcase"] .vp-fav { right: 0; }
.venue-profile[data-layout="showcase"] .vp-fav.on { color: #FF375F; }
.venue-profile[data-layout="showcase"] .vp-hero-txt { position: static; margin: 0; padding: 14px 18px 0; background: none; border-radius: 0; text-align: left;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; }
.venue-profile[data-layout="showcase"] .vp-name { position: absolute; top: calc(14px + env(safe-area-inset-top)); left: 64px; right: 64px; height: 38px; line-height: 38px;
  text-align: center; font-size: 18px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.venue-profile[data-layout="showcase"] .vp-sub { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.venue-profile[data-layout="showcase"] .vp-rate:not([hidden]) { display: inline-flex; gap: 4px; align-items: center; font-size: 14px; font-weight: 600; color: var(--ink, #111); }
.venue-profile[data-layout="showcase"] .vp-rate span { color: #F5A623; }
.venue-profile[data-layout="showcase"] .vp-id,
.venue-profile[data-layout="showcase"] .vp-visits { grid-column: 1 / -1; }
.venue-profile[data-layout="showcase"] .vp-id { margin-top: 8px; font-size: 14px; line-height: 1.5; color: #6E6E73;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.venue-profile[data-layout="showcase"] .vp-body { display: flex; flex-direction: column; }
.venue-profile[data-layout="showcase"] .vp-body > * { order: 3; }
.venue-profile[data-layout="showcase"] #vpReward { order: 0; }
.venue-profile[data-layout="showcase"] #vpClubTop { order: 1; }
.venue-profile[data-layout="showcase"] #vpSigSec { order: 2; border-top: 0; }
.venue-profile[data-layout="showcase"] .vp-h { font-size: 19px; font-weight: 600; letter-spacing: -.015em; text-transform: none; color: var(--ink, #111); }

/* ---- Hikâye, olanaklar, galeri ---- */
.vp-club-top { display: grid; gap: 16px; padding: 18px 0 4px; }
.cp-about p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink, #111); text-wrap: pretty; max-width: 62ch; }
.cp-since { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--vb, #3D7BEF); margin-bottom: 6px; }
.cp-amen { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-am { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; background: var(--surface, #F2F2F2); color: var(--ink, #111); font-size: 13px; font-weight: 500; }
.cp-am svg { width: 15px; height: 15px; color: var(--vb, #3D7BEF); flex-shrink: 0; }
.cp-gal { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -18px; padding: 0 18px 2px; scrollbar-width: none; }
.cp-gal::-webkit-scrollbar { display: none; }
.cp-ph { flex: 0 0 auto; width: 46%; max-width: 220px; aspect-ratio: 4 / 5; border-radius: 16px; border: 0; background: var(--surface, #F2F2F2) center / cover no-repeat; scroll-snap-align: start; cursor: pointer; }
.cp-ph:first-child { width: 62%; max-width: 280px; }
.cp-view { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px); }
.cp-view img { max-width: 100%; max-height: 82vh; object-fit: contain; }
.cp-vx { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 24px; cursor: pointer; }
.cp-vc { position: absolute; left: 0; right: 0; bottom: calc(46px + env(safe-area-inset-bottom, 0px)); text-align: center; color: #fff; font-size: 14px; padding: 0 16px; }
.cp-vn { position: absolute; left: 0; right: 0; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); text-align: center; color: rgba(255,255,255,.6); font-size: 12px; }

/* ---- İmza lezzetler ---- */
.cp-sig { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cp-sigc { display: grid; gap: 3px; text-align: left; padding: 0 0 4px; border: 0; background: none; cursor: pointer; color: var(--ink, #111); min-width: 0; }
.cp-sigi { aspect-ratio: 1 / 1; border-radius: 16px; background: color-mix(in srgb, var(--vb, #3D7BEF) 12%, #fff) center / cover no-repeat; display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 700; color: var(--vb, #3D7BEF); margin-bottom: 5px; }
.cp-sigc b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-sigc small { font-size: 13px; color: var(--ink-2, #6E6E73); font-variant-numeric: tabular-nums; }

/* ---- Club ayrıcalıkları ---- */
#vpPerks { display: grid; gap: 10px; }
.cp-perk { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: #fff; border: 1px solid rgba(0,0,0,.08); box-shadow: 0 8px 24px -16px rgba(0,0,0,.3); }
.cp-perk.ready { border-color: color-mix(in srgb, var(--vb, #3D7BEF) 40%, #fff); background: color-mix(in srgb, var(--vb, #3D7BEF) 6%, #fff); }
.cp-perk.off { opacity: .62; box-shadow: none; }
.cp-badge { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--vb, #3D7BEF); color: #fff; }
.cp-badge.t { font-size: 15px; font-weight: 800; letter-spacing: -.02em; }
.cp-badge svg { width: 24px; height: 24px; }
.cp-pt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.cp-pt b { font-size: 15px; font-weight: 650; color: var(--ink, #111); }
.cp-pt span { font-size: 13px; color: var(--ink, #111); line-height: 1.4; }
.cp-pt small { font-size: 12px; color: var(--ink-2, #6E6E73); line-height: 1.4; }
.cp-pt em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--ink-2, #6E6E73); }
.cp-use { flex: 0 0 auto; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--ink, #111); color: #fff; font-weight: 650; font-size: 14px; cursor: pointer; }
.cp-use:disabled { background: var(--surface-2, #E8E8E8); color: var(--ink-2, #6E6E73); cursor: default; }
.cp-use:not(:disabled):active { transform: scale(.96); }

/* ---- Programa katıl ---- */
.cp-join { display: grid; gap: 10px; margin-top: 12px; }
.cp-join small { font-size: 12px; color: var(--ink-2, #6E6E73); }
.cp-terms { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--ink, #111); }
.cp-terms input { margin-top: 2px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--vb, #3D7BEF); }

/* ---- Mekânın kendi sadakat uygulaması ---- */
.cp-own { display: grid; gap: 12px; }
.cp-own p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink, #111); }
.cp-own-card { display: grid; gap: 4px; padding: 18px; border-radius: 20px; color: #fff;
  background: linear-gradient(135deg, var(--vb, #3D7BEF) 0%, color-mix(in srgb, var(--vb, #3D7BEF) 70%, #000) 100%); }
.cp-own-card small { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.cp-own-card > b { font-size: 22px; font-weight: 700; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.cp-own-st { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: 14px; }
.cp-own-st b { font-size: 22px; }
.cp-own-n { font-size: 13px; opacity: .92; line-height: 1.45; }
.cp-own-u { margin-top: 4px; text-transform: none !important; letter-spacing: 0 !important; }
.cp-link-x { justify-self: start; margin-top: 8px; background: rgba(255,255,255,.18); color: #fff; border: 0; border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 600; cursor: pointer; }
.cp-own-form { display: grid; gap: 10px; }
.cp-own-form label > span { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2, #6E6E73); margin-bottom: 5px; }
.cp-own-form input:not([type]) , .cp-own-form input[id="cpOwnNo"] { width: 100%; box-sizing: border-box; min-height: 46px; border-radius: 12px; border: 1px solid rgba(0,0,0,.14); padding: 0 14px; font-size: 16px; background: #fff; color: var(--ink, #111); }
.cp-own-app { font-size: 14px; font-weight: 600; color: var(--vb, #3D7BEF); text-decoration: none; }

/* ---- Club kartı (kasada göster) ---- */
.cp-pass { border-radius: 24px; padding: 20px 18px 18px; color: #fff; display: grid; gap: 6px; text-align: center;
  background: radial-gradient(circle at 90% -10%, rgba(255,255,255,.22), transparent 50%), linear-gradient(150deg, var(--vb, #3D7BEF) 0%, color-mix(in srgb, var(--vb, #3D7BEF) 62%, #000) 100%); }
.cp-pass-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; font-weight: 650; }
.cp-pass-m { font-size: 10px; letter-spacing: .16em; opacity: .8; }
.cp-pass-who { text-align: left; font-size: 13px; opacity: .85; }
.cp-code { font-size: clamp(44px, 15vw, 60px); font-weight: 700; letter-spacing: .08em; font-variant-numeric: tabular-nums; margin: 14px 0 4px; line-height: 1; }
.cp-code.dead { opacity: .35; text-decoration: line-through; }
.cp-what { font-size: 14px; font-weight: 600; }
.cp-ttl { height: 4px; border-radius: 4px; background: rgba(255,255,255,.22); overflow: hidden; margin-top: 12px; }
.cp-ttl i { display: block; height: 100%; width: 100%; background: #fff; transition: width 1s linear; }
.cp-ttl-t { font-size: 12px; opacity: .85; font-variant-numeric: tabular-nums; }
.cp-pass-ov .btn { width: 100%; margin-top: 12px; }
.cp-done { display: grid; justify-items: center; gap: 8px; padding: 24px 0 18px; text-align: center; }
.cp-done span { width: 64px; height: 64px; border-radius: 50%; background: #34C759; color: #fff; font-size: 32px; display: flex; align-items: center; justify-content: center; }
.cp-done b { font-size: 20px; color: var(--ink, #111); }
.cp-done small { font-size: 14px; color: var(--ink-2, #6E6E73); }

/* ---- Ana sayfa: Club ayrıcalıkları ---- */
.cp-hrow { display: flex; gap: 10px; overflow-x: auto; margin: 10px -20px 0; padding: 0 20px 4px; scrollbar-width: none; }
.cp-hrow::-webkit-scrollbar { display: none; }
.cp-hc { flex: 0 0 auto; width: 240px; max-width: 78vw; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; border: 1px solid rgba(0,0,0,.08); background: #fff; text-align: left; cursor: pointer; }
.cp-hc .cp-badge { width: 46px; height: 46px; background: var(--ink, #111); }
.cp-hct { min-width: 0; display: grid; gap: 2px; }
.cp-hct b { font-size: 14px; font-weight: 650; color: var(--ink, #111); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-hct small { font-size: 12px; color: var(--ink-2, #6E6E73); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) { .cp-ttl i { transition: none; } }

/* Kasada okutulacak Club QR (garson telefonuyla): beyaz zeminde, kodun üstünde */
.cp-qr { width: min(62vw, 240px); aspect-ratio: 1; margin: 6px auto 4px; padding: 10px; background: #fff; border-radius: 18px; }
.cp-qr svg { display: block; width: 100%; height: 100%; }
.cp-code.dead + .cp-what, .cp-pass:has(.cp-code.dead) .cp-qr { opacity: .25; }

/* Ana düğme işletmenin tema renginde (biçim Truva'nın sabit düğmesi; tema rengi yoksa varsayılan renk kalır) */
.venue-profile[data-cta] .vp-ctabar #vpCta:not(.closed) { background: var(--vcta); color: var(--vcta-t); }
