/* let_it_be.css - Law 5 Specific Styles */

/* --- Law 5: Let It Be (Flow) Theme --- */
.hero-essence-05 {
  background: radial-gradient(circle at top right, #ccfbf1 0%, #e0f2fe 60%, #fff 100%);
  border-left: 8px solid #0ea5e9; 
  padding: 5rem 3rem; /* Increased padding */
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  color: #0f172a;
  margin-bottom: 5rem; /* Increased margin to separate from content */
  box-shadow: 0 20px 40px rgba(14, 165, 233, 0.1);
}

/* Decorative Clouds/Wind */
.hero-essence-05::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    filter: blur(40px);
}

.hero-essence-05::after {
    content: '\f72e'; /* Wind icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    bottom: -20px;
    right: 20px;
    font-size: 10rem;
    color: rgba(14, 165, 233, 0.05);
    transform: rotate(-10deg);
}

.hero-essence-05 h1 {
  color: #0284c7; /* Stronger Blue */
  margin-bottom: 1.5rem;
  font-size: 2.8rem;
  font-weight: 800;
  text-shadow: 0 4px 10px rgba(186, 230, 253, 0.5);
  position: relative;
  z-index: 10;
}

.hero-essence-05 p {
  color: #334155;
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.8;
  max-width: 600px;
  position: relative;
  z-index: 10;
}

/* --- Content Section (Glassmorphism & Flow Style) --- */
.content-section {
    background: rgba(255, 255, 255, 0.9); /* Slightly transparent */
    border-radius: 24px;
    padding: 3.5rem;
    margin-bottom: 4rem;
    /* Soft Shadow + Glass Border */
    box-shadow: 0 20px 50px rgba(100, 116, 139, 0.08); 
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(14, 165, 233, 0.12); /* Cyan tint shadow */
}

/* Decorative subtle top bar */
.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #22d3ee 0%, #34d399 50%, #fbbf24 100%);
    opacity: 0.8;
}

/* Rich Gradient Heading */
.content-section h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 2.5rem;
    padding-bottom: 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: none; /* Removed dashed border */
}

/* Heading Icon Wrapper */
.content-section h2 i {
   display: flex;
   align-items: center;
   justify-content: center;
   width: 50px;
   height: 50px;
   background: linear-gradient(135deg, #e0f2fe 0%, #ecfeff 100%);
   color: #0ea5e9; /* Sky Blue */
   border-radius: 14px;
   font-size: 1.4rem;
   box-shadow: 0 4px 10px rgba(14, 165, 233, 0.15);
   transition: transform 0.3s ease;
}

.content-section:hover h2 i {
    transform: rotate(10deg) scale(1.1);
}

/* Stylish Marker Underline for Text */
.content-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 66px; /* Offset for icon width + gap */
    width: 60px;
    height: 4px;
    background: #fbbf24; /* Warm Yellow */
    border-radius: 10px;
}

/* Flowing Atmosphere (Leaves & Feathers) */
.flowing-atmosphere {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.flow-item {
  position: absolute;
  opacity: 0.6;
  filter: blur(1px);
}

.flow-item.leaf {
  color: #86efac; /* Soft Green */
  font-size: 1.5rem;
}

.flow-item.feather {
  color: #bae6fd; /* Soft Blue */
  font-size: 1.2rem;
}

/* Positions for flow items */
.flow-item.x1 {
  top: 10%;
  left: 10%;
  animation: drift 15s infinite linear;
}
.flow-item.x2 {
  top: 30%;
  left: 20%;
  animation: drift 18s infinite linear;
  animation-delay: -5s;
}
.flow-item.x3 {
  top: 60%;
  left: 80%;
  animation: drift 20s infinite linear;
  animation-delay: -2s;
}
.flow-item.x4 {
  top: 80%;
  left: 40%;
  animation: drift 12s infinite linear;
  animation-delay: -8s;
}
.flow-item.x5 {
  top: 15%;
  left: 85%;
  animation: drift 16s infinite linear;
  animation-delay: -10s;
}
.flow-item.x6 {
  top: 50%;
  left: 50%;
  animation: drift 22s infinite linear;
  animation-delay: -4s;
}
.flow-item.x7 {
  top: 90%;
  left: 10%;
  animation: drift 14s infinite linear;
  animation-delay: -1s;
}
.flow-item.x8 {
  top: 25%;
  left: 60%;
  animation: drift 19s infinite linear;
  animation-delay: -7s;
}

@keyframes drift {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0;
  }
  20% {
    opacity: 0.8;
  }
  80% {
    opacity: 0.8;
  }
  100% {
    transform: translate(100px, 50px) rotate(360deg);
    opacity: 0;
  }
}

/* --- Interactive Script Scene --- */
.interactive-script-scene {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  margin: 3rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* --- Cinematic Grading Theme (The Director's Eye) --- */

.director-viewfinder-wrapper {
  position: relative;
  margin: 4rem auto;
  max-width: 760px; /* Slightly wider for film strips */
  background: #000;
  border-radius: 4px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  font-family: "Kaisei Opti", serif; /* Inheriting the Pro Font */
  padding: 0 30px; /* Space for film strips */
}

/* Vertical Film Strips */
.film-strip-side {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30px;
  background: #111;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  border-left: 1px solid #333;
  border-right: 1px solid #333;
}
.strip-left {
  left: 0;
}
.strip-right {
  right: 0;
}

.film-perforation {
  width: 16px;
  height: 12px;
  background: #333; /* Dark gray holes */
  margin: 8px 0;
  border-radius: 2px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Viewfinder UI */
.vf-ui {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: rgba(255, 255, 255, 0.5);
  border-style: solid;
  z-index: 20;
  pointer-events: none;
}
.vf-tl {
  top: 20px;
  left: 20px;
  border-width: 2px 0 0 2px;
}
.vf-tr {
  top: 20px;
  right: 20px;
  border-width: 2px 2px 0 0;
}
.vf-bl {
  bottom: 20px;
  left: 20px;
  border-width: 0 0 2px 2px;
}
.vf-br {
  bottom: 20px;
  right: 20px;
  border-width: 0 2px 2px 0;
}

.vf-rec-indicator {
  position: absolute;
  top: 25px;
  right: 30px;
  color: #ef4444;
  font-family: sans-serif;
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 20;
}

.rec-dot {
  width: 10px;
  height: 10px;
  background: #ef4444;
  border-radius: 50%;
  animation: blink-rec 1.5s infinite;
}

@keyframes blink-rec {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Viewport & Grading */
.cinematic-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 2.35 / 1; /* CinemaScope */
  background: #1a1a1a;
  overflow: hidden;
}

.cinematic-content {
  width: 100%;
  height: 100%;
  position: relative;
  /* Initial State: Tragedy (Graded Cold/Desaturated) */
  filter: grayscale(60%) contrast(95%) brightness(100%) sepia(5%)
    hue-rotate(190deg);
  /* Transition for the filter shift */
  transition:
    filter 3s ease-out,
    opacity 1s ease,
    transform 3s ease;
}

/* 1. MIST PHASE: Fade out + Blur + Brightness (White Mist) */
.director-viewfinder-wrapper.active-mist .cinematic-content {
  filter: grayscale(100%) blur(15px) brightness(300%); /* Blind with white mist */
  opacity: 0;
  transform: scale(1.05); /* Slight drift */
  transition: all 1.5s ease-in;
}

/* 2. GOLD PHASE: Reveal (Slow Fade In) */
.director-viewfinder-wrapper.is-graded .cinematic-content {
  /* The Golden Masterpiece Grading */
  filter: grayscale(0%) contrast(110%) brightness(110%) sepia(0%)
    hue-rotate(0deg);
  opacity: 1;
  transition:
    filter 3s ease-out,
    opacity 3s ease-in; /* Slow fade in */
}

.scene-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  transition: opacity 0.1s; /* Instant swap behind the mist */
}

/* Content Tragic */
.layer-tragedy {
  background: radial-gradient(
    circle at center,
    #334155 0%,
    #0f172a 100%
  ); /* Slightly lighter center for text contrast */
  color: #ffffff !important; /* Force White */
  z-index: 2;
  opacity: 1;
}

/* Content Masterpiece */
.layer-masterpiece {
  background: radial-gradient(
    circle at center,
    #fff7ed 0%,
    #fbbf24 60%,
    #f59e0b 100%
  );
  color: #78350f !important;
  z-index: 3; /* On top, but hidden by opacity */
  opacity: 0;
}

/* Text Styles */
.scene-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.9;
  color: #ffffff !important;
}
.scene-title {
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 0.6rem 2rem;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.3); /* Legibility overlay */
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}
.scene-text {
  font-size: 1.4rem;
  line-height: 1.8;
  font-weight: 700;
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Transition Logic */
.director-viewfinder-wrapper.is-graded .layer-tragedy {
  opacity: 0;
}
.director-viewfinder-wrapper.is-graded .layer-masterpiece {
  opacity: 1;
}

/* Controls */
.director-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: #000;
  border-top: 1px solid #333;
  position: relative;
  z-index: 15;
}

.director-comment-box {
  margin-top: 1.5rem;
  color: #888;
  font-size: 0.9rem;
  font-family: "Kaisei Opti", serif;
  letter-spacing: 0.1em;
  border-top: 1px solid #333;
  padding-top: 1rem;
  width: 80%;
  text-align: center;
  transition: color 1s ease;
}

.is-graded .director-comment-box {
  color: #fbbf24; /* Gold text */
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.action-btn {
  background: #333;
  color: white;
  border: 1px solid #666;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: sans-serif;
  font-weight: bold;
  letter-spacing: 1px;
  transition: 0.2s;
}

.action-btn:hover {
  background: #ef4444; /* Rec Color */
  border-color: #ef4444;
  transform: scale(1.05);
}

/* Summary Box */
/* Summary Box (Modern Checklist Style) */
.summary-essence-05 {
  background: linear-gradient(135deg, #fffbeb 0%, #fff 100%);
  border: 1px solid #fde68a;
  border-radius: 24px;
  padding: 3rem 2.5rem;
  margin: 4rem 0;
  position: relative;
  box-shadow: 0 10px 30px rgba(251, 191, 36, 0.1);
}

.summary-essence-05 h2 {
    text-align: center;
    justify-content: center;
    border-bottom: none;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: #92400e;
}

.summary-essence-05 h2 i {
    background: #fef3c7;
    color: #d97706;
}

.summary-essence-05 ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.summary-essence-05 li {
    background: white;
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-weight: 600;
    color: #475569;
    transition: transform 0.2s;
}

.summary-essence-05 li:hover {
    transform: translateX(5px);
    border-color: #fcd34d;
}

.list-icon-essence-05 {
  color: #f59e0b;
  font-size: 1.2rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
  background: #fffbeb;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* Highlight Box (Script Style) */
.highlight-box {
  background: #fdfcf8; /* Paper-like off-white */
  border-left: 6px solid #cbd5e1;
  padding: 2rem 2.5rem;
  margin: 2.5rem 0;
  border-radius: 4px 12px 12px 4px;
  position: relative;
  font-family: "Kaisei Opti", serif; /* Serif for Storytelling */
}

.highlight-box::before {
    content: '\f10d'; /* Quote icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: -15px;
    left: 20px;
    font-size: 1.5rem;
    color: #cbd5e1;
    background: #fdfcf8;
    padding: 0 10px;
}

.highlight-box p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #334155;
    margin: 0;
}

/* Orange Highlight Variant (Key Scene) */
.highlight-box.highlight-orange {
  background: #fff7ed;
  border-left-color: #f97316;
}

.highlight-box.highlight-orange::before {
    color: #fdba74;
    background: #fff7ed;
}

.highlight-box.highlight-orange p {
    color: #9a3412;
    font-weight: 700;
}

/* Fix for spacing in highlight box */
.highlight-box p strong {
    background: linear-gradient(transparent 60%, rgba(251, 191, 36, 0.4) 60%);
    padding: 0 4px;
}

/* Navigation & Footer Buttons */
.footer-navigation { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 1.5rem; 
    margin-top: 5rem; 
    flex-wrap: wrap;
    padding-bottom: 2rem;
}

.back-home-btn {
    display: inline-flex; 
    align-items: center; 
    gap: 0.6rem;
    padding: 0.9rem 2.2rem; 
    border-radius: 50px;
    background: white; 
    color: #64748b; 
    text-decoration: none;
    font-weight: 600; 
    border: 2px solid #f1f5f9; 
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.back-home-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    color: #334155;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.btn-next-chapter { 
    background: linear-gradient(135deg, #22d3ee 0%, #34d399 100%); /* Cyan/Teal Gradient */
    border: none;
    color: white; 
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}

.btn-next-chapter:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
    color: white;
    background: linear-gradient(135deg, #22d3ee 0%, #34d399 100%);
    border-color: transparent;
}
