/* Daily Growth — photoreal photos + ambient overlays */

.daily-plant-card {
  min-height: 300px;
  overflow: hidden !important;
}

.daily-plant-widget {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 220px;
}

.daily-plant-stage {
  flex: 0 0 240px;
  max-width: 240px;
}

.dp-scene {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 10px 24px rgba(28, 42, 58, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  background: #1a2a22;
}

.dp-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  transform-origin: 50% 70%;
  animation: dpSway 7s ease-in-out infinite;
}

.dp-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.55s ease;
  pointer-events: none;
  user-select: none;
}

.dp-photo.is-on {
  opacity: 1;
}

.dp-photo.dp-transition-from {
  z-index: 7;
  transition: opacity 0.65s ease;
  opacity: 1;
}

.dp-photo.dp-transition-from.is-fading {
  opacity: 0 !important;
}

.dp-photo-wither {
  mix-blend-mode: multiply;
  opacity: 0.82 !important;
  filter: saturate(0.75) brightness(0.92);
}

.dp-scene.is-withered .dp-photo-a {
  filter: saturate(0.55) sepia(0.25) brightness(0.9);
}

.dp-scene.is-restarted .dp-photo-a {
  filter: saturate(0.85);
}

/* Soft cinematic edges */
.dp-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 40%, transparent 42%, rgba(10, 18, 24, 0.28) 100%);
  z-index: 2;
}

/* Gentle light sweep / shine */
.dp-shine {
  position: absolute;
  inset: -20%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.08) 48%,
    rgba(255, 252, 230, 0.16) 50%,
    rgba(255, 255, 255, 0.06) 52%,
    transparent 65%
  );
  animation: dpShine 9s ease-in-out infinite;
}

.dp-scene.is-tree-of-life .dp-shine {
  background: linear-gradient(
    115deg,
    transparent 32%,
    rgba(255, 255, 240, 0.12) 46%,
    rgba(255, 255, 255, 0.28) 50%,
    rgba(255, 250, 210, 0.12) 54%,
    transparent 68%
  );
  animation-duration: 6.5s;
}

/* Floating soft clouds (CSS blobs, not drawings of the plant) */
.dp-clouds {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}

.dp-cloud {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  filter: blur(10px);
  animation: dpCloud 40s linear infinite;
}

.dp-cloud.c1 {
  width: 70px;
  height: 22px;
  top: 12%;
  left: -30%;
  animation-duration: 38s;
}

.dp-cloud.c2 {
  width: 48px;
  height: 16px;
  top: 22%;
  left: -40%;
  opacity: 0.55;
  animation-duration: 52s;
  animation-delay: -18s;
}

.dp-cloud.c3 {
  width: 56px;
  height: 18px;
  top: 8%;
  left: -25%;
  opacity: 0.4;
  animation-duration: 46s;
  animation-delay: -8s;
}

/* Water drops */
.dp-drops {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.dp-drop {
  position: absolute;
  width: 7px;
  height: 10px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  background: linear-gradient(180deg, rgba(220, 245, 255, 0.95), rgba(70, 160, 210, 0.85));
  box-shadow: 0 1px 3px rgba(30, 90, 130, 0.35);
  opacity: 0;
  animation: dpDrop 5.8s ease-in infinite;
}

.dp-drop.d1 { left: 28%; top: 18%; animation-delay: 0.4s; }
.dp-drop.d2 { left: 62%; top: 12%; animation-delay: 2.2s; animation-duration: 6.4s; }
.dp-drop.d3 { left: 44%; top: 8%; animation-delay: 3.8s; animation-duration: 5.5s; }

.dp-scene.is-watered-today .dp-drop {
  animation-duration: 4.2s;
}

/* Sparkles — stronger near Tree of Life */
.dp-sparkles {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.dp-spark {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fffef5;
  box-shadow: 0 0 6px 2px rgba(255, 250, 210, 0.85);
  opacity: 0;
  animation: dpSpark 4.5s ease-in-out infinite;
}

.dp-spark.s1 { left: 32%; top: 30%; }
.dp-spark.s2 { left: 58%; top: 24%; animation-delay: 1.1s; }
.dp-spark.s3 { left: 48%; top: 42%; animation-delay: 2.2s; }
.dp-spark.s4 { left: 70%; top: 36%; animation-delay: 3s; }

.dp-scene.is-tree-of-life .dp-spark {
  width: 5px;
  height: 5px;
  box-shadow: 0 0 10px 3px rgba(255, 255, 230, 0.95);
  animation-duration: 3.2s;
}

.dp-scene.is-withered .dp-clouds,
.dp-scene.is-withered .dp-shine {
  opacity: 0.35;
}

.dp-scene.is-withered .dp-sparkles,
.dp-scene.is-restarted .dp-sparkles {
  display: none;
}

/* Copy */
.daily-plant-info {
  flex: 1 1 auto;
  min-width: 0;
}

.daily-plant-title {
  color: #243746;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 6px;
}

.daily-plant-message {
  color: #53606b;
  line-height: 1.4;
  margin-bottom: 12px;
  font-size: 13.5px;
}

.plant-status-withered .daily-plant-message {
  color: #7a5d2b;
}

.daily-plant-progress-wrap {
  margin-bottom: 12px;
}

.daily-plant-progress-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #5f6d76;
  font-size: 12px;
  margin-bottom: 5px;
}

.daily-plant-progress {
  height: 9px;
  overflow: hidden;
  background: #e7ecef;
  border-radius: 8px;
}

.daily-plant-progress > div {
  height: 100%;
  background: linear-gradient(90deg, #2d7a52, #6bab5a, #e0c56a, #f5f2e4);
  border-radius: 8px;
  transition: width 0.45s ease;
}

.daily-plant-scripture {
  margin-bottom: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 252, 240, 0.7);
  border: 1px solid rgba(210, 190, 140, 0.35);
}

.daily-plant-scripture-ref {
  font-weight: 700;
  color: #3d5a40;
  font-size: 12px;
  margin-bottom: 2px;
}

.daily-plant-scripture-thought {
  color: #5a655c;
  font-size: 12.5px;
  line-height: 1.35;
  font-style: italic;
}

@keyframes dpSway {
  0%, 100% { transform: scale(1.02) translateY(0); }
  50% { transform: scale(1.04) translateY(-1.5px); }
}

@keyframes dpShine {
  0%, 100% { transform: translateX(-18%) rotate(0.5deg); opacity: 0.35; }
  50% { transform: translateX(12%) rotate(-0.5deg); opacity: 0.85; }
}

@keyframes dpCloud {
  0% { transform: translateX(0); }
  100% { transform: translateX(280px); }
}

@keyframes dpDrop {
  0%, 58%, 100% {
    opacity: 0;
    transform: translateY(0) scale(0.7);
  }
  62% {
    opacity: 0.95;
    transform: translateY(8px) scale(1);
  }
  78% {
    opacity: 0;
    transform: translateY(70px) scale(0.85);
  }
}

@keyframes dpSpark {
  0%, 70%, 100% { opacity: 0; transform: scale(0.3); }
  80% { opacity: 1; transform: scale(1.15); }
  90% { opacity: 0.35; transform: scale(0.6); }
}

@media (max-width: 640px) {
  .daily-plant-widget {
    flex-direction: column;
    align-items: stretch;
  }
  .daily-plant-stage {
    flex-basis: auto;
    max-width: 300px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dp-photo-wrap,
  .dp-shine,
  .dp-cloud,
  .dp-drop,
  .dp-spark {
    animation: none !important;
  }
}
