/* تعریف متغیرهای رنگی عاشقانه و ریست پایه */
:root {
  --primary-pink: #ff6584;
  --dark-pink: #e04767;
  --light-blush: #ffeef2;
  --bg-gradient: linear-gradient(135deg, #fff5f6 0%, #ffd3da 100%);
  --shadow-color: rgba(224, 71, 103, 0.15);
}

* {
  box-sizing: border-box;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  outline: none;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--bg-gradient);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  position: relative;
}

/* قلب‌های معلق پس‌زمینه */
.floating-hearts {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.heart {
  position: absolute;
  font-size: 20px;
  opacity: 0.7;
  animation: floatUp 8s infinite linear;
}

.heart:nth-child(1) { left: 10%; animation-delay: 0s; font-size: 25px; }
.heart:nth-child(2) { left: 30%; animation-delay: 2.5s; }
.heart:nth-child(3) { left: 75%; animation-delay: 1.5s; font-size: 28px; }
.heart:nth-child(4) { left: 90%; animation-delay: 4s; }
.heart:nth-child(5) { left: 50%; animation-delay: 6s; font-size: 18px; }

@keyframes floatUp {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

/* کانتینر اصلی موبایل‌فرست */
.app-container {
  width: 100%;
  max-width: 410px;
  padding: 20px;
  z-index: 5;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
  animation: slideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* استایل کارت‌های شیشه‌ای و رمانتیک */
.romantic-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 30px;
  padding: 30px 24px;
  box-shadow: 0 15px 35px var(--shadow-color);
  backdrop-filter: blur(15px);
  text-align: center;
  position: relative;
}

.card-icon {
  font-size: 55px;
  margin-bottom: 12px;
  display: inline-block;
  animation: pulse 2s infinite alternate;
}

.blink {
  animation: heartbeat 0.8s infinite alternate;
}

.title {
  font-size: 22px;
  color: #3f2229;
  margin: 0 0 8px 0;
  font-weight: 800;
}

.subtitle {
  font-size: 14px;
  color: #7d656b;
  margin: 0 0 24px 0;
  line-height: 1.6;
}

/* دکمه‌ها */
.action-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  min-height: 110px; /* برای جلوگیری از تکان خوردن شدید صفحه */
}

.btn {
  border: none;
  border-radius: 20px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.btn-yes {
  background: linear-gradient(135deg, var(--primary-pink), var(--dark-pink));
  color: #fff;
  padding: 16px 28px;
  box-shadow: 0 8px 25px rgba(255, 101, 132, 0.4);
}

.btn-yes:hover {
  transform: translateY(-2px);
}

.btn-no {
  background: #f0f0f0;
  color: #555;
  padding: 14px 22px;
}

.btn-next, .btn-final {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-pink), var(--dark-pink));
  color: white;
  padding: 16px;
  margin-top: 15px;
  font-size: 17px;
  box-shadow: 0 8px 25px rgba(255, 101, 132, 0.3);
}

.btn-next:hover, .btn-final:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

/* فیلدها و کانتینر تایم پیکر */
.input-group {
  text-align: right;
  margin-bottom: 20px;
}

.field-label {
  display: block;
  font-size: 14px;
  font-weight: bold;
  color: #5c444a;
  margin-bottom: 8px;
}

.input-wrapper {
  position: relative;
}

.date-input {
  width: 100%;
  border: 2px solid #ffd0d8;
  border-radius: 18px;
  padding: 14px 45px 14px 15px;
  font-size: 16px;
  background: #fff;
  transition: all 0.3s ease;
  color: #4a343a;
}

.date-input:focus {
  border-color: var(--primary-pink);
  box-shadow: 0 0 10px rgba(255, 101, 132, 0.15);
}

.input-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-pink);
  font-size: 18px;
}

/* چرخنده‌های زمان (Time Picker Wheel) */
.time-picker-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  background: #fff;
  border: 2px solid #ffd0d8;
  border-radius: 20px;
  padding: 15px;
  direction: ltr; /* برای چپ به راست بودن ساعت و دقیقه */
}

.wheel-column {
  text-align: center;
}

.wheel-label {
  display: block;
  font-size: 11px;
  color: #a88d94;
  margin-bottom: 8px;
  font-weight: bold;
}

.wheel-scroll {
  width: 90px;
  height: 150px;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  padding: 50px 0;
  border-radius: 12px;
  background: #fff9fa;
  position: relative;
  scrollbar-width: none;
}

.wheel-scroll::-webkit-scrollbar {
  display: none;
}

.wheel-item {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: center;
  font-size: 20px;
  color: #b59ea3;
  transition: all 0.2s ease;
  font-weight: bold;
}

.wheel-item.active {
  color: var(--primary-pink);
  font-size: 26px;
}

.wheel-colon {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-pink);
  margin-top: 15px;
}

/* استایل گرید سفارش غذا */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 10px;
}

.menu-item {
  background: #fff;
  border: 2px solid #ffe3e7;
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.menu-image-container {
  width: 100%;
  height: 95px;
  overflow: hidden;
}

.menu-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.menu-detail {
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.menu-detail .emoji {
  font-size: 16px;
}

.menu-detail .name {
  font-size: 13px;
  font-weight: bold;
  color: #4a343a;
}

.menu-item:hover .menu-image-container img {
  transform: scale(1.1);
}

.menu-item.active {
  border-color: var(--primary-pink);
  background: #fff9fa;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(255, 101, 132, 0.2);
}

/* استایل پاکت نامه نهایی */
.envelope {
  background: #fff0f2;
  border: 2px dashed var(--primary-pink);
  border-radius: 20px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: inset 0 0 15px rgba(255, 101, 132, 0.05);
}

.final-text {
  font-size: 16px;
  line-height: 1.8;
  color: #5c353e;
  font-weight: bold;
}

.status-msg {
  font-size: 13px;
  color: var(--dark-pink);
  margin-top: 12px;
  font-weight: bold;
}

/* مخفی‌کردن نرم دکمه خیر */
.hidden-no {
  opacity: 0 !important;
  transform: scale(0) !important;
  pointer-events: none !important;
  width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* انیمیشن‌ها */
@keyframes slideIn {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

@keyframes heartbeat {
  0% { transform: scale(1); }
  30% { transform: scale(1.15); }
  60% { transform: scale(1.05); }
  100% { transform: scale(1.2); }
}

/* شخصی سازی پاپ‌آپ تقویم شمسی */
.datepicker-plot-area {
  border-radius: 20px !important;
  border: 1px solid #ffd0d8 !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
  font-family: inherit !important;
}
.datepicker-plot-area .datepicker-day-view .table-days td.selected span {
  background-color: var(--primary-pink) !important;
}
