/* seeds_in_adversity.css - Page Specific Styles */

.seeds-page {
  --seeds-primary: #15803d;
  --seeds-secondary: #166534;
  --seeds-accent: #22c55e;
  --seeds-light: #f0fdf4;
  --seeds-border: #bbf7d0;
  --diamond-glow: rgba(14, 165, 233, 0.6);
  --diamond-shine: rgba(14, 165, 233, 1);
}

/* Quote Card with Breathing Effect */
.seeds-quote-card {
  background: linear-gradient(135deg, var(--seeds-primary), var(--seeds-secondary));
  color: white;
  padding: 3.5rem 2.5rem;
  border-radius: 20px;
  text-align: center;
  margin: 3rem 0;
  box-shadow: 0 15px 35px rgba(22, 101, 52, 0.25);
  position: relative;
  overflow: hidden;
}

.seeds-quote-card::before {
  content: "\f4d8"; /* Seedling icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  bottom: -30px;
  right: -30px;
  font-size: 15rem;
  color: rgba(255, 255, 255, 0.1);
  transform: rotate(-15deg);
}

.seeds-quote-card.breathing {
  animation: breathing-glow 4s ease-in-out infinite;
}

@keyframes breathing-glow {
  0%, 100% {
    box-shadow: 0 10px 25px rgba(22, 101, 52, 0.3);
  }
  50% {
    box-shadow: 0 10px 50px rgba(74, 222, 128, 0.6);
  }
}

.seeds-quote-text {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1.45rem;
  line-height: 2.2;
  font-weight: bold;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 10;
}

.seeds-author {
  margin-top: 2rem;
  font-size: 1rem;
  opacity: 0.95;
  text-align: right;
  position: relative;
  z-index: 10;
}

/* Section Header */
.section-header {
  color: var(--seeds-primary);
  margin-top: 4rem;
  border-bottom: 3px solid var(--seeds-border);
  padding-bottom: 0.8rem;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* Highlight Box */
.highlight-box {
  background-color: var(--seeds-light);
  border-left: 6px solid var(--seeds-accent);
  padding: 2rem;
  margin: 3rem 0;
  border-radius: 0 12px 12px 0;
  line-height: 1.8;
  color: #166534;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

/* Visualization Box Base */
.visualization-box {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  margin: 3.5rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
  border: 1px solid #e2e8f0;
}

/* Interactive Diamond Animation */
.diamond-intro-text {
  font-weight: bold;
  margin-bottom: 1rem;
  color: #475569;
}

.diamond-subtext {
  font-size: 0.9rem;
  color: #64748b;
  margin-top: 1rem;
}

.diamond-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin: 2rem 0;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s;
  position: relative;
}

.diamond-container:active {
  transform: scale(0.96);
}

.stone-stage {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.rough-stone {
  width: 110px;
  height: 110px;
  background: #94a3b8;
  clip-path: polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%);
  position: absolute;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  z-index: 2;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
}

.click-hint {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--seeds-primary);
  background: #ecfccb;
  padding: 0.6rem 1.4rem;
  border-radius: 30px;
  display: inline-block;
  animation: bounce-gentle 2.2s infinite;
  font-weight: 600;
}

@keyframes bounce-gentle {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-7px); }
  60% { transform: translateY(-4px); }
}

.diamond-container.revealed .rough-stone {
  transform: scale(2) rotate(45deg);
  opacity: 0;
  filter: blur(15px);
}

.diamond-container.revealed .click-hint {
  display: none;
}

.diamond-stone {
  width: 110px;
  height: 110px;
  background: linear-gradient(135deg, #0ea5e9, #7dd3fc, #f0f9ff);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  position: absolute;
  filter: drop-shadow(0 0 8px rgba(2, 132, 199, 0.4));
  opacity: 0;
  transform: scale(0.4);
  transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1;
}

.diamond-container.revealed .diamond-stone {
  opacity: 1;
  transform: scale(1);
  animation: diamond-pulse 2.5s infinite;
}

@keyframes diamond-pulse {
  0%, 100% { filter: drop-shadow(0 0 15px var(--diamond-glow)); }
  50% { filter: drop-shadow(0 0 30px var(--diamond-shine)); transform: scale(1.05); }
}

.sparkle-star {
  position: absolute;
  color: #fffbeb;
  filter: drop-shadow(0 0 3px #fbbf24);
  font-size: 1.8rem;
  opacity: 0;
  pointer-events: none;
  z-index: 20;
}

@keyframes twinkle-pop {
  0% { transform: scale(0) rotate(0deg); opacity: 0; }
  50% { transform: scale(1.3) rotate(45deg); opacity: 1; }
  100% { transform: scale(0) rotate(90deg); opacity: 0; }
}

/* 2. Pendulum Animation */
.pendulum-container {
  height: 160px;
  position: relative;
  width: 320px;
  margin: 1rem auto;
  border-top: 5px solid #334155;
  overflow: hidden;
}

.pendulum {
  width: 5px;
  height: 130px;
  background: #64748b;
  position: absolute;
  top: 0;
  left: 50%;
  transform-origin: top center;
  animation: pendulum-swing 3.2s ease-in-out infinite;
}

.pendulum-weight {
  width: 44px;
  height: 44px;
  background: radial-gradient(circle, #f59e0b, #b45309);
  border-radius: 50%;
  position: absolute;
  bottom: -22px;
  left: -19px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.pendulum-labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
  position: absolute;
  bottom: 12px;
  font-weight: 800;
  padding: 0 2.5rem;
  box-sizing: border-box;
  font-size: 1rem;
}

@keyframes pendulum-swing {
  0% { transform: rotate(38deg); }
  50% { transform: rotate(-38deg); }
  100% { transform: rotate(38deg); }
}

.pendulum-desc {
  margin-top: 1.5rem;
  font-weight: bold;
  color: #475569;
}

.pendulum-label-neg {
  color: #ef4444;
}

.pendulum-label-pos {
  color: #22c55e;
}

.advice-highlight {
  color: #f97316;
  font-weight: bold;
}

/* 3. Magic Text Transformation */
.click-guide {
  color: #22c55e;
  font-size: 0.85rem;
  font-weight: 600;
}

.magic-word {
  display: inline-block;
  cursor: pointer;
  border-bottom: 2px dashed #94a3b8;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  color: #64748b;
  padding: 0 4px;
  margin: 0 2px;
}

.magic-word:hover {
  color: #e11d48;
  transform: translateY(-2px);
  background: #fff1f2;
}

.magic-word.transformed {
  color: #16a34a !important;
  border-bottom: 2px solid #22c55e;
  font-weight: bold;
  transform: scale(1.1);
  background: #f0fdf4;
  animation: shake-mini 0.6s;
}

@keyframes shake-mini {
  0%, 100% { transform: translateX(0) scale(1.1); }
  25% { transform: translateX(-3px) scale(1.1); }
  75% { transform: translateX(3px) scale(1.1); }
}

/* 4. Valley to Mountain Animation */
.valley-bottom-label {
  position: absolute;
  bottom: 15px;
  left: 38%;
  font-size: 1rem;
  color: #166534;
  font-weight: bold;
  transition: all 0.5s;
}

.valley-top-label {
  position: absolute;
  top: 20px;
  right: 15px;
  font-size: 1.1rem;
  color: #15803d;
  font-weight: bold;
}

.valley-visual-box {
  position: relative;
  height: 320px;
  margin: 3rem 0;
  background: #f0f9ff;
  border-radius: 20px;
  border: 1px solid #bae6fd;
  overflow: hidden;
  cursor: pointer;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.02);
}

.climber-icon {
  position: absolute;
  font-size: 2.8rem;
  color: #ea580c;
  bottom: 200px;
  left: 0%;
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 10;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.25));
  transform-origin: bottom center;
}

.valley-visual-box.climbing .climber-icon {
  opacity: 1;
  animation: climb-v2 10s linear forwards;
}

@keyframes climb-v2 {
  0% { left: 0%; bottom: 200px; transform: scale(0.9) rotate(15deg); }
  10% { transform: scale(1) rotate(20deg); }
  50% { left: 50%; bottom: 20px; transform: scale(1.1) rotate(0deg); }
  60% { transform: scale(1.05) rotate(-10deg); }
  100% { left: 100%; bottom: 210px; transform: scale(0.9) rotate(-15deg); }
}

.valley-path-svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Finale Blooming Message */
.final-message {
  text-align: center;
  margin: 5rem 0;
  padding: 4rem 2.5rem;
  background: #ecfccb;
  border-radius: 20px;
  color: #365314;
  font-weight: bold;
  font-size: 1.25rem;
  position: relative;
  overflow: visible;
  transition: all 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.sprout-icon {
  font-size: 2.5rem;
  color: #4ade80;
  margin-bottom: 1rem;
  transition: all 1.2s;
  display: block;
}

.final-chance-msg {
  font-size: 1.6rem;
  color: #16a34a;
  display: block;
  margin-top: 1rem;
  font-weight: 800;
}

.final-message.blooming {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  box-shadow: 0 20px 40px rgba(34, 197, 94, 0.35);
  transform: translateY(-10px) scale(1.03);
}

.final-message.blooming .sprout-icon {
  transform: scale(1.8) rotate(360deg);
  color: #ec4899;
}

.flower-particle {
  position: absolute;
  font-size: 1.8rem;
  color: #ec4899;
  opacity: 0;
  z-index: 5;
}

.flower-1 { top: -25px; left: 15%; animation: pop-flower 1.2s forwards 0.5s; }
.flower-2 { top: -35px; left: 50%; animation: pop-flower 1.2s forwards 0.2s; }
.flower-3 { top: -25px; right: 15%; animation: pop-flower 1.2s forwards 0.7s; }
.flower-4 { bottom: -15px; left: 25%; animation: pop-flower 1.2s forwards 0.9s; }
.flower-5 { bottom: -25px; right: 25%; animation: pop-flower 1.2s forwards 0.4s; }

@keyframes pop-flower {
  0% { transform: scale(0) rotate(-45deg); opacity: 0; }
  60% { transform: scale(1.3) rotate(20deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Sidebar Specifics */
.seeds-page .sidebar-nav-list li.active-link a {
    color: var(--seeds-primary);
    background-color: var(--seeds-light);
    border-left: 3px solid var(--seeds-primary);
}

.seeds-page .sidebar-advice {
    border: 2px solid var(--seeds-border);
}

.seeds-page .sidebar-advice .header {
    color: var(--seeds-primary);
    border-bottom: 1px dashed var(--seeds-border);
}
