/* be_yourself.css - Law 5 Specific Styles */

.theme-law5 {
  --law5-primary: #7dd3fc;
  --law5-secondary: #0ea5e9;
  --law5-accent: #f0f9ff;
  --law5-bg-gradient: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  background-color: #f8fafc;
}

/* Background Atmosphere */
.aurora-spirit {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(to bottom, transparent, rgba(224, 242, 254, 0.1));
}

.spirit-particle {
  position: absolute;
  background: radial-gradient(
    circle,
    rgba(56, 189, 248, 0.4) 0%,
    rgba(56, 189, 248, 0) 70%
  );
  border-radius: 50%;
  bottom: -150px;
  animation-name: spiritFloat;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes spiritFloat {
  0% { transform: translateY(0) scale(1) translateX(0); opacity: 0; }
  10% { opacity: 0.6; }
  50% { transform: translateY(-50vh) scale(1.5) translateX(20px); opacity: 0.4; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-120vh) scale(1) translateX(-20px); opacity: 0; }
}

/* Hero Section - Aurora Premium Design */
.law5-hero {
  /* Base & Gradient */
  background: radial-gradient(circle at 0% 0%, rgba(224, 242, 254, 0.8) 0%, rgba(240, 249, 255, 0.4) 50%, rgba(254, 252, 232, 0.6) 100%),
              linear-gradient(120deg, #f0f9ff 0%, #e0f2fe 100%);
  position: relative;
  overflow: hidden;
  margin-bottom: 4rem;
  padding: 5rem 3rem;
  border-radius: 30px;
  text-align: center;
  box-shadow: 
    0 20px 60px rgba(14, 165, 233, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.8),
    inset 0 0 20px rgba(255, 255, 255, 0.5);
  
  /* Glassmorphism backdrop */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Dynamic Aurora Layers */
.law5-hero::before,
.law5-hero::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  border-radius: 40%;
  z-index: 0;
  opacity: 0.6;
  filter: blur(60px);
  animation: aurora-flow 15s infinite ease-in-out alternate;
}

.law5-hero::before {
  background: radial-gradient(circle, rgba(14, 165, 233, 0.2), transparent 60%);
  animation-duration: 20s;
}

.law5-hero::after {
  background: radial-gradient(circle, rgba(125, 211, 252, 0.3), transparent 50%);
  animation-direction: alternate-reverse;
  animation-duration: 25s;
  top: 0;
  left: 0;
}

@keyframes aurora-flow {
  0% { transform: translate(-10%, -10%) rotate(0deg) scale(1); }
  100% { transform: translate(10%, 10%) rotate(20deg) scale(1.1); }
}

/* Hero Content Wrapper */
.hero-inner {
  position: relative;
  z-index: 2; /* Bring content above aurora layers */
}

/* Hero Icon with Glow */
.law5-hero .hero-icon-wrap {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  color: #0ea5e9;
  margin-bottom: 2rem;
  box-shadow: 
    0 10px 25px rgba(14, 165, 233, 0.2),
    0 0 0 8px rgba(255, 255, 255, 0.4);
  animation: hero-icon-float 6s ease-in-out infinite;
}

@keyframes hero-icon-float {
  0%, 100% { transform: translateY(0); box-shadow: 0 10px 25px rgba(14, 165, 233, 0.2), 0 0 0 8px rgba(255, 255, 255, 0.4); }
  50% { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(14, 165, 233, 0.3), 0 0 0 4px rgba(255, 255, 255, 0.6); }
}

/* Typography Enhancements */
.law5-hero h1 {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: #0c4a6e !important;
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
  position: relative;
  display: inline-block;
}

/* Decorative sparkles around title */
.law5-hero h1::before,
.law5-hero h1::after {
  content: "✦";
  position: absolute;
  top: 0.2em;
  color: #7dd3fc;
  font-size: 1.5rem;
  animation: sparkle-blink 3s infinite;
  opacity: 0.8;
}

.law5-hero h1::before { left: -1.5rem; animation-delay: 0s; }
.law5-hero h1::after { right: -1.5rem; animation-delay: 1.5s; }

@keyframes sparkle-blink {
  0%, 100% { transform: scale(0.8) rotate(0deg); opacity: 0.4; }
  50% { transform: scale(1.2) rotate(180deg); opacity: 1; }
}

.law5-hero .hero-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, #7dd3fc, #0ea5e9);
  margin: 0 auto 2rem;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(14, 165, 233, 0.3);
}

.law5-hero .hero-subtitle {
  font-size: 1.2rem;
  color: #475569 !important;
  line-height: 2;
  font-weight: 500;
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 1);
}

/* Intro Block */
.intro-block {
  margin: 4rem 0;
  text-align: center;
}

.intro-impact {
  font-size: 1.5rem;
  color: #0c4a6e;
  font-weight: 600;
  line-height: 1.8;
  padding: 3rem 2rem;
  background: linear-gradient(
    135deg,
    rgba(240, 249, 255, 0.8) 0%,
    rgba(224, 242, 254, 0.4) 100%
  );
  backdrop-filter: blur(10px);
  border-radius: 30px;
  border: 1px solid rgba(125, 211, 252, 0.3);
  box-shadow: 0 20px 50px rgba(14, 165, 233, 0.05);
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.intro-impact::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 8rem;
  color: rgba(14, 165, 233, 0.1);
  font-family: serif;
}

.reflection-quote {
  font-family: "BIZ UDPMincho", "Noto Serif JP", serif;
  font-size: 1.8rem;
  color: #0369a1;
  margin: 3rem 0;
  padding: 0 1rem;
  line-height: 1.6;
  font-style: italic;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.intro-footer {
  font-size: 1.1rem;
  color: #475569;
  letter-spacing: 0.05em;
}

.intro-footer strong {
  color: #0369a1;
  background: linear-gradient(transparent 60%, rgba(125, 211, 252, 0.4) 60%);
  padding: 0 0.4rem;
  border-radius: 4px;
}

/* Content Blocks */
.content-block h2 {
  font-size: 1.8rem;
  position: relative;
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #0369a1 0%, #0ea5e9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.content-block h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #7dd3fc, transparent);
  border-radius: 2px;
}

/* Insight Box */
.insight-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid #94a3b8;
  margin: 2rem 0;
}

.insight-icon {
  font-size: 1.5rem;
  color: #94a3b8;
  margin-top: 0.2rem;
}

.insight-box p {
  margin: 0;
  color: #475569;
  font-weight: 500;
  line-height: 1.7;
}

/* Liberation Scene (Animation) */
.liberation-scene {
  position: relative;
  height: 300px;
  margin: 4rem auto;
  width: 100%;
  max-width: 600px;
  overflow: hidden;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.5));
  border-radius: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border: none;
}

.mob-group {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.8rem;
  z-index: 1;
  animation: mob-mist-fade 8s infinite ease-in-out;
}

@keyframes mob-mist-fade {
  0% { opacity: 0; filter: blur(5px); }
  5% { opacity: 1; filter: blur(0px); }
  45% { opacity: 1; filter: blur(0px); }
  60% { opacity: 0.4; filter: blur(3px); }
  80%, 100% { opacity: 0; filter: blur(10px); }
}

.mob-figure {
  font-size: 3rem;
  color: #94a3b8;
  opacity: 0.6;
  transform-origin: bottom center;
  animation: mob-sway 3s infinite ease-in-out alternate;
  position: relative;
}

@keyframes mob-sway {
  0% { filter: blur(0px); }
  100% { filter: blur(1px); transform: translateY(2px) scale(0.98); }
}

.hero-figure {
  font-size: 3.5rem;
  color: #0ea5e9;
  position: relative;
  filter: drop-shadow(0 0 15px rgba(14, 165, 233, 0.6));
  animation: liberation-rise 8s infinite cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  transform: none; /* Reset interactive transforms */
  opacity: 1; /* Reset opacity */
}

@keyframes liberation-rise {
  0% { transform: translateY(10px) scale(0.8); color: #ef4444; opacity: 0; filter: grayscale(0.8); }
  10% { opacity: 0; }
  50% { transform: translateY(-80px) scale(1.2); color: #ef4444; opacity: 1; filter: grayscale(0); }
  60% { transform: translateY(-100px) scale(1.5); color: #fbbf24; filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.8)); }
  85% { transform: translateY(-100px) scale(1.5); color: #fbbf24; opacity: 1; filter: drop-shadow(0 0 30px rgba(0, 242, 254, 0.8)); }
  95% { transform: translateY(-100px) scale(1.5); opacity: 0; }
  100% { transform: translateY(0) scale(0.8); opacity: 0; }
}

.liberation-message {
  position: absolute;
  top: 10%;
  width: 100%;
  text-align: center;
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 1.5rem;
  font-weight: bold;
  color: #0d9488;
  opacity: 0;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  transform: translateY(10px);
  animation: msg-fade-in 8s infinite ease;
  z-index: 10;
  bottom: auto; /* Reset interactive positioning */
  transition: none;
}

@keyframes msg-fade-in {
  0%, 45% { opacity: 0; transform: translateY(10px); }
  50%, 90% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; }
}


/* Spotlight Mode (Body Overlay) */
body.spotlight-active::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9); /* Dark overlay */
    z-index: 9990; /* Below modal, above everything else */
    animation: fadeIn 0.5s forwards;
    pointer-events: none; /* Let clicks pass through if needed, but usually blocks */
}

/* Ensure Vow Container stays on top */
.vow-action-container {
    position: relative; /* Setup z-index context */
    z-index: 1; 
    transition: transform 0.5s ease;
}

body.spotlight-active .vow-action-container {
    z-index: 9991; /* Highlight this */
    transform: scale(1.05);
    background: white; /* Ensure bg is opaque */
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.5); /* Glow */
}

/* Heart Echo Animation */
.heart-echo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-family: "Zen Maru Gothic", sans-serif;
    color: #fff;
    white-space: nowrap;
    z-index: 9995;
    opacity: 0;
    pointer-events: none;
}

@keyframes echo-ripple {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

/* Glow Card */
.glow-card {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid #e0f2fe;
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.05);
  margin: 2.5rem 0;
  text-align: center;
}

.glow-card p {
  color: #1e293b;
  font-weight: 600;
  line-height: 1.8;
  margin: 0;
}

/* Aurora Orb */
.aurora-orb-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin: 4rem 0;
}

.aurora-orb {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #a6ffcb, #00f2fe, #4facfe);
  box-shadow:
    0 0 40px rgba(0, 242, 254, 0.4),
    0 0 80px rgba(79, 172, 254, 0.2),
    inset 0 0 20px rgba(255, 255, 255, 0.8);
  position: relative;
  animation: orb-breathe 6s infinite ease-in-out;
}

.aurora-orb::after {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: orb-ring-spin 10s linear infinite;
}

@keyframes orb-breathe {
  0%, 100% { transform: scale(1); filter: hue-rotate(0deg); box-shadow: 0 0 40px rgba(0, 242, 254, 0.4); }
  50% { transform: scale(1.1); filter: hue-rotate(20deg); box-shadow: 0 0 60px rgba(0, 242, 254, 0.6), 0 0 100px rgba(166, 255, 203, 0.4); }
}

@keyframes orb-ring-spin {
  0% { transform: rotate(0deg); opacity: 0.3; }
  50% { opacity: 0.6; }
  100% { transform: rotate(360deg); opacity: 0.3; }
}

.orb-label {
  font-family: "Zen Maru Gothic", sans-serif;
  color: #475569;
  font-size: 1rem;
  letter-spacing: 0.15rem;
  opacity: 0.8;
}

/* Identity Vow */
.identity-vow {
  border-left: 5px solid var(--law5-primary);
  background: rgba(0, 242, 254, 0.05);
  padding: 2.5rem;
  border-radius: 0 1.5rem 1.5rem 0;
  margin: 3rem 0;
}

.vow-action-container {
  background: rgba(240, 249, 255, 0.5);
  border: 1px solid rgba(125, 211, 252, 0.3);
  padding: 3rem;
  border-radius: 24px;
  margin: 3rem 0;
  text-align: center;
  box-shadow: 0 15px 40px rgba(14, 165, 233, 0.05);
}

.vow-text {
  font-size: 1.2rem;
  color: #0c4a6e;
  margin-bottom: 2rem;
  font-weight: bold;
}

.vow-btn {
  background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%);
  color: white;
  border: none;
  padding: 1.2rem 3rem;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.vow-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(79, 172, 254, 0.5);
}

.vow-btn.ignited {
  animation: identity-glow 1s infinite alternate;
}

@keyframes identity-glow {
  from { box-shadow: 0 0 20px var(--law5-primary); }
  to { box-shadow: 0 0 40px var(--law5-accent); }
}

.tip-text {
  margin-top: 2rem;
  font-size: 1rem;
  color: #64748b;
  font-style: italic;
}

/* Spiritual Box */
.spiritual-box {
  background: linear-gradient(to right, #f8fafc, #f1f5f9);
  border-radius: 16px;
  padding: 2rem;
  margin: 3rem 0;
  border: 1px solid #e2e8f0;
}

.spiritual-box p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: #334155;
}

.spiritual-box p:last-child {
  margin-bottom: 0;
}

/* Check Card */
.check-card {
  background: #fff;
  border: 2px dashed #cbd5e1;
  border-radius: 20px;
  padding: 2.5rem;
  margin: 3rem 0;
  transition: all 0.3s ease;
}

.check-card:hover {
  border-color: var(--law5-secondary);
  background: #f8fafc;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  padding: 1rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
  color: #475569;
}

.check-list li:hover {
  background-color: rgba(0, 242, 254, 0.1);
  color: #0f172a;
  transform: translateX(10px);
}

.check-list li i {
  color: var(--law5-secondary);
  font-size: 1.3rem;
}

.check-message {
  margin-top: 2rem;
  text-align: center;
  font-weight: bold;
  color: var(--law5-primary);
  font-size: 1.1rem;
}

/* Summary Box */
.law5-summary {
  background: linear-gradient(to right, #f0f9ff, #e0f2fe);
  border: 2px solid #0ea5e9;
  border-radius: 16px;
  padding: 2.5rem;
  margin: 3rem 0;
}

.law5-summary .summary-title {
  text-align: center;
  font-weight: bold;
  color: #0369a1;
  margin-bottom: 2rem;
  font-size: 1.4rem;
}

/* Key Essence Box */
.key-essence-box {
  border-left: 6px solid #0ea5e9;
  background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
  padding: 3rem;
  border-radius: 24px;
  margin: 4rem 0;
  box-shadow: 0 15px 40px rgba(14, 165, 233, 0.1);
}

.key-essence-box .recipe-label {
  font-size: 1rem;
  font-weight: 800;
  color: #0284c7;
  letter-spacing: 0.2rem;
  margin-bottom: 1rem;
}

.key-essence-box h3 {
  font-size: 2rem;
  color: #0c4a6e;
  margin-bottom: 1.5rem;
}

.key-essence-box p {
  color: #4b5563;
  line-height: 1.9;
  font-size: 1.1rem;
}

/* Final Message */
.final-message {
  text-align: center;
  margin: 5rem 0;
}

.final-message p {
  font-size: 1.2rem;
  color: #475569;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.special-glow {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  padding: 3rem;
  border-radius: 30px;
  border: 1px solid rgba(125, 211, 252, 0.3);
  margin-top: 3rem;
  box-shadow: 0 20px 40px rgba(14, 165, 233, 0.05);
}

.special-glow p {
  font-size: 1.4rem;
  color: #0369a1;
  font-weight: 800;
  margin: 0;
}

/* Page Navigation */
.page-nav-3btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  background: white;
  color: #64748b;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  transition: all 0.3s;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px rgba(0,0,0,0.05);
  background: #f8fafc;
}

.nav-btn.next {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #0369a1;
}

.nav-btn.next:hover {
  background: #e0f2fe;
}

/* Sidebar Styles */
.sticky-sidebar-wrapper {
  position: sticky !important;
  top: 2rem;
}

.sidebar-advice {
  background: #f0f9ff;
  border-left: 4px solid #0ea5e9;
  padding: 1.5rem;
  border-radius: 8px;
}

.sidebar-advice .header {
  font-weight: bold;
  color: #0369a1;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-advice p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: #334155;
  margin: 0;
}

/* Certificate Modal */
.certificate-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(240, 253, 250, 0.9);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  padding-top: 5vh;
}

@keyframes mistFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.certificate-card {
  background: linear-gradient(135deg, #fff 0%, #f0fdfa 100%);
  border: 6px double #fbbf24;
  border-radius: 12px;
  padding: 4rem 3rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  text-align: center;
  animation: zoomUpPop 4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes zoomUpPop {
  from { transform: scale(0.5) translateY(50px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.cert-icon {
  font-size: 4rem;
  color: #fbbf24;
  margin-bottom: 1.5rem;
}

.certificate-card h4 {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 1.8rem;
  color: #b45309;
  margin: 0;
}

.certificate-card p {
  color: #78350f;
  margin-bottom: 0.5rem;
}

.cert-content {
  margin-top: 2.5rem;
  font-size: 1.2rem;
  line-height: 2;
}

.cert-signature {
  font-family: serif;
  font-style: italic;
  font-size: 1.6rem;
  margin-top: 2.5rem;
  color: #fbbf24;
  letter-spacing: 0.1em;
}

/* Utilities */
.spacer-s { height: 1rem; }
.spacer-m { height: 2rem; }
.spacer-l { height: 4rem; }
