/* ==========================================
   DEFAULT SHRINE STYLESHEET
   ========================================== */

/* Universal Color Variables (Change these to change the entire site's colors) */
:root {
  --bg-color: #0b0214;       /* Deep dark purple background */
  --grid-line: #2d124d;      /* Lighter purple for background grid points */
  --panel-bg: rgba(22, 5, 38, 0.85); /* Semi-transparent box background */
  
  --text-main: #dfb2ff;      /* Default soft purple text */
  --text-bright: #ff61d5;    /* Hot neon pink for headers */
  --text-accent: #a4fcff;    /* Cyber cyan for subheaders and accents */
  --text-gold: #82ee61;      /* Vintage yellow for highlight items */
}

/* Global Reset & Body */
body {
  background-color: var(--bg-color);
  background-image: radial-gradient(var(--grid-line) 1px, transparent 1px);
  background-size: 20px 20px;
  color: var(--text-main);
  font-family: "Courier New", Courier, monospace;
  margin: 0;
  padding: 20px;
  text-align: center;
}

/* Main Container Box used on all pages */
.shrine-container, .hub-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--panel-bg);
  border: 3px double var(--text-bright);
  padding: 30px;
  box-shadow: 0 0 20px rgba(182, 86, 255, 0.4);
}

/* Default Typography Rules */
h1 {
  color: var(--text-bright);
  text-shadow: 0 0 10px var(--text-bright), 0 0 20px #ff00b7;
  font-size: 2.5em;
  margin-bottom: 5px;
}

h2 {
  color: var(--text-accent);
  text-shadow: 0 0 5px var(--text-accent);
}

h3 {
  color: var(--text-gold);
}

.subtitle {
  font-style: italic;
  color: var(--text-accent);
  margin-top: 0;
}

/* Scrolling Text Bar Style */
marquee {
  background: var(--grid-line);
  color: var(--text-gold);
  padding: 5px;
  border-top: 1px solid var(--text-bright);
  border-bottom: 1px solid var(--text-bright);
  font-weight: bold;
  margin: 20px 0;
}

/* Central Subject Image Frame */
.shrine-subject {
  margin: 30px 0;
  animation: floatAnimation 4s ease-in-out infinite;
}

.shrine-subject img {
  max-width: 250px;
  border: 2px solid var(--text-accent);
  padding: 5px;
  background: #000;
  box-shadow: 0 0 15px var(--text-accent);
}

/* Directory Grid on Home Page */
.shrine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Individual Destination Container Boxes */
.shrine-card {
  background: #110321;
  border: 2px dashed var(--text-bright);
  padding: 20px;
  transition: all 0.3s ease;
}

.shrine-card:hover {
  transform: translateY(-5px);
  border-style: solid;
  border-color: var(--text-accent);
  box-shadow: 0 0 15px var(--text-accent);
}

/* 1. Normal state (What links look like when just sitting there) */
a {
  color: #6df09b;             /* Change this color (currently Cyan) */
  text-decoration: none;      /* Removes the default underline. Change to 'underline' to keep it */
}

/* 2. Hover state (What happens when a visitor hovers their mouse over a link) */
a:hover {
  color: #ff61d5;             /* Change this color (currently Hot Pink) */
  text-decoration: underline; /* Adds an underline when hovered */
}

.enter-btn, .back-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 15px;
  background: var(--grid-line);
  color: var(--text-accent);
  text-decoration: none;
  border: 1px solid var(--text-accent);
  font-weight: bold;
}

.enter-btn:hover, .back-btn:hover {
  background: var(--text-accent);
  color: var(--bg-color);
  text-decoration: none;
}

/* Floating Animation */
@keyframes floatAnimation {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}
/* ==========================================
   OPEN/CLOSE TOGGLE CONTAINER
   ========================================== */

/* The main outer wrapper box */
details {
  background: #110321;
  border: 1px solid var(--text-bright);
  margin: 20px auto;
  max-width: 100%;
  text-align: left;
}

/* The clickable title bar button */
details summary {
  background: var(--grid-line);
  color: var(--text-accent);
  padding: 12px;
  font-weight: bold;
  cursor: pointer;
  outline: none;
  user-select: none;
  list-style: none; /* Removes the default tiny triangle arrow */
}

/* Adds a retro [+] or [-] indicator prefix instead of the default arrow */
details summary::before {
  content: "[+] ";
  color: var(--text-gold);
  font-family: monospace;
}

/* Changes the prefix to [-] automatically when the container is opened */
details[open] summary::before {
  content: "[-] ";
}

/* Visual feedback when hovering over the toggle button bar */
details summary:hover {
  background: var(--text-bright);
  color: var(--bg-color);
}

details summary:hover::before {
  color: var(--bg-color);
}

/* The hidden content container area padding */
.toggle-content {
  padding: 20px;
  border-top: 1px dashed var(--text-bright);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-main);
  line-height: 1.6;
}
