@charset "UTF-8";

/* ==========================================================================
   Page Specific Variables: Gentle, Warm, Rose & Gold Palette
   ========================================================================== */
:root {
  --page-primary: #e17b77; /* Gentle Rose */
  --page-secondary: #fcd5ce; /* Soft Blush */
  --page-accent: #f8b400; /* Warm Gold (Confidence) */
  --page-text: #5d4037; /* Warm Brown (Instead of harsh black) */
  --page-bg-gradient: #ffffff;
  --card-shadow: 0 10px 30px rgba(225, 123, 119, 0.15);
}

/* ==========================================================================
   Base Layout Overrides & Atmosphere
   ========================================================================== */
body {
  background: var(--page-bg-gradient);
  color: var(--page-text);
  /* White Canvas Policy: No patterns, just pure white */
  background-image: none;
}

.main-content {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden; /* For containing effects */
}

/* Typography with "Handwritten" feel adjustments if possible, otherwise clean serif/sans mix */
h1,
h2,
h3 {
  color: var(--page-primary);
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", Meiryo, sans-serif;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Hero Section: Soft Aura Design
   ========================================================================== */
.page-header01 {
  text-align: center;
  margin-bottom: 5rem;
  position: relative;
  padding: 4rem 1rem;
  z-index: 1;
  /* Soft Aura Background: Blooming from center */
  background: radial-gradient(ellipse at center, #fff0f6 0%, rgba(255, 255, 255, 0) 60%);
}

/* Decorative Sparkle (CSS-only) */
.page-header01::before {
    content: "✦";
    position: absolute;
    top: 5%; /* Moved up */
    left: 10%; /* Moved left */
    font-size: 1.5rem;
    color: #ffd700; /* Gold */
    opacity: 0.6;
    animation: floatSparkle 4s ease-in-out infinite;
}
.page-header01::after {
    content: "✦";
    position: absolute;
    bottom: 20%; /* Moved down */
    right: 10%; /* Moved right */
    font-size: 1.2rem;
    color: #e17b77; /* Rose */
    opacity: 0.4;
    animation: floatSparkle 5s ease-in-out infinite reverse;
}

@keyframes floatSparkle {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.4; }
    50% { transform: translateY(-10px) rotate(20deg); opacity: 0.8; }
}

.page-header01 h1 {
  font-size: 3.2rem;
  margin-bottom: 1.5rem;
  color: var(--page-primary);
  /* Make text pop against the soft background */
  text-shadow: 2px 2px 0px #fff, 4px 4px 0px rgba(225, 123, 119, 0.2);
  letter-spacing: 0.1em;
}

.page-header01 .subtitle {
  font-size: 1.1rem;
  color: #8d6e63;
  display: inline-block;
  padding: 0.6rem 2.5rem;
  background: #fff;
  border-radius: 50px;
  /* Soft floating shadow */
  box-shadow: 0 10px 20px rgba(225, 123, 119, 0.15);
  border: 1px solid rgba(225, 123, 119, 0.3);
  position: relative;
}

/* ==========================================================================
   Intro Section: The "Question"
   ========================================================================== */
.question-box {
  background: #fff0f0;
  border-left: 5px solid var(--page-primary);
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 0 10px 10px 0;
}

.question-box h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* ==========================================================================
   Flip Concept: Shortcoming -> Strength
   ========================================================================== */
.flip-concept {
  margin: 5rem 0;
  perspective: 1000px;
}

.example-case {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 2rem auto;
  cursor: pointer;
  height: 300px; /* Fixed height for flip structure */
}

/* The structural card holder */
.example-case-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  box-shadow: var(--card-shadow);
  border-radius: 20px;
}

/* Flip interaction class (added via JS or :hover for simple devices) */
.example-case:hover .example-case-inner,
.example-case.flipped .example-case-inner {
  transform: rotateY(180deg);
}

/* Front and Back common */
.flip-front,
.flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

/* Front: The "Negative" View */
.flip-front {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: #555;
  border: 2px solid #ddd;
}

.flip-front h3 {
  color: #718096;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.flip-front::after {
  content: "↻ Click to Reframe";
  position: absolute;
  bottom: 20px;
  font-size: 0.8rem;
  color: #888;
  opacity: 0.7;
}

/* Back: The "Positive" View */
.flip-back {
  background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
  color: #fff;
  transform: rotateY(180deg);
  border: 2px solid #fff;
}

.flip-back h3 {
  color: #fff;
  font-size: 1.8rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.flip-back p {
  font-size: 1.1rem;
  line-height: 1.6;
}

.flip-result strong {
  font-size: 1.4rem;
  display: block;
  margin-top: 0.5rem;
  color: #fff;
  text-decoration: underline wavy rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   Mirror Metaphor: The "Polishing" Effect
   ========================================================================== */
.mirror-metaphor {
  margin: 5rem 0;
  position: relative;
  text-align: center;
}

.mirror-frame {
  position: relative;
  width: 300px;
  height: 400px; /* Oval shape */
  margin: 0 auto;
  background: #eee;
  border: 8px solid #d4af37; /* Metallic Gold Frame */
  border-radius: 50%;
  box-shadow: 0 0 0 2px #b89628, inset 0 0 20px rgba(0, 0, 0, 0.1),
    0 20px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  user-select: none;
}

/* The content INSIDE the mirror (The reflection) */
.mirror-content {
  padding: 2rem;
  color: #e17b77;
  font-weight: bold;
  font-size: 1.2rem;
  text-align: center;
}

.mirror-content .affirmation {
  font-size: 1.4rem;
  margin-top: 1rem;
  color: #d84315;
}

/* The Fog Layer (Canvas) */
#mirrorCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}
#mirrorCanvas:active {
  cursor: grabbing;
}

.mirror-instruction {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #999;
}

/* ==========================================================================
   Self Care & Magic Shift
   ========================================================================== */
.magic-shift {
  background: #fff8e1;
  padding: 3rem;
  border-radius: 20px;
  position: relative;
  margin: 4rem 0;
  overflow: hidden;
}

.magic-shift::before {
  content: "✨";
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 10rem;
  opacity: 0.1;
  transform: rotate(15deg);
}

.magic-shift blockquote {
  font-size: 1.5rem;
  color: var(--page-accent);
  border: none;
  text-align: center;
  font-style: italic;
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin: 2rem 0;
}

/* ==========================================================================
   Closing Section & Footer
   ========================================================================== */
.final-message-box {
  text-align: center;
  padding: 3rem;
  margin-top: 4rem;
  background: linear-gradient(to bottom, #fff, #fff0f5);
  border-radius: 30px;
  border: 3px dashed var(--page-primary);
}

.highlight-ending {
  font-size: 1.4rem;
  color: var(--page-primary);
  font-weight: bold;
  margin-top: 2rem;
  animation: pulseGlow 3s infinite;
}

@keyframes pulseGlow {
  0% {
    text-shadow: 0 0 0 rgba(225, 123, 119, 0);
  }
  50% {
    text-shadow: 0 0 10px rgba(225, 123, 119, 0.5);
    transform: scale(1.02);
  }
  100% {
    text-shadow: 0 0 0 rgba(225, 123, 119, 0);
  }
}

/* ==========================================================================
   Animation & Interactions (Polish)
   ========================================================================== */

/* Scroll Reveal Base */
.reveal {
  position: relative;
  transform: translateY(30px);
  opacity: 0;
  transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
  transform: translateY(0);
  opacity: 1;
}

/* Mirror Completion Glow */
.mirror-frame {
  transition: box-shadow 0.8s ease, border-color 0.8s ease;
}

.mirror-frame.completed {
  /* Golden Glow */
  border-color: #ffd700;
  box-shadow: 
    0 0 20px #ffd700, 
    inset 0 0 30px rgba(255, 215, 0, 0.3),
    0 20px 50px rgba(255, 215, 0, 0.5);
  animation: shineFrame 2s infinite alternate;
}

@keyframes shineFrame {
  0% { box-shadow: 0 0 10px #ffd700; }
  100% { box-shadow: 0 0 30px #ffeb3b, 0 0 60px rgba(255, 215, 0, 0.6); }
}

/* ==========================================================================
   Sidebar Customization
   ========================================================================== */
/* Reverting to default styles for consistency and readability */
