/* Page Specific CSS for Little Relax */

:root {
  --relax-green: #10b981;
  --relax-green-light: #ecfdf5;
  --relax-green-dark: #065f46;
  --relax-slate: #64748b;
  --relax-bg-detox: #fdf6e3;
}

/* Background Decoration & Falling Leaves */
.bg-decoration {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: #ffffff;
}

.leaf-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
}

.leaf-particle {
  position: absolute;
  color: #a7f3d0;
  opacity: 0.4;
  pointer-events: none;
  animation: leaf-fall linear forwards;
}

@keyframes leaf-fall {
  0% { transform: translate(0, -10%) rotate(0deg); opacity: 0; }
  10% { opacity: 0.4; }
  90% { opacity: 0.4; }
  100% { transform: translate(var(--end-x), 105vh) rotate(360deg); opacity: 0; }
}

/* Base Transition */
body {
  transition: background-color 0.8s cubic-bezier(0.4, 0, 0.2, 1), color 0.8s ease;
}

/* Detox Mode Styles - Analog Texture */
body.detox-mode {
  background-color: var(--relax-bg-detox) !important;
  background-image: url("https://www.transparenttextures.com/patterns/papyrus.png"); /* Subtle paper texture */
  color: #586e75 !important;
}

body.detox-mode .clean-quote {
  background-color: #eee8d5;
  color: #657b83;
  border-left-color: #b58900;
}

body.detox-mode .clean-heading {
  color: #b58900;
  border-bottom-color: #93a1a1;
}

body.detox-mode .nature-window {
  opacity: 0.8;
  filter: sepia(0.5);
}

/* Detox Button */
.detox-btn {
  background: #fff;
  border: 1px solid #cbd5e1;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  color: #64748b;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.detox-btn:hover {
  background: #f1f5f9;
  color: var(--relax-green);
}

.detox-btn.active {
  background: #fef3c7;
  color: #d97706;
  border-color: #fcd34d;
}

/* Breathing Guide - Premium Ripple */
.inline-breathing-guide {
  text-align: center;
  margin: 4rem 0;
  padding: 3rem;
  background: rgba(240, 253, 250, 0.6);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.breath-circle {
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at 30% 30%, #a7f3d0 0%, #34d399 100%);
  border-radius: 50%;
  margin: 0 auto;
  animation: breathe 10s infinite ease-in-out;
  box-shadow: 0 0 30px rgba(52, 211, 153, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.breath-circle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border: 2px solid #34d399;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: breath-ripple 10s infinite ease-in-out;
  z-index: -1;
}

@keyframes breath-ripple {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

.breath-text {
  font-size: 0.8rem;
  color: #065f46;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.breath-text::after {
  content: "おだやかに...";
  animation: breatheText 10s infinite ease-in-out;
}

@keyframes breathe {
  0%, 10% { transform: scale(1); }
  45%, 55% { transform: scale(1.8); }
  90%, 100% { transform: scale(1); }
}

@keyframes breatheText {
  0%, 10% { content: "吐いて..."; opacity: 0.5; }
  25%, 40% { content: "吸って..."; opacity: 1; }
  45%, 55% { content: "止めて..."; opacity: 1; }
  75%, 90% { content: "吐いて..."; opacity: 0.5; }
}

/* Nature Window */
.nature-window {
  height: 250px;
  background-image: url("https://images.unsplash.com/photo-1542273917363-3b1817f69a2d?auto=format&fit=crop&w=800&q=80");
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  margin: 2.5rem 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.nature-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(1px);
}

.nature-text {
  position: absolute;
  bottom: 1.5rem;
  right: 2rem;
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  letter-spacing: 1px;
  opacity: 0.9;
}

/* Typography */
.clean-heading {
  font-size: 1.5rem;
  color: #1e293b;
  border-bottom: 2px solid #cbd5e1;
  padding-bottom: 0.8rem;
  margin-top: 4rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  font-weight: 800;
}

.indent-icon {
  margin-right: 1rem;
  color: var(--relax-slate);
}

/* Quotes */
.clean-quote {
  position: relative;
  background: #f0f9ff;
  padding: 2.5rem 2.5rem 1.5rem 3.5rem;
  border-left: 6px solid #0ea5e9;
  border-radius: 4px 16px 16px 4px;
  margin: 3rem 0;
  font-style: italic;
  font-weight: 700;
  color: #334155;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.clean-quote.intro {
  background: #f8fafc;
  border-left-color: #94a3b8;
  font-size: 1.1rem;
}

.clean-quote.small {
  font-size: 0.95rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 6px solid var(--relax-green);
}

.quote-icon {
  position: absolute;
  top: 15px;
  left: 15px;
  opacity: 0.15;
  font-size: 2rem;
  color: #0ea5e9;
}

.quote-author {
  margin-top: 1.5rem;
  text-align: right;
  font-size: 0.95rem;
  font-weight: 500;
  font-style: normal;
  color: var(--relax-slate);
}

/* Highlight Boxes */
.relax-highlight {
  background: var(--relax-green-light);
  color: var(--relax-green-dark);
  padding: 1.5rem 2rem;
  border-radius: 12px;
  text-align: center;
  font-weight: bold;
  margin: 2.5rem 0;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
  font-size: 1.1rem;
}

.nature-box {
  border: 2px dashed #86efac;
  background: #f0fdf4;
  padding: 2rem;
  border-radius: 16px;
  margin: 2.5rem 0;
  line-height: 1.8;
}

/* Digital Coffee Animation */
.digital-coffee {
  width: 90px;
  height: 90px;
  background: #e2e8f0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #64748b;
  margin: 0 auto;
  position: relative;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.digital-coffee:hover {
  background: #cbd5e1;
  transform: scale(1.1) rotate(5deg);
  color: #475569;
}

.steam {
  position: absolute;
  background: #94a3b8;
  width: 8px;
  height: 24px;
  border-radius: 10px;
  opacity: 0;
  top: -10px;
}

.s1 { left: 32px; animation: steamRise 2s infinite; animation-delay: 0.5s; }
.s2 { left: 45px; animation: steamRise 2s infinite; animation-delay: 1s; }
.s3 { left: 58px; animation: steamRise 2s infinite; animation-delay: 1.5s; }

@keyframes steamRise {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  50% { opacity: 0.6; }
  100% { transform: translateY(-30px) scale(1.5); opacity: 0; }
}

/* Layout Utilities */
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
}

/* Sidebar Sticky Enhancement */
.sidebar {
  position: sticky !important;
  top: calc(var(--nav-height) + 2rem);
  height: fit-content;
  align-self: start;
}

.sidebar-widget.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #bae6fd;
  padding: 0.6rem;
  border-radius: 20px;
}

.advice-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #0369a1;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed #bae6fd;
}

.advice-header i {
  color: #fbbf24;
}

.advice-content {
  font-size: 0.85rem;
  line-height: 1.8;
  color: #475569;
}

.advice-content span {
  color: var(--relax-green);
  font-weight: 800;
  background: linear-gradient(transparent 70%, #d1fae5 70%);
}

.btn-simple {
  display: inline-block;
  padding: 1rem 2rem;
  border: 1px solid #cbd5e1;
  border-radius: 50px;
  color: #64748b;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.btn-simple:hover {
  border-color: var(--relax-green);
  color: var(--relax-green);
  background: var(--relax-green-light);
  transform: translateY(-2px);
}
