/* ===================================================
   METE & BÜŞRA — GELECEĞE MEKTUP (ZAMAN KAPSÜLÜ)
   =================================================== */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: radial-gradient(circle at top, #fff0f3 0%, #fff6f8 40%, #fbe7ec 100%);
  color: #2f3542;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.hidden {
  display: none !important;
}

/* ─── UÇUŞAN SÜSLER ─────────────────────────────────── */
.m-floating-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.m-heart {
  position: absolute;
  font-size: 1.8rem;
  opacity: 0.25;
  animation: floatHeart 12s linear infinite;
}

.m-heart:nth-child(1) { top: 15%; left: 8%; animation-duration: 14s; }
.m-heart:nth-child(2) { top: 70%; left: 12%; animation-duration: 18s; animation-delay: 2s; }
.m-heart:nth-child(3) { top: 25%; right: 10%; animation-duration: 16s; animation-delay: 1s; }
.m-heart:nth-child(4) { top: 80%; right: 15%; animation-duration: 20s; animation-delay: 3s; }
.m-heart:nth-child(5) { top: 45%; left: 4%; animation-duration: 15s; }
.m-heart:nth-child(6) { top: 60%; right: 6%; animation-duration: 17s; }

@keyframes floatHeart {
  0% { transform: translateY(0) rotate(0deg); opacity: 0.2; }
  50% { transform: translateY(-25px) rotate(15deg); opacity: 0.35; }
  100% { transform: translateY(0) rotate(0deg); opacity: 0.2; }
}

/* ─── HEADER ────────────────────────────────────────── */
.m-header {
  background: linear-gradient(135deg, #a55eea 0%, #8854d0 100%);
  color: white;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 6px 25px rgba(136, 84, 208, 0.3);
  backdrop-filter: blur(10px);
}

.m-back {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: all 0.25s ease;
  white-space: nowrap;
}
.m-back:hover {
  background: white;
  color: #8854d0;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.m-header-center {
  text-align: center;
  flex: 1;
}

.m-title {
  font-family: "Dancing Script", cursive;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.m-subtitle {
  font-size: 0.85rem;
  opacity: 0.9;
  letter-spacing: 0.03em;
  margin-top: 2px;
}

.m-header-tag {
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  white-space: nowrap;
}

/* ─── ANA KAPSAYICI ─────────────────────────────────── */
.m-container {
  max-width: 740px;
  margin: 3rem auto 5rem;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}

/* ─── GENEL KART STİLİ ──────────────────────────────── */
.m-card {
  background: white;
  border-radius: 32px;
  padding: 3rem 2.5rem;
  box-shadow: 0 20px 60px rgba(136, 84, 208, 0.12),
              0 2px 10px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(165, 94, 234, 0.18);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.m-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #a55eea, #8854d0, #ff758c);
}

.m-card-badge {
  display: inline-block;
  background: #f1f2f6;
  color: #8854d0;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 12px;
}
.m-card-badge.open {
  background: #ffeaa7;
  color: #d63031;
}

.m-card-title {
  font-family: "Dancing Script", cursive;
  font-size: 2.6rem;
  color: #2f3542;
  margin-bottom: 8px;
  line-height: 1.15;
}

.m-card-desc {
  font-size: 0.95rem;
  color: #747d8c;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto 2rem;
}

/* ─── 1. FORM (MEKTUP YAZMA) ────────────────────────── */
.m-letter-envelope {
  background: #fbf9f5;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.04),
              0 4px 20px rgba(0, 0, 0, 0.04);
  border: 2px dashed rgba(165, 94, 234, 0.25);
  margin-bottom: 2rem;
}

.m-letter-paper {
  background: white;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  position: relative;
}

.m-textarea {
  width: 100%;
  height: 220px;
  border: none;
  font-family: "Caveat", cursive, "Poppins", sans-serif;
  font-size: 1.35rem;
  line-height: 2rem;
  color: #2f3542;
  resize: none;
  background: transparent;
  outline: none;
  background-attachment: local;
  background-image: repeating-linear-gradient(
    transparent,
    transparent 1.95rem,
    rgba(165, 94, 234, 0.12) 1.95rem,
    rgba(165, 94, 234, 0.12) 2rem
  );
}

.m-lock-btn {
  background: linear-gradient(135deg, #a55eea 0%, #8854d0 100%);
  color: white;
  border: none;
  padding: 16px 42px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(136, 84, 208, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.m-lock-btn:hover {
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 15px 40px rgba(136, 84, 208, 0.55);
}

/* ─── 2. KİLİTLİ KAPSÜL (CANLI SAYAÇ & MÜHÜR) ────────── */
.m-seal-wrapper {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.m-seal-glow {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(165, 94, 234, 0.3) 0%, transparent 70%);
  animation: sealPulse 2.5s infinite ease-in-out;
}

@keyframes sealPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 0.9; }
}

.m-seal-icon {
  position: relative;
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #a55eea 0%, #8854d0 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  box-shadow: 0 10px 30px rgba(136, 84, 208, 0.45),
              inset 0 -3px 8px rgba(0, 0, 0, 0.2);
  border: 3px solid rgba(255, 255, 255, 0.85);
}

.m-sealed-date {
  display: inline-block;
  background: #f7f1fc;
  color: #8854d0;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 2rem;
  border: 1px solid rgba(136, 84, 208, 0.2);
}

/* Geri Sayım Kutucukları */
.m-countdown-section {
  background: #faf8fd;
  border-radius: 24px;
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(165, 94, 234, 0.15);
}

.m-countdown-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #747d8c;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.m-countdown-boxes {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.m-cbox {
  background: white;
  min-width: 90px;
  padding: 14px 10px;
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(136, 84, 208, 0.12);
  border: 1px solid rgba(165, 94, 234, 0.15);
  transition: transform 0.25s ease;
}
.m-cbox:hover {
  transform: translateY(-3px);
}

.m-cbox span {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  color: #8854d0;
  line-height: 1.1;
}

.m-cbox small {
  font-size: 0.75rem;
  color: #a4b0be;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.m-lock-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f1f2f6;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #57606f;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ed573;
  box-shadow: 0 0 8px #2ed573;
}

/* ─── 3. AÇILMIŞ MEKTUP GÖRÜNÜMÜ ─────────────────────── */
.m-opened-envelope {
  background: #fffdf9;
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid #f3e5d8;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  margin-top: 1rem;
}

.m-opened-paper {
  background: #fdfbf7;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: inset 0 0 30px rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  text-align: left;
}

.m-saved-letter-content {
  font-family: "Caveat", cursive, "Poppins", sans-serif;
  font-size: 1.45rem;
  line-height: 2.2rem;
  color: #2c3e50;
  white-space: pre-wrap;
  word-break: break-word;
}

.m-opened-signature {
  font-family: "Dancing Script", cursive;
  font-size: 1.8rem;
  color: #e74c3c;
  text-align: right;
  margin-top: 2rem;
}

/* ─── MOBİL UYUMLULUK ────────────────────────────────── */
@media (max-width: 680px) {
  .m-header {
    padding: 0.8rem 1rem;
  }
  .m-title {
    font-size: 1.6rem;
  }
  .m-subtitle, .m-header-tag {
    display: none;
  }
  .m-card {
    padding: 2rem 1.4rem;
  }
  .m-card-title {
    font-size: 2.1rem;
  }
  .m-cbox {
    min-width: 70px;
    padding: 10px 8px;
  }
  .m-cbox span {
    font-size: 1.7rem;
  }
}
