/* ===== Doğum Günü Teması — Şık Tasarım ===== */
:root {
  --violet: #7c3aed;
  --violet-dark: #5b21b6;
  --coral: #fb7185;
  --coral-dark: #e11d48;
  --gold: #f59e0b;
  --gold-dark: #d97706;
  --teal: #14b8a6;
  --cream: #fffdf7;
  --blush: #fff4f6;
  --lilac: #f5f3ff;
  --ink: #3b2f4a;
  --muted: #8a7d96;
  --white: #fff;
  --shadow: 0 20px 44px -20px rgba(124, 58, 237, .4);
  --radius: 22px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  background:
    radial-gradient(1100px 560px at 8% -8%, #ffe4ec 0%, transparent 55%),
    radial-gradient(1000px 520px at 100% 0%, #ede9fe 0%, transparent 52%),
    radial-gradient(900px 700px at 50% 120%, #fef3c7 0%, transparent 55%),
    var(--cream);
}

/* ===== Konfeti ===== */
.confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.confetti i {
  position: absolute;
  top: -24px;
  width: 11px;
  height: 15px;
  border-radius: 3px;
  opacity: .85;
  animation: fall linear infinite;
}
.confetti i.circle { border-radius: 50%; width: 12px; height: 12px; }
.confetti i.heart  { width: auto; height: auto; font-style: normal; font-size: 15px; background: none; }

@keyframes fall {
  0%   { transform: translateY(-30px) rotate(0deg) scale(1); opacity: 0; }
  8%   { opacity: .9; }
  100% { transform: translateY(112vh) rotate(680deg) scale(.9); opacity: .5; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px 22px 70px;
}

.balloon {
  position: absolute;
  font-size: clamp(44px, 8vw, 88px);
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.14));
  animation: floaty 6s ease-in-out infinite;
}
.b1 { top: 8%; left: 7%; }
.b2 { top: 12%; right: 8%; animation-delay: 1.1s; }
.b3 { bottom: 14%; left: 10%; animation-delay: 2s; }
.b4 { bottom: 12%; right: 10%; animation-delay: .6s; }
.b5 { top: 46%; right: 4%; animation-delay: 1.6s; font-size: clamp(36px, 6vw, 64px); }

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50%      { transform: translateY(-16px) rotate(6deg); }
}

.kicker {
  letter-spacing: .44em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 14px;
}

.title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(54px, 12vw, 124px);
  font-weight: 700;
  line-height: 1.02;
  background: linear-gradient(112deg, var(--violet-dark) 0%, var(--violet) 34%, var(--coral) 68%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0 6px;
}

.script {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(34px, 7vw, 60px);
  color: var(--coral);
  margin: 4px 0 20px;
}

.lead {
  max-width: 640px;
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 34px;
}

/* ===== Şiir ===== */
.poem {
  max-width: 620px;
  margin: 0 auto 36px;
  padding: 30px 38px;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(6px);
  border-radius: 22px;
  border: 1px solid rgba(124, 58, 237, .18);
  box-shadow: 0 22px 48px -26px rgba(124, 58, 237, .55);
  position: relative;
  text-align: center;
}
.poem::before {
  content: "💐";
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 30px;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.15));
}
.poem::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -14px;
  transform: translateX(-50%);
  width: 70px; height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gold), var(--coral), var(--violet));
}
.poem p {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(21px, 3.6vw, 29px);
  line-height: 1.85;
  color: var(--violet-dark);
}
.poem p:nth-child(even) { color: var(--coral-dark); }

.scroll-hint {
  margin-top: 46px;
  font-size: 26px;
  color: var(--violet);
  animation: bounce 1.8s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: .5; }
  50%      { transform: translateY(12px); opacity: 1; }
}

/* ===== Butonlar ===== */
.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  text-decoration: none;
  border-radius: 100px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, opacity .25s;
}
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn:active:not(:disabled) { transform: scale(.97); }

.btn-hero {
  background: linear-gradient(120deg, var(--violet), var(--coral));
  color: #fff;
  padding: 16px 38px;
  font-size: 16px;
  box-shadow: var(--shadow);
}
.btn-hero:hover { transform: translateY(-3px); box-shadow: 0 26px 50px -20px rgba(124, 58, 237, .6); }

.btn-primary {
  background: linear-gradient(120deg, var(--violet), var(--violet-dark));
  color: #fff;
  padding: 15px 32px;
  font-size: 15px;
  box-shadow: 0 14px 30px -14px rgba(91, 33, 182, .8);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-3px); background: linear-gradient(120deg, var(--violet-dark), var(--violet)); }

.btn-ghost {
  background: transparent;
  color: var(--coral-dark);
  border: 2px solid var(--coral);
  padding: 11px 26px;
  font-size: 14px;
  margin-top: 18px;
}
.btn-ghost:hover { background: var(--coral); color: #fff; transform: translateY(-3px); }

/* ===== Bölümler ===== */
main { position: relative; z-index: 1; }

.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 84px 22px;
}
.section-alt {
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.6) 16%, rgba(255,255,255,.6) 84%, transparent);
}
.hide { display: none !important; }

.head { text-align: center; margin-bottom: 44px; }
.icon { font-size: 52px; display: block; margin-bottom: 8px; }

.head h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 5vw, 48px);
  color: var(--violet-dark);
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}
.head h2::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 74px; height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gold), var(--coral));
}
.head p { color: var(--muted); margin-top: 14px; }

/* ===== Giriş kartları ===== */
.login-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}
.login-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 30px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(124, 58, 237, .14);
  position: relative;
  overflow: hidden;
  transition: transform .3s ease;
}
.login-card:hover { transform: translateY(-6px); }
.login-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--violet), var(--coral), var(--gold));
}
.login-card.alt::before { background: linear-gradient(90deg, var(--gold), var(--coral), var(--teal)); }

.login-emoji { font-size: 54px; margin-bottom: 6px; }
.login-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: var(--ink);
  margin-bottom: 6px;
}
.login-sub { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.login-card .input { margin-bottom: 14px; }
.login-card .btn { width: 100%; }

.hint { font-size: 13px; color: var(--muted); margin-top: 10px; min-height: 18px; }

/* ===== Panel / Form ===== */
.panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(124, 58, 237, .14);
  position: relative;
  overflow: hidden;
}
.panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--violet), var(--coral), var(--gold));
}

.panel-title {
  font-family: 'Playfair Display', serif;
  font-size: 23px;
  color: var(--ink);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px dashed #f0e7fb;
}

/* ===== Sekmeler ===== */
.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.tab {
  flex: 1;
  min-width: 160px;
  padding: 14px 18px;
  border: 2px solid #ece5f7;
  background: var(--lilac);
  border-radius: 14px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--muted);
  cursor: pointer;
  transition: all .25s ease;
}
.tab:hover { border-color: var(--violet); color: var(--violet); }
.tab.active {
  background: linear-gradient(120deg, var(--violet), var(--violet-dark));
  border-color: var(--violet);
  color: #fff;
  box-shadow: 0 12px 26px -14px rgba(91, 33, 182, .9);
}

.tab-panel { display: none; flex-direction: column; gap: 18px; }
.tab-panel.active { display: flex; }

/* ===== Form elemanları ===== */
.field { display: flex; flex-direction: column; gap: 8px; position: relative; }
.field label { font-weight: 600; font-size: 14px; color: var(--ink); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }

.input {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: var(--ink);
  padding: 14px 18px;
  border: 2px solid #ece5f7;
  border-radius: 14px;
  background: var(--lilac);
  transition: border-color .25s, background .25s, box-shadow .25s;
  resize: vertical;
  width: 100%;
}
.input:focus {
  outline: none;
  border-color: var(--violet);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, .14);
}
.input::placeholder { color: #b9aecd; }

select.input { cursor: pointer; appearance: auto; }

.msg {
  min-height: 22px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}
.msg.ok  { color: #16a34a; }
.msg.err { color: #dc2626; }

/* ===== Etiketler (kayıtlı anneler) ===== */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 2px solid transparent;
  background-image: linear-gradient(var(--white), var(--white)), linear-gradient(120deg, var(--violet), var(--coral), var(--gold));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border-radius: 100px;
  padding: 11px 22px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  box-shadow: 0 10px 24px -16px rgba(124, 58, 237, .8);
  animation: pop .45s cubic-bezier(.2,.9,.3,1.4) both;
}
.tag .tag-heart { animation: beat 1.6s ease-in-out infinite; }
.tag::before { content: "🎂"; font-size: 16px; }

@keyframes beat {
  0%, 100% { transform: scale(1); }
  25%      { transform: scale(1.2); }
  40%      { transform: scale(1); }
  60%      { transform: scale(1.12); }
}

/* ===== Panel ızgarası ===== */
.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 26px;
  align-items: start;
}

.list { display: flex; flex-direction: column; gap: 16px; }

/* ===== Dilek kartları ===== */
.wish {
  background: linear-gradient(180deg, var(--blush), var(--white));
  border: 1px solid rgba(251, 113, 133, .2);
  border-radius: 16px;
  padding: 20px 22px;
  position: relative;
  animation: pop .45s cubic-bezier(.2,.9,.3,1.4) both;
}
.wish::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  border-radius: 16px 0 0 16px;
  background: linear-gradient(180deg, var(--coral), var(--violet));
}
.wish-text {
  font-size: 15.5px;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 14px;
}
.wish-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  border-top: 1px dashed #f3e2e8;
  padding-top: 12px;
}
.wish-from {
  font-weight: 600;
  color: var(--violet);
  background: var(--lilac);
  padding: 4px 12px;
  border-radius: 100px;
}

/* ===== Rözet ===== */
.to-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(120deg, var(--gold), var(--coral));
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 100px;
  margin-bottom: 18px;
  box-shadow: 0 12px 26px -14px rgba(251, 113, 133, .9);
}

/* ===== Fotoğraf galerisi ===== */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}
.photo-card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 36px -22px rgba(59, 47, 74, .7);
  border: 1px solid rgba(124, 58, 237, .14);
  transition: transform .3s ease, box-shadow .3s ease;
  animation: pop .5s cubic-bezier(.2,.9,.3,1.3) both;
}
.photo-card:hover {
  transform: translateY(-7px) scale(1.015);
  box-shadow: 0 26px 48px -24px rgba(124, 58, 237, .6);
}
.photo-card .frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--lilac), var(--blush));
}
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.photo-card:hover img { transform: scale(1.06); }
.photo-card figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  flex-wrap: wrap;
}
.photo-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(120deg, var(--violet), var(--coral));
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.photo-by {
  font-size: 12px;
  color: var(--muted);
}

/* ===== Fotoğraf yükleme ===== */
.upload-panel { margin-bottom: 30px; }
.upload-hint { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.upload-tag {
  display: none;
  width: fit-content;
  background: linear-gradient(120deg, var(--gold), var(--coral));
  color: #fff;
  font-weight: 600;
  font-size: 13.5px;
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.upload-tag.show { display: inline-flex; align-items: center; gap: 7px; }

.upload-zone {
  border: 3px dashed #d9ccee;
  border-radius: 18px;
  background: var(--lilac);
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}
.upload-zone:hover,
.upload-zone.drag {
  border-color: var(--violet);
  background: #ede9fe;
  transform: translateY(-2px);
}
.upload-icon { font-size: 46px; display: block; margin-bottom: 6px; }
.upload-text { font-size: 15px; color: var(--ink); font-weight: 500; }
.upload-text span { color: var(--muted); font-weight: 400; font-size: 13.5px; }

.preview {
  max-width: 100%;
  max-height: 280px;
  border-radius: 14px;
  margin-top: 16px;
  box-shadow: 0 14px 32px -18px rgba(0,0,0,.6);
  display: block;
}

.upload-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.btn-small { padding: 12px 24px; font-size: 14px; margin-top: 0; }

/* ===== Empty ===== */
.empty {
  text-align: center;
  color: var(--muted);
  font-size: 14.5px;
  padding: 30px 16px;
  background: rgba(255,255,255,.7);
  border: 2px dashed #ece5f7;
  border-radius: 16px;
}

/* ===== Footer ===== */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 46px 22px 34px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.85));
  border-top: 1px solid rgba(124, 58, 237, .14);
}
.footer p {
  font-family: 'Great Vibes', cursive;
  font-size: 36px;
  color: var(--coral);
}
.footer small { color: var(--muted); letter-spacing: .16em; text-transform: uppercase; font-size: 11px; }

/* ===== Toast ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: -110px;
  transform: translateX(-50%);
  background: linear-gradient(120deg, var(--violet-dark), var(--coral));
  color: #fff;
  padding: 15px 30px;
  border-radius: 100px;
  font-size: 14.5px;
  font-weight: 500;
  box-shadow: 0 20px 40px -16px rgba(124, 58, 237, .85);
  transition: bottom .45s cubic-bezier(.2,.9,.3,1.2);
  z-index: 999;
  max-width: 90vw;
  text-align: center;
}
.toast.show { bottom: 34px; }

/* ===== Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

@keyframes pop {
  from { opacity: 0; transform: translateY(14px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .balloon { font-size: 42px; opacity: .85; }
  .panel { padding: 24px 18px; }
  .section { padding: 64px 18px; }
  .field-row { grid-template-columns: 1fr; }
  .tab { min-width: 100%; }
}
