/* =========================================
   Peaceful Heart Page Styles (Purple Theme)
   ========================================= */

.peace-header-title {
  color: #8b5cf6; /* Violet-500 */
  font-size: 2.5rem;
  font-weight: bold;
}

.peace-path-line {
  margin: 0.5rem 0;
  width: 100px;
  height: 3px;
  background: #c4b5fd; /* Violet-300 */
}

.peace-subtitle {
  margin-top: 0.5rem;
  color: #64748b;
  font-weight: bold;
}

.peace-hero {
  background: linear-gradient(135deg, #f5f3ff 0%, #ffffff 100%); /* Violet-50 */
  border-radius: 20px;
  border: 1px solid #ddd6fe;
  padding: 3rem;
  box-shadow: 0 4px 6px -1px rgba(139, 92, 246, 0.1);
  position: relative;
  overflow: hidden;
  margin-bottom: 4rem;
}

.peace-box {
  background: #f5f3ff;
  border: 2px solid #8b5cf6;
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem 0;
  position: relative;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.peace-box h3 {
  color: #7c3aed; /* Violet-600 */
  font-size: 1.2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.highlight-purple {
  color: inherit;
  background: linear-gradient(transparent 60%, #ddd6fe 60%);
  font-weight: bold;
}

/* Feather Animation (Optional Serene Element) */
.feather {
  position: absolute;
  color: #c4b5fd;
  opacity: 0.6;
  font-size: 2rem;
  animation: float-feather 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes float-feather {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(10px, -15px) rotate(10deg);
  }
  66% {
    transform: translate(-5px, -25px) rotate(-5deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

/* Pledge Card specific style */
.pledge-card {
  text-align: center;
  font-style: italic;
  background: #fff;
  border: 3px double #8b5cf6; /* Double border for 'holy' feel */
  box-shadow: 0 10px 15px -3px rgba(139, 92, 246, 0.1);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.pledge-card p {
  line-height: 2;
}

.pledge-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px -5px rgba(139, 92, 246, 0.2);
}

.pledge-card.sealed {
  background: #fffcf0; /* Light gold background */
  border-color: #fbbf24; /* Golden border */
  box-shadow: 0 0 25px rgba(251, 191, 36, 0.4);
  transform: scale(1.02);
}

.pledge-card.sealed p {
  color: #92400e;
}

.pledge-card::after {
  content: "タップして誓いを立てる";
  display: block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #94a3b8;
  font-style: normal;
  transition: opacity 0.3s;
}

.pledge-card.sealed::after {
  content: "✨ 誓いはあなたの心に刻まれました ✨";
  color: #d97706;
  font-weight: bold;
  animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* Darkness Scattering Gimmick */
.darkness-container {
  position: relative;
  background: #2d2640; /* Dark purple background */
  border-radius: 15px;
  padding: 3rem;
  margin: 2rem 0;
  text-align: center;
  overflow: hidden;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 1s ease;
}

.darkness-container.cleared {
  background: linear-gradient(135deg, #f5f3ff 0%, #fff 100%);
}

.revelation-text {
  font-size: 2rem;
  font-weight: bold;
  color: transparent;
  transition: all 1s ease;
  transform: scale(0.8);
  opacity: 0;
  z-index: 2;
}

.darkness-container.cleared .revelation-text {
  color: #8b5cf6;
  transform: scale(1.1);
  opacity: 1;
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.darkness-hint {
  position: absolute;
  bottom: 1rem;
  width: 100%;
  color: #a78bfa;
  font-size: 0.8rem;
  transition: opacity 0.5s;
}

.darkness-container.cleared .darkness-hint {
  opacity: 0;
}

/* Sun ray effect for revelation */
.sun-rays {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(217, 119, 6, 0.1) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 1s;
}

.darkness-container.cleared .sun-rays {
  opacity: 1;
}

/* Missing .mist-word definition added */
.mist-word {
  position: absolute;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.2rem;
  font-weight: bold;
  pointer-events: none;
  filter: blur(1px);
}
.darkness-container.cleared .mist-word {
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Decision Box - Highlighting the resolution */
.decision-box {
  background: #faf5ff; /* Violet-50 */
  border: 2px solid #e9d5ff; /* Violet-200 */
  border-radius: 15px;
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(139, 92, 246, 0.05);
}

.decision-box::before {
  content: "\f00c"; /* fa-check */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: -20px;
  left: -20px;
  background: #8b5cf6; /* Violet-500 */
  color: #fff;
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
  border: 3px solid #fff;
  z-index: 3;
}

/* Sidebar adivce box adjustments */
.sidebar-advice {
    margin-bottom: 2rem;
}

/* Layout & Spacing */
.peace-section {
  margin-bottom: 4rem;
}

.content-block p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: #334155;
}

/* Restored/Adapted Win Styles */
.win-section-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: #4c1d95; /* Deep Violet */
  border-bottom: 2px solid #ddd6fe;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.win-section-title i {
  color: #8b5cf6; /* Violet-500 */
}
