/* Things You Have Page Styles */
/* Extracted from style.css */

.tyh-page-title {
  color: #0ea5e9;
}

.tyh-page-title-line {
  margin: 0;
  width: 100px;
  background: linear-gradient(to right, #0ea5e9, #6366f1);
}

.tyh-section-title-wrapper {
  text-align: left;
  margin-bottom: 2rem;
}

.tyh-heading-primary {
  color: #0369a1;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.tyh-heading-secondary {
  color: #0369a1;
  margin-top: 3rem;
  border-bottom: 1px solid #bae6fd;
  padding-bottom: 0.5rem;
}

.tyh-text-highlight-brown {
  color: #b45309;
}

.tyh-text-center-bold {
  text-align: center;
  font-size: 1.3rem;
  font-weight: bold;
  color: #0ea5e9;
  margin: 2rem 0;
}

.tyh-footer-subtext {
  font-size: 1rem;
  font-weight: normal;
  display: block;
  margin-top: 0.5rem;
  color: #334155;
  background: none; /* Reset potential backgrounds */
}

.tyh-footer-main-text {
  margin-top: 1rem;
  color: #f59e0b;
  font-size: 1.4rem;
}

.sc-advice-text {
  color: #0f172a;
  font-size: 0.9rem;
  line-height: 1.6;
}

.sc-highlight-orange {
  color: #f97316;
  font-weight: bold;
}

/* 1. Jewel Box Animation */
.gem-box {
  text-align: center;
  margin: 2rem 0;
  perspective: 1000px;
  background-color: #fffbeb;
  border: 2px solid #fcd34d;
  border-radius: 12px;
  padding: 2rem;
  position: relative;
}

.gem-box .gem-icon {
  font-size: 4rem !important;
  color: #f59e0b; /* Amber/Gold */
  display: inline-block;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
  animation: float-gem 3s ease-in-out infinite;
  transition: transform 0.3s;
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 0 10px;
  z-index: 10;
}

.gem-box .gem-icon:hover {
  transform: translateX(-50%) scale(1.1) rotate(10deg);
}

@keyframes float-gem {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
    filter: drop-shadow(0 15px 10px rgba(0, 0, 0, 0.1));
  }
}

.gem-box h3 {
  margin-top: 1.5rem;
  color: #b45309;
  margin-bottom: 1rem;
}

/* 2. Marker Text Highlight */
.marker-highlight {
  background: linear-gradient(transparent 60%, rgba(255, 165, 0, 0) 60%);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  transition: background-size 1.5s ease;
  padding-bottom: 2px;
}

.marker-highlight.active-marker {
  background: linear-gradient(transparent 60%, rgba(255, 165, 0, 0.4) 60%);
  background-size: 100% 100%;
}

/* 3. Originality Stamp */
.originality-check {
  position: relative;
  border: 3px solid #cbd5e1;
  background: #f8fafc;
  border-radius: 12px;
  padding: 2rem 2rem 2rem 5rem; /* Left padding for icon space */
  margin: 3rem 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.originality-check > i {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: #cbd5e1;
}

.stamp-container {
  position: relative;
  display: inline-block;
  margin-left: 1rem;
  vertical-align: middle;
}

.stamp-mark {
  width: 80px;
  height: 80px;
  border: 3px solid #e11d48; /* Red stamp color */
  border-radius: 50%;
  color: #e11d48;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  transform: scale(3);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 2px rgba(225, 29, 72, 0.1);
  text-align: center;
  line-height: 1.2;
  padding: 2px;
  position: absolute;
  top: -15px;
  right: -15px;
  z-index: 10;
}

.stamp-mark.stamped {
  transform: scale(1) rotate(-15deg);
  opacity: 1;
}

/* 4. Mirror Embedded */
.mirror-section {
  margin: 4rem 0;
  text-align: center;
  perspective: 1000px;
}

.mirror-frame-embedded {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #e2e8f0 100%);
  padding: 5px;
  border-radius: 50%;
  width: 180px; /* Resized smaller */
  height: 240px; /* Resized smaller */
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.1),
    inset 0 0 15px rgba(0, 0, 0, 0.05);
  margin: 0 auto;
  border: 6px solid #cbd5e1;
  position: relative;
  transition:
    transform 0.5s,
    box-shadow 0.5s;
  cursor: pointer;
}

.mirror-frame-embedded:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px rgba(14, 165, 233, 0.2);
  border-color: #bae6fd;
}

.mirror-glass-embedded {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(to bottom, #94a3b8, #cbd5e1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: background 1.5s ease;
}

/* Clear the fog on hover */
.mirror-frame-embedded:hover .mirror-glass-embedded {
  background: linear-gradient(135deg, #fff 0%, #f0f9ff 100%);
}

.mirror-instruction {
  position: absolute;
  color: white;
  font-weight: bold;
  font-size: 0.9rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: opacity 0.5s;
  z-index: 5;
  pointer-events: none;
}

.mirror-frame-embedded:hover .mirror-instruction {
  opacity: 0;
}

/* Shininess on glass */
.mirror-glass-embedded::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 60%
  );
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 1s;
}

.mirror-frame-embedded:hover .mirror-glass-embedded::after {
  opacity: 1;
  animation: shine-glass 4s infinite;
}

.mirror-content-embedded {
  text-align: center;
  z-index: 10;
  width: 100%;
}

.mirror-text {
  opacity: 0;
  transform: translateY(10px);
  transition: all 1s ease;
  position: absolute;
  width: 100%;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.mirror-message-1 {
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.4;
}

.mirror-message-2 {
  font-size: 1.3rem;
  font-weight: bold;
  color: #f59e0b;
  margin-top: 0.5rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 1);
}

/* Delays for sequence */
.mirror-frame-embedded:hover .mirror-message-1 {
  opacity: 1;
  transform: translateY(-40px);
  transition-delay: 0.5s;
}

.mirror-frame-embedded:hover .mirror-message-2 {
  opacity: 1;
  transform: translateY(5px);
  transition-delay: 2.5s;
}

.mirror-crown {
  font-size: 2rem;
  color: #fcd34d;
  display: block;
  margin-bottom: 0.3rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Wonders Quote Card reused from before */
.wonders-quote-card {
  background: linear-gradient(135deg, #fef3c7, #fcd34d, #f59e0b);
  color: #78350f;
  padding: 3rem 2rem;
  border-radius: 16px;
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.2);
  position: relative;
  overflow: hidden;
  border: 2px solid #fff;
}

.wonders-quote-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0) 60%
  );
  transform: rotate(45deg);
  opacity: 0.3;
  animation: shine 8s infinite linear;
  pointer-events: none;
}

.wonders-quote-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(#fff, rgba(255, 255, 255, 0.8) 2px, transparent 4px),
    radial-gradient(#fff, rgba(255, 255, 255, 0.5) 1px, transparent 3px);
  background-size:
    200px 200px,
    120px 120px;
  opacity: 0.6;
  animation: sparkle 4s infinite alternate ease-in-out;
  pointer-events: none;
}

@keyframes shine {
  0% {
    transform: rotate(45deg) translateY(-20%);
  }
  100% {
    transform: rotate(45deg) translateY(20%);
  }
}

@keyframes sparkle {
  0% {
    opacity: 0.4;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.wonders-quote-text {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1.3rem;
  line-height: 2.2;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 10;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
  font-weight: bold;
}

.wonders-author {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  opacity: 0.9;
  position: relative;
  z-index: 10;
}

.footer-message {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(120deg, #dbeafe, #eff6ff);
  border-radius: 12px;
  color: #1e3a8a;
  font-weight: bold;
  font-size: 1.2rem;
  margin-top: 3rem;
  position: relative;
  overflow: hidden;
}

.footer-message::before {
  content: "\f005"; /* Escaped for Python string */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 5rem;
  color: rgba(59, 130, 246, 0.1);
  transform: rotate(15deg);
}
