/* Doğum Günüme Kaç Gün? — açık, kutlamalı görünüm. body[data-renk] tema rengini, body[data-tema] süsü seçer. */
:root {
  --zemin: #fff4f7; --kart: #ffffff; --cizgi: #f0dfe5; --yazi: #2b2126; --soluk: #7d6a72; --r: 20px;
  --a: #e2457a; --b: #ffd0df; --c: #fff0f5;
}
body[data-renk="mor"]     { --a: #8a4fd8; --b: #e3d3ff; --c: #f6f0ff; --zemin: #f8f4ff; }
body[data-renk="mavi"]    { --a: #2f7fd8; --b: #cfe4ff; --c: #eff6ff; --zemin: #f2f8ff; }
body[data-renk="yesil"]   { --a: #1f9a6b; --b: #c9f0de; --c: #effbf5; --zemin: #f1fbf6; }
body[data-renk="turuncu"] { --a: #e0702a; --b: #ffdcc4; --c: #fff4ec; --zemin: #fff6ef; }
body[data-renk="gold"]    { --a: #b07d22; --b: #f5e1ad; --c: #fff8e8; --zemin: #fffaf0; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100dvh; color: var(--yazi); background: var(--zemin);
  background-image: radial-gradient(circle at 15% 0%, var(--b) 0, transparent 45%), radial-gradient(circle at 100% 60%, var(--c) 0, transparent 50%);
  background-attachment: fixed;
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent; overflow-x: hidden;
}
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.sar { position: relative; z-index: 2; max-width: 520px; margin: 0 auto; padding: 14px 16px 32px; }
.gizli { display: none !important; }

.ust { display: flex; justify-content: center; margin-bottom: 10px; }
.hap { text-decoration: none; font-size: 13px; padding: 6px 12px; border-radius: 99px; background: #fff; border: 1px solid var(--cizgi); color: var(--soluk); }
.hap b { color: var(--yazi); }

/* süs katmanı */
.sahne { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.balon { position: absolute; bottom: -140px; width: 54px; height: 66px; border-radius: 50% 50% 48% 48%; opacity: .85;
  animation: uc linear infinite; }
.balon::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 60px; background: rgba(0,0,0,.18); }
.balon::before { content: ""; position: absolute; left: 22%; top: 16%; width: 12px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.55); }
@keyframes uc { from { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-60vh) rotate(5deg); } to { transform: translateY(-125vh) rotate(-4deg); } }
.parca { position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 2px; opacity: .9; animation: dus linear infinite; }
@keyframes dus { from { transform: translateY(0) rotate(0); } to { transform: translateY(110vh) rotate(540deg); } }
#konfeti { position: fixed; inset: 0; z-index: 3; pointer-events: none; width: 100%; height: 100%; }
@media (prefers-reduced-motion: reduce) { .balon, .parca { animation: none; display: none; } }

/* giriş + form */
#form-alani { text-align: center; }
.pasta { font-size: 58px; line-height: 1; margin-top: 6px; animation: zipla 2.4s ease-in-out infinite; }
@keyframes zipla { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
h1 { font-size: clamp(34px, 10vw, 46px); line-height: 1.04; margin: 8px 0 10px; letter-spacing: -0.02em; }
h1 em { font-style: normal; color: var(--a); }
.alt { color: var(--soluk); margin: 0 auto 18px; max-width: 420px; }
.kart { background: var(--kart); border: 1px solid var(--cizgi); border-radius: var(--r); padding: 18px 16px; box-shadow: 0 10px 30px -18px rgba(80, 20, 50, .35); }
#form { text-align: left; }
.etiket { display: block; font-weight: 700; font-size: 14px; margin: 14px 0 6px; }
.etiket:first-child { margin-top: 0; }
.istege { font-weight: 400; color: var(--soluk); }
input, select { width: 100%; padding: 12px 13px; border-radius: 12px; border: 1.5px solid var(--cizgi); background: #fff; font-size: 16px; }
input:focus, select:focus { outline: none; border-color: var(--a); box-shadow: 0 0 0 3px var(--b); }
.ikili { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kucuk { font-size: 13px; color: var(--soluk); margin: 6px 0 0; }
.orta { text-align: center; }
.renkler { display: flex; gap: 10px; flex-wrap: wrap; }
.renk { width: 40px; height: 40px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--cizgi); padding: 0; }
.renk[aria-checked="true"] { box-shadow: 0 0 0 3px var(--yazi); }
.cipler { display: flex; gap: 8px; }
.cip { flex: 1; padding: 10px; border-radius: 12px; border: 1.5px solid var(--cizgi); background: #fff; font-weight: 600; }
.cip[aria-checked="true"] { border-color: var(--a); background: var(--c); color: var(--a); }
.liste-ac { margin-top: 14px; border: 1.5px dashed var(--cizgi); border-radius: 12px; padding: 10px 12px; }
.liste-ac summary { font-weight: 700; font-size: 14px; cursor: pointer; }
.liste-ac input { margin-top: 10px; }
.hata { color: #c0392b; font-size: 14px; min-height: 1em; margin: 10px 0 0; }

.dugme { display: block; width: 100%; text-align: center; text-decoration: none; border: 0; border-radius: 14px; padding: 14px 16px;
  font-weight: 700; font-size: 16px; background: var(--a); color: #fff; margin-top: 10px; box-shadow: 0 8px 18px -10px var(--a); }
.dugme:active { transform: scale(.98); }
.dugme.ikincil { background: #fff; color: var(--yazi); border: 1.5px solid var(--cizgi); box-shadow: none; }
.dugme.ince { background: var(--c); color: var(--yazi); border: 1.5px solid var(--cizgi); box-shadow: none; font-size: 14px; padding: 12px 10px; }
.dugme.wa { background: #25d366; box-shadow: 0 8px 18px -10px #25d366; }

/* geri sayım kartı */
.geri-sayim { text-align: center; padding: 22px 16px 20px; border-top: 6px solid var(--a); }
.k-ust { display: inline-block; font-size: 13px; font-weight: 700; color: var(--a); background: var(--c); padding: 5px 12px; border-radius: 99px; }
.k-baslik { font-size: clamp(26px, 7.4vw, 34px); line-height: 1.12; margin: 12px 0 14px; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.k-baslik em { font-style: normal; color: var(--a); }
.kutucuklar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kutucuklar div { background: var(--c); border-radius: 14px; padding: 10px 2px 8px; }
.kutucuklar b { display: block; font-size: clamp(26px, 8vw, 36px); line-height: 1.05; font-variant-numeric: tabular-nums; color: var(--a); }
.kutucuklar span { font-size: 12px; color: var(--soluk); }
.k-ozet { font-size: 18px; font-weight: 700; margin: 14px 0 2px; }
.k-tarih { color: var(--soluk); font-size: 14px; margin: 0; }
.dilek { margin-top: 16px; background: var(--c); border-radius: 14px; padding: 12px 14px; }
.dilek span { font-size: 12px; font-weight: 700; color: var(--a); text-transform: uppercase; letter-spacing: .04em; }
.dilek p { margin: 4px 0 0; font-size: 17px; font-style: italic; overflow-wrap: anywhere; }

/* kutlama modu */
body.kutlama .kutucuklar { display: none; }
body.kutlama .k-baslik { font-size: clamp(34px, 10vw, 46px); animation: atim 1.6s ease-in-out infinite; }
@keyframes atim { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

.dugmeler { margin-top: 6px; }
.paylas { margin-top: 18px; }
.paylas h3, .oneri h3 { margin: 0 0 4px; font-size: 19px; }
.paylas .dugme.wa { margin-top: 8px; }
.paylas .ikili .dugme { margin-top: 8px; }

/* hediye kutusu */
.oneri { margin-top: 22px; background: #fff; border: 1.5px solid var(--cizgi); border-radius: var(--r); padding: 16px; }
.oneri-alt { color: var(--soluk); font-size: 14px; margin: 0 0 12px; }
.urunler { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.urun { display: flex; flex-direction: column; text-decoration: none; border: 1px solid var(--cizgi); border-radius: 14px; overflow: hidden; background: #fff; }
.urun img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: #f6f1ee; }
.urun b { font-size: 13px; line-height: 1.3; padding: 8px 9px 4px; }
.urun span { margin: auto 9px 9px; font-size: 13px; font-weight: 700; color: var(--a); }

.alt-dugmeler { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.alt-dugmeler .dugme { margin-top: 0; }
.imza { text-align: center; color: var(--soluk); font-size: 12px; margin-top: 26px; }
