/* answer_within.css - Page Specific Styles */

.answer-within-page {
  --answer-purple: #8b5cf6;
  --answer-light: #ddd6fe;
  --answer-dark: #5b21b6;
  --answer-gold: #fbbf24;
}

/* Remove monolithic styles from main wrapper */
.answer-within-page .main-content {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  overflow: visible;
}

/* New LP-style independent sections - No restrictive backgrounds */
.answer-within-page .lp-section {
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 5rem;
  box-shadow: none;
  position: relative;
  overflow: visible; /* Let elements glow/shadow naturally */
}

/* Redesign Hero: give it its own premium standalone styling */
.answer-within-page .premium-hero {
  padding: 6rem 3rem 6rem;
  margin-bottom: 4rem; /* More breathing room */
  background: linear-gradient(135deg, rgba(245, 243, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 15px 50px rgba(139, 92, 246, 0.08);
  text-align: center;
  z-index: 1;
}

/* Remove old content-body styles entirely */

/* Premium Subheadings */
.answer-within-page .section-heading.section-title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 1.7rem;
  color: var(--answer-dark);
  font-weight: 800;
  margin: 1rem 0 3.5rem 0; /* Elegant spacing */
  padding: 0 0 1rem 0; /* Bottom padding for the subtle underline */
  background: transparent;
  border-bottom: none; /* Removing hard line */
  border-left: none;
}

/* Custom elegant underline */
.answer-within-page .section-heading.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--answer-purple), transparent);
  border-radius: 2px;
}

/* Beautiful Icon for headings */
.answer-within-page .section-heading.section-title::before {
  content: '\f054'; /* fa-chevron-right */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--answer-gold);
  font-size: 1.1rem;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.answer-within-page .section-heading.section-title::before {
  content: '\f054'; /* fa-chevron-right */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--answer-gold);
  font-size: 1.2rem;
}

.answer-within-page .section-title .line {
  display: none;
}

.answer-within-page .premium-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    rgba(139, 92, 246, 0.1) 0%,
    transparent 50%
  );
  z-index: -1;
  animation: rotate-gradient 15s linear infinite;
}

@keyframes rotate-gradient {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.answer-within-page .hero-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--answer-purple), var(--answer-dark));
  color: white;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
  animation: float-icon 3s ease-in-out infinite;
}

@keyframes float-icon {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}

.answer-within-page .hero-main-title {
  color: var(--answer-dark);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8);
}

.answer-within-page .hero-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--answer-gold),
    transparent
  );
  margin: 0 auto 1.5rem auto;
  border-radius: 2px;
}

.answer-within-page .hero-subtitle {
  font-size: 1.1rem;
  color: #475569;
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* Quote Card Style - Standalone Floating Glass Box */
.answer-within-page .answer-quote-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.8));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-left: 6px solid var(--answer-purple);
  padding: 3rem 4rem;
  margin: 1rem auto 5rem auto; /* Clean floating margins, extra bottom space */
  border-radius: 20px;
  position: relative;
  box-shadow: 0 15px 40px rgba(139, 92, 246, 0.08);
  max-width: 95%;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.answer-within-page .answer-quote-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(139, 92, 246, 0.12);
}

.answer-within-page .answer-quote-card::before {
  content: "\f084"; /* Key icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: -24px;
  left: 3rem; /* Clean inset positioning */
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  background: var(--answer-gold);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(251, 191, 36, 0.4);
}

/* Scroll Animation (Reveal) */
.answer-within-page .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1), 
              transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
  will-change: opacity, transform;
}

.answer-within-page .reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.answer-within-page .answer-quote-text {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1.25rem;
  color: var(--answer-dark);
  line-height: 2.2;
  margin-bottom: 0;
}

/* Glass Card helper from inline style */
.answer-within-page .glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.answer-within-page .quote-attribution {
  text-align: right;
  font-weight: bold;
  color: #64748b;
}

.answer-within-page .highlight-text-center {
  text-align: center;
  margin: 3rem 0;
  font-weight: bold;
  color: var(--answer-dark);
}

/* Magic Mirror Interaction */
.answer-within-page .mirror-container {
  width: 340px; /* Increased to fit the text beautifully */
  height: 420px; /* Increased height */
  margin: 4rem auto;
  position: relative;
  border-radius: 100px 100px 0 0; /* Arch shape */
  border: 8px solid #cbd5e1;
  box-shadow:
    inset 0 0 20px rgba(0, 0, 0, 0.1),
    0 10px 30px rgba(139, 92, 246, 0.2);
  overflow: hidden;
  background: linear-gradient(to bottom, #f8fafc, #e2e8f0);
  transition: all 0.5s ease;
  cursor: pointer;
}

.answer-within-page .mirror-container:hover {
  border-color: var(--answer-gold);
  box-shadow:
    inset 0 0 20px rgba(251, 191, 36, 0.1),
    0 10px 40px rgba(251, 191, 36, 0.3);
}

.answer-within-page .mirror-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.8s ease;
  opacity: 1;
}

.answer-within-page .mirror-container:hover .mirror-overlay,
.answer-within-page .mirror-container.revealed .mirror-overlay {
  opacity: 0;
  backdrop-filter: blur(0);
  pointer-events: none;
}

.answer-within-page .mirror-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--answer-dark);
  opacity: 0; /* Hidden by default to prevent overlap */
  transition: opacity 0.8s ease;
  pointer-events: none; /* Prevent interaction until revealed */
}

.answer-within-page .mirror-container:hover .mirror-content,
.answer-within-page .mirror-container.revealed .mirror-content {
  opacity: 1;
  pointer-events: auto;
}

.answer-within-page .mirror-icon {
  font-size: 3rem;
  color: var(--answer-purple);
  margin-bottom: 1rem;
  animation: floating 3s ease-in-out infinite;
}

.answer-within-page .mirror-message {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: bold;
  font-size: 1.15rem; /* Slightly elegant size */
  line-height: 1.8;
  text-shadow: 0 1px 5px rgba(255, 255, 255, 0.8);
}

.answer-within-page .mirror-hint-text {
  font-size: 0.9rem;
  color: #64748b;
  margin-top: 1rem;
}

@keyframes floating {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Inner Voice Memo Styles */
.answer-within-page .memo-section {
  position: relative;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 16px;
  padding: 2.5rem;
  margin: 4rem 0;
  box-shadow:
    0 10px 30px rgba(139, 92, 246, 0.15),
    inset 0 0 20px rgba(255, 255, 255, 0.5);
  overflow: hidden;
}

.answer-within-page .memo-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--answer-purple),
    var(--answer-gold),
    var(--answer-purple)
  );
}

.answer-within-page .memo-title {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--answer-dark);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.answer-within-page .memo-desc {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 1.5rem;
  margin-left: 2.4rem;
}

.answer-within-page .memo-textarea {
  width: 100%;
  height: 180px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  font-size: 1.05rem;
  font-family: inherit;
  line-height: 1.8;
  resize: vertical;
  outline: none;
  transition: all 0.3s ease;
  background: #fdfcff;
  color: #334155;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
}

.answer-within-page .memo-textarea:focus {
  border-color: var(--answer-purple);
  background: #fff;
  box-shadow:
    0 0 0 4px rgba(139, 92, 246, 0.1),
    inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.answer-within-page .memo-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.answer-within-page .copy-btn {
  background: linear-gradient(135deg, var(--answer-purple), var(--answer-dark));
  color: white;
  border: none;
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Key Animation */
.answer-within-page .key-animation-box {
  position: relative;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 1rem 0;
}

.answer-within-page .glowing-key {
  font-size: 4rem;
  color: var(--answer-gold);
  animation: key-float 3s infinite ease-in-out;
  filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.6));
  cursor: pointer;
  transition: transform 0.3s;
  position: relative;
  z-index: 10;
}

.answer-within-page .glowing-key:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.8));
}

.answer-within-page .glowing-key.unlocking {
  animation: key-unlock-action 2.5s forwards ease-in-out;
}

@keyframes key-float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes key-unlock-action {
  0% {
    transform: scale(1) rotate(0deg);
  }
  20% {
    transform: scale(1.1) rotate(-10deg);
  }
  50% {
    transform: scale(1.2) rotate(90deg);
  }
  80% {
    transform: scale(1.5) rotate(90deg);
    opacity: 1;
    filter: drop-shadow(0 0 30px rgba(251, 191, 36, 1));
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

/* Heaven's Door Animation Refined */
.answer-within-page .heaven-door-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 300px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 5;
  background: radial-gradient(circle at center, #1e1b4b 0%, #000 100%);
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.answer-within-page .heaven-door-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(white, rgba(255, 255, 255, 0.2) 2px, transparent 3px),
    radial-gradient(white, rgba(255, 255, 255, 0.15) 1px, transparent 2px),
    radial-gradient(white, rgba(255, 255, 255, 0.1) 2px, transparent 3px);
  background-size:
    550px 550px,
    350px 350px,
    250px 250px;
  background-position:
    0 0,
    40px 60px,
    130px 270px;
  opacity: 0.8;
  z-index: 0;
}

.answer-within-page .heaven-door-wrapper.visible {
  opacity: 1;
  pointer-events: auto;
}

.answer-within-page .heaven-light {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, #fffbeb 20%, #fcd34d 50%, #fbbf24 80%);
  filter: blur(15px);
  opacity: 0;
  transform: scale(0.5);
  transition: all 1.5s ease-out;
  z-index: 1;
}

.answer-within-page .heaven-door-wrapper.active .heaven-light {
  opacity: 1;
  transform: scale(1.5);
}

.answer-within-page .heaven-gate {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: #0f172a;
  transition:
    transform 4s cubic-bezier(0.25, 1, 0.5, 1),
    background-color 4s ease;
  z-index: 2;
  display: flex;
  align-items: center;
}

.answer-within-page .heaven-door-wrapper.active .heaven-gate {
  background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 100%);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.5);
}

.answer-within-page .gate-left {
  left: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  transform-origin: left center;
  justify-content: flex-end;
}
.answer-within-page .gate-right {
  right: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  transform-origin: right center;
  justify-content: flex-start;
}

.answer-within-page .gate-left::after,
.answer-within-page .gate-right::after {
  content: "";
  width: 12px;
  height: 12px;
  background: #9ca3af;
  border-radius: 50%;
  margin: 0 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  transition: background-color 2s ease;
}

.answer-within-page .heaven-door-wrapper.active .gate-left::after,
.answer-within-page .heaven-door-wrapper.active .gate-right::after {
  background: #fff;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

.answer-within-page .heaven-door-wrapper.active .gate-left {
  transform: perspective(1000px) rotateY(-85deg);
}
.answer-within-page .heaven-door-wrapper.active .gate-right {
  transform: perspective(1000px) rotateY(85deg);
}

/* Sparkle Effect */
.sparkle {
  position: fixed;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 0L14.595 9.405L24 12L14.595 14.595L12 24L9.405 14.595L0 12L9.405 9.405L12 0Z' fill='%23fbbf24'/%3E%3C/svg%3E");
  background-size: contain;
  width: 20px;
  height: 20px;
  z-index: 9999;
  animation: sparkle-fade 0.5s forwards;
  opacity: 0;
}

@keyframes sparkle-fade {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: scale(1.2) rotate(180deg);
    opacity: 0;
  }
}

/* Oracle Cards Section */
.answer-within-page .oracle-section {
  text-align: center;
  margin: 4rem 0;
}
.answer-within-page .oracle-container {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  perspective: 1000px;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.answer-within-page .oracle-card {
  background-color: transparent;
  width: 100px;
  height: 150px;
  perspective: 1000px;
  cursor: pointer;
  transition:
    transform 0.8s ease,
    opacity 0.8s ease;
}

.answer-within-page .oracle-card.fade-out {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}
.answer-within-page .oracle-card.zoomed {
  transform: scale(1.3);
  z-index: 10;
  cursor: default;
}

.answer-within-page .oracle-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.answer-within-page .oracle-card.flipped .oracle-card-inner {
  transform: rotateY(180deg);
}

.answer-within-page .oracle-card-front,
.answer-within-page .oracle-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.answer-within-page .oracle-card-front {
  background: linear-gradient(135deg, var(--answer-dark), var(--answer-purple));
  color: var(--answer-gold);
  border: 2px solid var(--answer-light);
}
.answer-within-page .oracle-card-back {
  background-color: white;
  color: var(--answer-dark);
  transform: rotateY(180deg);
  border: 2px solid var(--answer-gold);
  font-weight: bold;
  font-family: "Yu Mincho", serif;
}

.answer-within-page .card-pattern {
  font-size: 2rem;
  opacity: 0.8;
}
.answer-within-page .oracle-keyword {
  font-size: 1.2rem;
  margin-top: 0.5rem;
}
.answer-within-page .oracle-desc {
  font-size: 0.7rem;
  color: #64748b;
  margin-top: 5px;
  padding: 0 5px;
}

.answer-within-page .oracle-instruction {
  font-size: 0.9rem;
}
.answer-within-page .final-message {
  text-align: center;
  margin-top: 2rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--answer-gold);
}

/* Sidebar Advice Specifics */
.answer-within-page .sidebar-advice {
  background: #fff;
  border: 1px solid var(--answer-purple);
  border-radius: 8px;
  padding: 1.5rem;
}

.answer-within-page .sidebar-advice .header {
  color: var(--answer-purple);
  border-bottom: 2px solid var(--answer-light);
  margin-bottom: 0.8rem;
  padding-bottom: 0.4rem;
  font-weight: bold;
}

.answer-within-page .recommendations-list li a.active {
  color: var(--answer-purple);
  background-color: #f5f3ff;
  border-left-color: var(--answer-purple);
}
