/* =================================================
 * dijitaldavetiyecim.com - Sablon Ortak Stilleri
 * Tum sablonlar bu CSS'i import eder
 * ================================================= */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* AOS-Lite animasyonlar */
.aos-init {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.aos-init[data-aos="fade-down"]    { transform: translateY(-30px); }
.aos-init[data-aos="fade-left"]    { transform: translateX(30px); }
.aos-init[data-aos="fade-right"]   { transform: translateX(-30px); }
.aos-init[data-aos="zoom-in"]      { transform: scale(0.9); }
.aos-animate {
  opacity: 1 !important;
  transform: translateY(0) translateX(0) scale(1) !important;
}

/* Countdown genel */
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 420px;
  margin: 0 auto;
}
.countdown-box {
  text-align: center;
  padding: 14px 6px;
  border-radius: 12px;
}
.countdown-num {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}
.countdown-label {
  font-size: 0.65rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 6px;
  opacity: 0.85;
}

/* Alt aksiyon bar */
.action-bar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  width: calc(100% - 24px);
  max-width: 460px;
  z-index: 100;
}
.action-bar a, .action-bar button {
  flex: 1;
  padding: 12px 8px;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.82rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: transform 0.2s;
}
.action-bar a:active, .action-bar button:active { transform: scale(0.95); }
.action-bar .btn-wa { background: #25D366; color: #fff; }
.action-bar .btn-wa:hover { background: #20bd5a; }

/* Floating muzik butonu */
#music-toggle {
  position: fixed;
  bottom: 80px;
  right: 16px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  z-index: 99;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: transform 0.2s;
}
#music-toggle:hover { transform: scale(1.08); }

/* RSVP Modal */
.rsvp-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
}
.rsvp-modal.open { display: flex; }
.rsvp-box {
  background: #fff;
  color: #222;
  border-radius: 20px;
  padding: 24px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: rsvpIn 0.3s ease-out;
}
@keyframes rsvpIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.rsvp-box h3 { margin: 0 0 6px 0; font-size: 1.25rem; }
.rsvp-box .rsvp-sub { font-size: 0.85rem; color: #666; margin-bottom: 16px; }
.rsvp-box label { display: block; font-weight: 600; font-size: 0.82rem; margin: 10px 0 4px; }
.rsvp-box input, .rsvp-box textarea, .rsvp-box select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
}
.rsvp-box textarea { min-height: 70px; resize: vertical; }
.rsvp-attend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.rsvp-attend label {
  display: block;
  margin: 0;
  padding: 14px 8px;
  border: 2px solid #ddd;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.rsvp-attend input { position: absolute; opacity: 0; pointer-events: none; }
.rsvp-attend input:checked + span {
  display: block;
}
.rsvp-attend label:has(input:checked) {
  border-color: #16a34a;
  background: #f0fdf4;
  color: #16a34a;
}
.rsvp-attend label[data-val="no"]:has(input:checked) {
  border-color: #dc2626;
  background: #fef2f2;
  color: #dc2626;
}
.rsvp-btns {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.rsvp-btns button {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
}
.rsvp-btns .rsvp-cancel { background: #f3f4f6; color: #444; }
.rsvp-btns .rsvp-send { background: #16a34a; color: #fff; }
.rsvp-btns .rsvp-send:hover { background: #15803d; }
.rsvp-msg { text-align: center; padding: 20px 10px; }
.rsvp-msg .fa-circle-check { color: #16a34a; font-size: 3rem; margin-bottom: 10px; }

/* Preview mode (iframe icinde) - butonlari gizle */
body.preview-mode .action-bar,
body.preview-mode #music-toggle { display: none !important; }

/* Mobil optimizasyon */
@media (max-width: 500px) {
  .countdown-num { font-size: 1.4rem; }
  .action-bar { bottom: 12px; }
  #music-toggle { bottom: 70px; right: 12px; width: 46px; height: 46px; }
}

/* ========= Ucretsiz plan filigrani (free watermark) ========= */
body.has-watermark { padding-bottom: 170px !important; }
.dd-watermark {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  background: rgba(17,24,39,0.78);
  color: #fff;
  border-radius: 50px;
  font-size: 0.72rem;
  line-height: 1;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 150;
  letter-spacing: 0.3px;
  white-space: nowrap;
  max-width: calc(100vw - 32px);
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.dd-watermark i { margin-right: 4px; }
.dd-watermark:hover { background: rgba(17,24,39,0.92); color: #fff; text-decoration: none; }
body.preview-mode .dd-watermark { display: none !important; }

@media (max-width: 420px) {
  .dd-watermark { font-size: 0.65rem; padding: 4px 10px; bottom: 76px; }
  body.has-watermark { padding-bottom: 150px !important; }
}

/* ========= Firma imzasi (B2B davetiye) ========= */
.dd-firm-sign {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%);
  padding: 7px 16px;
  background: linear-gradient(135deg, rgba(99,102,241,0.94), rgba(139,92,246,0.94));
  color: #fff;
  border-radius: 50px;
  font-size: 0.75rem;
  line-height: 1.2;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 500;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 150;
  letter-spacing: 0.2px;
  white-space: nowrap;
  max-width: calc(100vw - 32px);
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 6px 18px rgba(99,102,241,0.4);
}
.dd-firm-sign i { margin-right: 5px; opacity: 0.9; }
body.preview-mode .dd-firm-sign { display: none !important; }

@media (max-width: 420px) {
  .dd-firm-sign { font-size: 0.68rem; padding: 5px 12px; bottom: 76px; }
}
