/* ==========================================================
   Yılbaşı açılır kartı · program paneli · WhatsApp düğmesi
   (yilbasi.js kurar; style.css değişkenlerini kullanır)
   ========================================================== */
:root { --yb-kirmizi: #c43a3f; --yb-altin: #ecd39b; --yb-zumrut: #0d2017; --alt-pay: 78px; }

/* ---------- WhatsApp: İletişime geç ---------- */
.wa-dugme {
  position: fixed; z-index: 120; right: max(16px, env(safe-area-inset-right)); bottom: calc(var(--alt-pay) + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 22px 0 16px; border-radius: 999px;
  background: #1fa855; color: #fff; font-family: var(--f-govde); font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .12) inset;
  transition: transform .35s var(--egri), background .3s;
  animation: wa-gir .8s var(--egri) 1.2s both;
}
.wa-dugme svg { width: 24px; height: 24px; flex: none; }
.wa-dugme:hover { transform: translateY(-3px); background: #22b85d; }
.wa-dugme::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #1fa855;
  animation: wa-dalga 2.6s ease-out 2.4s infinite; pointer-events: none;
}
@keyframes wa-gir { from { opacity: 0; transform: translateY(30px) scale(.8); } }
@keyframes wa-dalga { 0% { opacity: .7; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.35); } }

/* ---------- Açılır kart (solda) ---------- */
.yb-kart {
  position: fixed; z-index: 121; left: max(16px, env(safe-area-inset-left)); bottom: calc(var(--alt-pay) + env(safe-area-inset-bottom));
  width: 350px; border-radius: 22px; overflow: hidden;
  background: radial-gradient(ellipse 90% 70% at 50% 0%, #1f4a33 0%, var(--yb-zumrut) 70%);
  border: 1px solid rgba(236, 211, 155, .55);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 0 6px rgba(236, 211, 155, .08);
  transform: translateX(calc(-100% - 40px)) rotate(-6deg); opacity: 0; pointer-events: none;
  transition: transform .9s cubic-bezier(.34, 1.56, .64, 1), opacity .4s;
}
.yb-kart.acik { transform: none; opacity: 1; pointer-events: auto; }
.yb-kart::before { /* ışıltı */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 240, 200, .28) 45%, transparent 60%);
  transform: translateX(-120%); animation: yb-parilti 4.5s ease-in-out 2s infinite;
}
@keyframes yb-parilti { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.yb-ac {
  all: unset; box-sizing: border-box; display: grid; grid-template-columns: 150px 1fr; align-items: end; width: 100%;
  cursor: pointer; color: var(--raki); position: relative;
}
.yb-gorsel { position: relative; align-self: stretch; overflow: hidden; }
.yb-gorsel img { position: absolute; left: -16px; bottom: -4px; width: 182px; max-width: none; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .5)); }
.yb-rozet {
  position: absolute; z-index: 3; left: 10px; top: 10px; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-content: center; text-align: center; line-height: .9;
  background: var(--yb-kirmizi); color: #fff; font-family: var(--f-baslik); font-size: 24px; font-weight: 600;
  box-shadow: 0 6px 16px -4px rgba(0, 0, 0, .5); transform: rotate(-10deg);
  animation: yb-zipla 2.4s ease-in-out infinite;
}
.yb-rozet small { font-family: var(--f-govde); font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
@keyframes yb-zipla { 50% { transform: rotate(-4deg) scale(1.08); } }
.yb-yazi { display: flex; flex-direction: column; gap: 4px; padding: 18px 18px 18px 6px; }
.yb-ust { font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--yb-altin); }
.yb-yazi strong { font-family: var(--f-baslik); font-weight: 500; font-size: 23px; line-height: 1.05; }
.yb-alt { font-size: 11.5px; line-height: 1.4; opacity: .8; }
.yb-cta {
  margin-top: 8px; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500;
  background: var(--yb-altin); color: var(--yb-zumrut); border-radius: 999px; padding: 7px 14px;
}
.yb-cta i { font-style: normal; transition: transform .3s; }
.yb-ac:hover .yb-cta i { transform: translateX(4px); }
.yb-kapat {
  position: absolute; z-index: 4; right: 8px; top: 8px; width: 30px; height: 30px; border-radius: 50%;
  border: 0; background: rgba(0, 0, 0, .35); color: var(--raki); font-size: 20px; line-height: 1; cursor: pointer;
}
.yb-minik {
  position: fixed; z-index: 121; left: max(16px, env(safe-area-inset-left)); bottom: calc(var(--alt-pay) + env(safe-area-inset-bottom));
  height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(236, 211, 155, .6);
  background: var(--yb-zumrut); color: var(--yb-altin); font-family: var(--f-govde); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  cursor: pointer; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .7);
  transform: translateY(20px); opacity: 0; pointer-events: none; transition: transform .5s var(--egri), opacity .3s;
}
.yb-minik span { color: var(--yb-kirmizi); margin-right: 4px; }
.yb-minik.acik { transform: none; opacity: 1; pointer-events: auto; }

/* ---------- Program paneli ---------- */
.yb-kilit, .yb-kilit body { overflow: hidden; }
.yb-panel { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; }
.yb-perde { position: absolute; inset: 0; background: rgba(5, 10, 6, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .45s; }
.yb-kutu {
  position: relative; width: min(760px, 100%); max-height: calc(100svh - 48px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--yb-zumrut); color: var(--raki); border-radius: 26px; border: 1px solid rgba(236, 211, 155, .45);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9);
  transform: translateY(40px) scale(.96); opacity: 0; transition: transform .55s var(--egri), opacity .4s;
  -webkit-overflow-scrolling: touch;
}
.yb-panel.acik .yb-perde { opacity: 1; }
.yb-panel.acik .yb-kutu { transform: none; opacity: 1; }
.yb-panel-kapat {
  position: sticky; top: 12px; float: right; margin: 12px 12px -54px 0; z-index: 3;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(236, 211, 155, .5);
  background: rgba(13, 32, 23, .8); color: var(--raki); font-size: 24px; line-height: 1; cursor: pointer;
}
.yb-kapak { position: relative; height: 380px; overflow: hidden; }
.yb-kapak-arka { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.yb-kapak::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 32, 23, .2) 0%, rgba(13, 32, 23, 0) 35%, var(--yb-zumrut) 96%); }
.yb-kapak-yazi { position: absolute; z-index: 2; left: 0; right: 0; bottom: 18px; text-align: center; padding: 0 20px; }
.yb-tarih { margin: 0 0 6px; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--yb-altin); }
.yb-kapak h2 { margin: 0; font-family: var(--f-baslik); font-style: italic; font-weight: 400; font-size: clamp(46px, 8vw, 72px); line-height: 1; }
.yb-kapak h2 span { font-style: normal; font-weight: 500; color: var(--yb-altin); }
.yb-kapak-yazi p:last-child { margin: 8px 0 0; font-family: var(--f-baslik); font-style: italic; font-size: 19px; opacity: .9; }

.yb-bolum { padding: 28px clamp(20px, 5vw, 48px); border-top: 1px solid rgba(236, 211, 155, .14); }
.yb-bolum h3 { margin: 0 0 16px; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--yb-altin); font-weight: 500; }
.yb-program { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.yb-satir {
  display: grid; grid-template-columns: 64px 70px 1fr; align-items: center; gap: 14px;
  padding: 8px; border-radius: 16px; background: rgba(255, 255, 255, .035);
}
.yb-satir img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; object-position: 50% 15%; }
.yb-nokta { width: 64px; height: 64px; border-radius: 12px; display: grid; place-items: center; background: rgba(236, 211, 155, .08); }
.yb-nokta::before { content: "★"; color: var(--yb-altin); font-size: 18px; }
.yb-saat { font-family: var(--f-baslik); font-size: 26px; color: var(--yb-altin); }
.yb-icerik { display: flex; flex-direction: column; line-height: 1.25; }
.yb-icerik em { font-style: normal; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; opacity: .7; }
.yb-icerik b { font-family: var(--f-baslik); font-weight: 500; font-size: 20px; }
.yb-icerik small { font-size: 13px; opacity: .75; }

.yb-sofra { display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: center; }
.yb-sofra img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.yb-sofra-liste { margin: 0 0 6px; font-family: var(--f-baslik); font-size: 21px; }
.yb-limitsiz { margin: 0; font-size: 15px; }
.yb-fiyat { margin: 8px 0 0; font-family: var(--f-baslik); font-size: 20px; color: var(--yb-altin); }
.yb-limitsiz strong { color: var(--yb-altin); font-family: var(--f-baslik); font-size: 24px; font-weight: 600; }

.yb-iletisim > p { margin: 0 0 16px; opacity: .85; font-size: 15px; }
.yb-dugmeler { display: flex; flex-wrap: wrap; gap: 12px; }
.yb-wa, .yb-ara {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
}
.yb-wa { background: #1fa855; color: #fff; flex: 1 1 240px; }
.yb-wa svg { width: 22px; height: 22px; }
.yb-ara { border: 1px solid var(--yb-altin); color: var(--yb-altin); flex: 1 1 200px; }
.yb-yer { margin: 18px 0 0 !important; font-size: 12.5px !important; letter-spacing: .06em; opacity: .6 !important; }

/* ---------- telefon ---------- */
@media (max-width: 760px) {
  :root { --alt-pay: 70px; }
  .wa-dugme { height: 48px; padding: 0 16px 0 13px; font-size: 11.5px; gap: 8px; }
  .wa-dugme svg { width: 22px; height: 22px; }
  .yb-kart { width: min(330px, calc(100vw - 32px)); bottom: calc(var(--alt-pay) + 62px + env(safe-area-inset-bottom)); }
  .yb-ac { grid-template-columns: 132px 1fr; }
  .yb-gorsel img { width: 164px; left: -16px; }
  .yb-yazi strong { font-size: 21px; }
  .yb-panel { padding: 0; place-items: end stretch; }
  .yb-kutu { width: 100%; max-height: 94svh; border-radius: 24px 24px 0 0; border-bottom: 0; transform: translateY(100%); }
  .yb-kapak { height: 300px; }
  .yb-satir { grid-template-columns: 52px 58px 1fr; gap: 10px; }
  .yb-satir img, .yb-nokta { width: 52px; height: 52px; }
  .yb-saat { font-size: 21px; }
  .yb-icerik b { font-size: 17px; }
  .yb-sofra { grid-template-columns: 1fr; }
}
/* çok dar telefonlarda (320 px) WhatsApp düğmesi yalnız ikon: yılbaşı düğmesiyle üst üste binmesin */
@media (max-width: 359px) {
  .wa-dugme { width: 48px; padding: 0; justify-content: center; }
  .wa-dugme span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .yb-kart, .yb-kutu, .wa-dugme { transition: none; animation: none; }
  .yb-kart::before, .yb-rozet, .wa-dugme::after { animation: none; }
}
