@import url('https://fonts.googleapis.com/css2?family=Zen+Kurenaido&display=swap');

/* Active Link Highlight override */
.nav-links a.active {
  color: var(--accent-color);
}

/* Typography matching answer_within.html as requested */
.content-block {
  line-height: 2;
  color: #475569;
  font-size: 1.05rem;
}

.content-block p {
  margin-bottom: 2rem;
}

/* Section Titles */
.section-title {
  color: #0891b2; /* Teal-600 */
  font-size: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #cffafe;
  display: inline-block;
  padding-bottom: 0.5rem;
}

/* Highlight Message */
.highlight-message {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  font-weight: bold;
  color: #15803d;
  margin-top: 3rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* --- Hero Section: Focus on the Good --- */
.positive-hero {
  position: relative;
  height: 400px;
  background-color: #f8fafc;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4rem;
  box-shadow: inset 0 0 50px rgba(0,0,0,0.05);
}

.hero-content {
  text-align: center;
  z-index: 2;
}

.hero-subtitle {
  margin-top: 1.5rem;
  font-size: 1.3rem;
  color: #1e293b; /* Darker for better visibility */
  font-weight: bold;
  font-family: "Zen Kurenaido", sans-serif;
  letter-spacing: 0.1em;
  text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

/* Spotlight Animation Effect */
.spotlight-container {
  position: relative;
  display: inline-block;
}

.hero-title {
  font-size: 4rem;
  font-family: "Outfit", sans-serif;
  position: relative;
}

.blur-text {
  color: #cbd5e1;
  filter: blur(4px);
  opacity: 0.5;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  animation: fadeOutBlur 4s infinite alternate;
}

.focus-text {
  color: transparent;
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  position: relative;
  opacity: 0;
  animation: fadeInFocus 4s infinite alternate;
}

@keyframes fadeOutBlur {
  0%, 40% { opacity: 1; filter: blur(0px); transform: translateX(-50%) scale(1); }
  60%, 100% { opacity: 0; filter: blur(10px); transform: translateX(-50%) scale(0.8); }
}

@keyframes fadeInFocus {
  0%, 40% { opacity: 0; transform: scale(0.8); filter: blur(10px); }
  60%, 100% { opacity: 1; transform: scale(1); filter: blur(0px); }
}

.spotlight {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 70%);
  transform: translate(-50%, -50%);
  z-index: 1;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* --- Notebook Styling (Enhanced) --- */
.notebook-outer {
  margin: 3rem 0;
  perspective: 1000px;
}

.notebook-paper {
  background: #fff;
  padding: 3rem 2rem;
  border-radius: 2px;
  box-shadow: 
    0 1px 1px rgba(0,0,0,0.15), 
    10px 10px 0 #f1f5f9, 
    20px 20px 0 rgba(0,0,0,0.05); /* Stacked paper effect */
  position: relative;
  border-left: 4px solid #ef4444; /* Red margin line */
  background-image: linear-gradient(#e2e8f0 1px, transparent 1px);
  background-size: 100% 2rem;
  line-height: 2rem;
  transform: rotate(-1deg);
  transition: transform 0.3s ease;
}

.notebook-paper:hover {
  transform: rotate(0deg) scale(1.01);
}

.notebook-title {
  font-family: "Zen Kurenaido", cursive;
  font-size: 1.8rem;
  font-weight: bold;
  color: #1e293b;
  margin-bottom: 2rem;
  text-align: center;
  border: 3px solid #1e293b;
  padding: 0.5rem 2rem;
  display: inline-block;
  transform: rotate(-2deg);
  background: #fff;
}

.notebook-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Zen Kurenaido", cursive; /* Handwritten font */
  font-size: 1.2rem;
}

.notebook-table th {
  color: #64748b;
  font-size: 1rem;
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 2px solid #1e293b;
}

.notebook-table th.col-half {
  width: 50%;
}

.notebook-table td {
  padding: 0 1rem;
  height: 2rem; /* Sync with background lines */
  vertical-align: bottom;
}

/* Animated Checkmarks/Crosses */
.list-plus, .list-minus {
  display: block;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.list-plus {
  color: #059669; /* Green pen */
  transform: translateX(-10px);
}

/* Updated list-minus for strikethrough effect */
.list-minus {
  color: #475569; /* Pencil gray */
  position: relative;
  opacity: 0;
  display: inline-block; /* Needed for width animation */
  transform: translateX(10px);
  text-decoration: none; /* Remove default strikethrough */
}

/* The Line using pseudo-element */
.list-minus::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  height: 2px;
  background: #ef4444;
  width: 0; /* Start width 0 */
  opacity: 0.7;
  transform: rotate(-1deg);
  transition: width 0.4s ease-out; /* The drawing action */
  transition-delay: 0.3s; /* Global slight pause before striking */
}

/* Active State (Triggered when parent section.reveal gets .active) */
.reveal.active .list-plus { opacity: 1; transform: translateX(0); }
.reveal.active .list-minus { opacity: 1; transform: translateX(0); }

/* Trigger line drawing AFTER text appears */
.reveal.active .list-minus::after {
  width: 100%;
}

/* Staggered Delays for "Writing" Effect */
.reveal.active tr:nth-child(1) .list-plus { transition-delay: 0.2s; }
.reveal.active tr:nth-child(2) .list-plus { transition-delay: 0.4s; }
.reveal.active tr:nth-child(3) .list-plus { transition-delay: 0.6s; }
.reveal.active tr:nth-child(4) .list-plus { transition-delay: 0.8s; }
.reveal.active tr:nth-child(5) .list-plus { transition-delay: 1.0s; }
.reveal.active tr:nth-child(6) .list-plus { transition-delay: 1.2s; }
.reveal.active tr:nth-child(7) .list-plus { transition-delay: 1.4s; }
.reveal.active tr:nth-child(8) .list-plus { transition-delay: 1.6s; }
.reveal.active tr:nth-child(9) .list-plus { transition-delay: 1.8s; }

.reveal.active tr:nth-child(1) .list-minus { transition-delay: 0.3s; }
.reveal.active tr:nth-child(2) .list-minus { transition-delay: 0.5s; }
.reveal.active tr:nth-child(3) .list-minus { transition-delay: 0.7s; }
.reveal.active tr:nth-child(4) .list-minus { transition-delay: 0.9s; }


/* --- Flip Cards (Mind Shift) --- */
.flip-card-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.flip-card {
  background-color: transparent;
  width: 180px;
  height: 180px;
  perspective: 1000px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  border-radius: 15px;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 15px;
  padding: 1rem;
}

.flip-card-front {
  background-color: #f1f5f9;
  color: #64748b;
  border: 2px solid #e2e8f0;
}

.flip-card-front p {
  font-size: 1.1rem;
  font-weight: bold;
  margin-top: 0.5rem;
}

.flip-card-back {
  background: linear-gradient(135deg, #a5f3fc 0%, #3b82f6 100%);
  color: white;
  transform: rotateY(180deg);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.flip-card-back p {
  font-size: 1.1rem;
  font-weight: bold;
  margin-top: 0.5rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.flip-card .emoji {
  font-size: 3rem;
  display: block;
}

.flip-hint {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  background: rgba(255,255,255,0.2);
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  font-weight: bold;
}

.handwritten-note {
  font-family: "Zen Kurenaido", cursive;
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  color: #ef4444;
  font-weight: bold;
  font-size: 1.1rem;
  transform: rotate(-10deg);
  background: rgba(255,255,0,0.2); /* Highlight marker */
  padding: 0.5rem;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

/* Sidebar Advice Text Override (if needed to match old inline) */
.sidebar-advice-text {
  color: #0f172a;
  font-size: 0.9rem;
  line-height: 1.6;
}
