/* peace_of_mind.css - Page Specific Styles */

.peace-page {
  background-color: #ffffff;
}

.peace-page .page-title {
    color: #0369a1;
    font-size: 2rem;
    font-weight: bold;
}

.peace-page .section-title .line {
  background: #bae6fd;
}

/* Jampolsky Quote Section */
.peace-page .jampolsky-quote-section {
  background: linear-gradient(to bottom right, #fff, #f0f9ff);
  border: 1px solid #bae6fd;
  border-radius: 16px;
  padding: 3rem;
  margin: 3rem 0;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.1);
}

.peace-page .jampolsky-quote-section::before {
  content: "\f4b6"; /* Dove/Peace icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.5rem;
  color: #0ea5e9;
  background: white;
  padding: 0 1rem;
  border-radius: 50%;
}

.peace-page .quote-text {
  font-size: 1.15rem;
  line-height: 2.2;
  color: #0369a1;
  margin-bottom: 2rem;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: normal;
}

.peace-page .quote-author {
  color: #0284c7;
  font-weight: normal;
  font-size: 1rem;
}

/* Main Content Styling */
.peace-page .main-article h3 {
  color: #0369a1;
  border-bottom: 2px solid #bae6fd;
  padding-bottom: 0.5rem;
  margin-top: 3rem;
  font-weight: bold;
}

.peace-page .highlight-box {
  background: #fff;
  border-left: 5px solid #0ea5e9;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border-radius: 0 8px 8px 0;
}

.peace-page .highlight-text {
  color: #0284c7;
}

.peace-page .closing-message {
  text-align: center;
  font-size: 1.3rem;
  color: #0ea5e9;
  font-weight: normal;
  margin-top: 4rem;
  margin-bottom: 2rem;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
}

/* 1. Flowing Clouds */
.peace-page .cloud-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.peace-page .cloud {
  position: absolute;
  background: #fff;
  border-radius: 100px;
  opacity: 0.8;
  filter: blur(8px);
  animation: floatCloud linear infinite;
}

.peace-page .cloud::after,
.peace-page .cloud::before {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.peace-page .cloud::after {
  width: 30%;
  height: 30%;
  top: -45%;
  left: 15%;
}

.peace-page .cloud::before {
  width: 40%;
  height: 40%;
  top: -65%;
  left: 45%;
}

@keyframes floatCloud {
  from { transform: translateX(100vw); }
  to { transform: translateX(-200px); }
}

/* 2. Water Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(14, 165, 233, 0.4);
  transform: scale(0);
  animation: ripple-anim 1s linear;
  pointer-events: none;
  z-index: 0;
}

@keyframes ripple-anim {
  to { transform: scale(4); opacity: 0; }
}

/* 3. Balloon Animation */
.peace-page .balloon-section {
  text-align: center;
  margin: 4rem 0;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  border: 1px dashed #bae6fd;
}

.peace-page .balloon-btn {
  background: linear-gradient(120deg, #38bdf8, #0ea5e9);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
  transition: all 0.3s ease;
}

.peace-page .balloon-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.balloon {
  position: fixed;
  bottom: -100px;
  width: 40px;
  height: 50px;
  background: #ff5e5e;
  border-radius: 50%;
  animation: flyUp 8s ease-in forwards;
  z-index: 9999;
}

.balloon::before {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 40px;
  background: rgba(0, 0, 0, 0.2);
}

.balloon.b-blue { background: #60a5fa; }
.balloon.b-green { background: #4ade80; }
.balloon.b-yellow { background: #facc15; }
.balloon.b-purple { background: #a78bfa; }

@keyframes flyUp {
  0% { bottom: -100px; transform: translateX(0) scale(1); opacity: 0.9; }
  20% { transform: translateX(20px) scale(1); }
  40% { transform: translateX(-20px) scale(0.9); }
  60% { transform: translateX(10px) scale(0.8); }
  80% { opacity: 0.8; }
  100% { bottom: 120vh; transform: translateX(0) scale(0.5); opacity: 0; }
}

/* Breathing Guide */
.peace-page .breathing-guide {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  cursor: pointer;
  overflow: hidden;
  transition: width 0.3s, height 0.3s, border-radius 0.3s;
}

.peace-page .breathing-guide:hover {
  width: 200px;
  height: 120px;
  border-radius: 16px;
}

.peace-page .breathing-circle {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #bae6fd, #0ea5e9);
  border-radius: 50%;
  animation: breathe 10s infinite ease-in-out;
  opacity: 0.8;
}

.peace-page .breathing-text {
  display: none;
  margin-left: 15px;
  font-size: 0.9rem;
  color: #0369a1;
  font-weight: bold;
  white-space: nowrap;
}

.peace-page .breathing-guide:hover .breathing-text {
  display: block;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  40% { transform: scale(1.5); opacity: 0.4; }
  50% { transform: scale(1.5); opacity: 0.4; }
  90% { transform: scale(1); opacity: 0.8; }
}

/* Enhanced Balloon Input */
.peace-page .balloon-input-container {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.peace-page .worry-input {
  padding: 0.8rem;
  border: 2px solid #bae6fd;
  border-radius: 50px;
  width: 60%;
  max-width: 300px;
  outline: none;
  color: #0369a1;
  transition: all 0.3s;
}

.peace-page .worry-input:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.balloon-text-display {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.7rem;
  color: white;
  text-align: center;
  width: 80%;
  line-height: 1.2;
  word-break: break-all;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

/* Perspective Toggle Switch */
.peace-page .perspective-section {
  text-align: center;
  margin: 4rem 0;
  padding: 2rem;
  background: #f1f5f9;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  transition: all 0.5s ease;
}

.peace-page .perspective-section.enlightened {
  background: #ffffff;
  border: 1px solid #38bdf8;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.peace-page .toggle-container {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  vertical-align: middle;
  margin: 0 1rem;
}

.peace-page .toggle-input {
  opacity: 0;
  width: 0;
  height: 0;
}

.peace-page .toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.4s;
  border-radius: 34px;
}

.peace-page .toggle-slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

.peace-page .toggle-input:checked + .toggle-slider {
  background-color: #0ea5e9;
}

.peace-page .toggle-input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

.peace-page .perspective-text {
  font-size: 1.2rem;
  color: #64748b;
  transition: all 0.5s;
  display: inline-block;
  vertical-align: middle;
}

.peace-page .perspective-text.active {
  color: #0ea5e9;
  font-weight: bold;
  transform: scale(1.1);
}

.peace-page .result-text {
  margin-top: 2rem;
  min-height: 3em;
  color: #334155;
  font-size: 1.1rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s ease;
}

.peace-page .result-text.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sidebar Advice Specifics */
.peace-page .sidebar-advice {
  background: #fff;
  border: 1px solid #7dd3fc;
  border-radius: 8px;
  padding: 1.5rem;
}

.peace-page .sidebar-advice .header {
  color: #0284c7;
  border-bottom: 2px solid #bae6fd;
  margin-bottom: 0.8rem;
  padding-bottom: 0.4rem;
  font-weight: bold;
}

.peace-page .sidebar-advice p {
    color: #0f172a;
    font-size: 0.9rem;
    line-height: 1.6;
}

.peace-page .recommendations-list li a.active {
    color: #0ea5e9;
    background-color: #f0f9ff;
    border-left-color: #0ea5e9;
}
