/* HALL OF ECHOES: CSS STYLE SHEET */
/* Phase 1: Visual Depth + Soft Echo Signal */

/* GLOBAL RESET */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  background: radial-gradient(ellipse at center, #0f0f17 0%, #050509 100%);
  font-family: 'Cormorant Garamond', serif;
  color: #e8e8f8;
  overflow-x: hidden;
}

/* MAIN CONTAINER */
.hall-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 5vh;
  padding-bottom: 10vh;
  perspective: 1600px;
}

/* PLAQUE AREA */
.plaque {
  background: rgba(20, 20, 30, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 0 60px rgba(180, 180, 255, 0.07);
  padding: 30px;
  max-width: 600px;
  text-align: center;
  font-size: 1.6rem;
  line-height: 1.6;
  margin-bottom: 40px;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.plaque:hover {
  transform: translateZ(15px) scale(1.01);
  box-shadow: 0 0 90px rgba(180, 180, 255, 0.2);
}

/* ECHO CHAMBER LINE ITEMS */
.echo-line {
  width: 80%;
  max-width: 700px;
  margin: 20px auto;
  background: rgba(255, 255, 255, 0.03);
  border-left: 4px solid #7f7fff;
  padding: 20px;
  border-radius: 8px;
  transition: all 0.4s ease-in-out;
  position: relative;
}

.echo-line:hover {
  transform: translateX(5px);
  background: rgba(255, 255, 255, 0.06);
  border-left-color: #aaaaff;
}

.echo-line::before {
  content: "✦";
  position: absolute;
  left: -24px;
  top: 18px;
  font-size: 1.2rem;
  color: #7f7fff;
}

/* SPACER */
.spacer {
  height: 60px;
}

/* FADE-IN ENTRY */
.fade-in {
  opacity: 0;
  animation: fadeInEase 1.8s ease-out forwards;
  animation-delay: 0.2s;
}

@keyframes fadeInEase {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ECHO TEXT GLOW */
.glow-text {
  color: #e0e0ff;
  text-shadow: 0 0 10px rgba(200, 200, 255, 0.3);
}

/* Frame Container */
#frame_echo_switch {
  background-color: #0d0d1a;
  color: #f2eaff;
  font-family: 'Cormorant Garamond', serif;
  padding: 2rem;
  border-left: 6px solid #a777f2;
  border-radius: 12px;
  margin-bottom: 3rem;
  position: relative;
  box-shadow: 0 0 10px rgba(167, 119, 242, 0.3);
}

/* Panel Header */
#frame_echo_switch h2 {
  font-size: 1.8rem;
  color: #caa9ff;
  margin-bottom: 0.5rem;
}

/* Panel Subheader */
#frame_echo_switch .subhead {
  font-size: 1rem;
  color: #8880b9;
  margin-bottom: 1.5rem;
  font-style: italic;
}

/* Panel Image */
#frame_echo_switch img {
  display: block;
  max-width: 100%;
  margin: 1rem auto 2rem auto;
  border-radius: 10px;
  border: 2px solid #a777f2;
}

/* Quote styling */
#frame_echo_switch blockquote {
  border-left: 4px solid #caa9ff;
  padding-left: 1rem;
  font-style: italic;
  color: #d9caff;
  margin: 1.5rem 0;
}

/* Reveal Button */
#frame_echo_switch .reveal-trigger {
  display: inline-block;
  background-color: #a777f2;
  color: #0d0d1a;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 1rem;
}

#frame_echo_switch .reveal-trigger:hover {
  background-color: #caa9ff;
}

/* Hidden Reveal Content */
#frame_echo_switch .hidden-reveal {
  display: none;
  margin-top: 1rem;
  font-size: 1rem;
  color: #f2eaff;
  border-top: 1px dashed #a777f2;
  padding-top: 1rem;
}

.fragment-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 1rem auto;
  border: 1px solid #844df6;
  box-shadow: 0 0 20px rgba(132, 77, 246, 0.4);
  border-radius: 8px;
  transition: transform 0.4s ease-in-out;
}

.fragment-image:hover {
  transform: scale(1.01);
}

.echo-hall {
  perspective: 1000px;
  height: 100vh;
  overflow: hidden;
  background: linear-gradient(to bottom, #111 0%, #222 100%);
}

.corridor-illusion {
  transform-style: preserve-3d;
  transform: rotateX(10deg) translateZ(-300px);
  animation: pulse-depth 10s infinite ease-in-out;
}

@keyframes pulse-depth {
  0%, 100% {
    transform: rotateX(10deg) translateZ(-300px);
  }
  50% {
    transform: rotateX(12deg) translateZ(-280px);
  }
}

.echo-portal {
  width: 160px;
  height: 160px;
  margin: 60px auto;
  border-radius: 50%;
  background: radial-gradient(circle, #eee 0%, #444 80%);
  box-shadow: 0 0 20px 5px #b9f,
              0 0 40px 10px #c4f inset;
  animation: portalPulse 3s ease-in-out infinite;
  position: relative;
}

@keyframes portalPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 20px 5px #b9f,
                0 0 40px 10px #c4f inset;
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 25px 8px #d9f,
                0 0 45px 14px #eaf inset;
  }
}

footer.codex-footer {
  margin-top: 4em;
  border-top: 1px solid #533d64;
  padding-top: 1em;
  font-size: 0.9em;
  color: #a999c2;
  text-align: center;
}