/* ================================================================= */
/* GÜNLÜK FAL / ŞANS KURABİYESİ STİLLERİ */
/* ================================================================= */

.fortune-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.cookie-container {
  position: relative;
  width: 320px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
  cursor: pointer;
}

.cookie-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Kurabiye Görsel Grubu */
.cookie-visual {
  width: 200px;
  height: 150px;
  position: relative;
  z-index: 3;
  transition: transform 0.5s ease;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
}

.cookie-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.cookie-half {
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
  transform-origin: center;
}

/* Şans Kağıdı */
.cookie-paper {
  position: absolute;
  width: 240px;
  background: #ffffff;
  border: 1px solid #ffd1dc;
  border-radius: 4px;
  padding: 12px 15px;
  box-shadow: 0 5px 15px rgba(255, 107, 139, 0.15);
  z-index: 2;
  opacity: 0;
  transform: translateY(0) scale(0.9);
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.6s ease;
  pointer-events: none;
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  color: #4a5568;
  line-height: 1.5;
  border-left: 4px solid var(--rose-pink);
}

.cookie-paper::before, .cookie-paper::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rose-light);
  top: 50%;
  transform: translateY(-50%);
}
.cookie-paper::before { left: 4px; }
.cookie-paper::after { right: 4px; }

/* Kırılma Animasyonu Aktif Hali */
.cookie-wrapper.cracked .left-half {
  transform: translateX(-65px) translateY(-10px) rotate(-35deg);
  opacity: 0.7;
}

.cookie-wrapper.cracked .right-half {
  transform: translateX(65px) translateY(-10px) rotate(35deg);
  opacity: 0.7;
}

.cookie-wrapper.cracked .cookie-paper {
  opacity: 1;
  transform: translateY(-80px) scale(1);
  pointer-events: auto;
}

.cookie-wrapper.cracked .cookie-visual {
  transform: translateY(15px);
}

/* Bilgi / İpucu Kutusu */
.cookie-hint {
  font-size: 13px;
  color: #888;
  margin-top: 10px;
  animation: pulse 2s infinite;
}

.fortune-action-btn {
  background: var(--rose-gradient);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--rose-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 15px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.cookie-wrapper.cracked ~ .fortune-action-btn {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.fortune-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 71, 126, 0.4);
}

/* Kalp Uçuşma Animasyonu Kurabiye Kırılınca */
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 0.8; }
}
