/* 🌌 Base Layout */
body {
  font-family: 'Segoe UI', sans-serif;
  background: #0e0e0e;
  color: #eee;
  padding: 40px;
  margin: 0;
  scroll-behavior: smooth;
}

#controls {
  margin-bottom: 30px;
}

#seasonToggle {
  background: #222;
  color: #eee;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #555;
  font-size: 1em;
}

/* 🧭 Portal Grid */
#portal {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* 🧱 Section Card – Transparent Glow */
.section {
  position: relative;
  background: rgba(20, 20, 20, 0.6);
  border: 2px solid #aaa;
  border-radius: 12px;
  height: 180px;
  padding: 20px;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(2px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeIn 0.6s ease-in;
  cursor: pointer;
  overflow: hidden;
}

.section:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* 🧾 Title Text */
.section h2 {
  margin: 0;
  font-size: 1.2em;
  color: #fff;
  margin-left: 48px;
  margin-top: 4px;
}

/* 🔢 Top Right Count */
.overlay-top-right {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 0.85em;
  color: #aaa;
}

/* 🏷️ Bottom Left Tag */
.overlay-bottom-left {
  position: absolute;
  bottom: 10px;
  left: 12px;
  background: #444;
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75em;
  font-weight: bold;
  animation: pulse 2s infinite;
  transition: background 0.3s ease;
}
.section:hover .overlay-bottom-left {
  background: #666;
}

/* 📱 Responsive Scaling */
@media (max-width: 600px) {
  .section {
    height: auto;
    padding: 16px;
  }

  .section h2 {
    font-size: 1em;
    margin-left: 40px;
  }

  .sigil-icon {
    width: 20px;
    height: 20px;
    top: 10px;
    left: 10px;
  }

  .overlay-bottom-left {
    font-size: 0.7em;
    padding: 4px 10px;
  }

  .hover-text {
    font-size: 0.9em;
  }
}

/* 🧙 Floating Sigil Icon with Flicker */
.sigil-icon {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 28px;
  height: 28px;
  z-index: 2;
  animation: flicker 2.5s infinite ease-in-out;
}
.sigil-icon img {
  width: 100%;
  height: auto;
}

/* ✨ Glowing Hover Text */
.hover-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1em;
  font-family: 'Cinzel', serif;
  color: #ffeedd;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  text-shadow: 0 0 8px rgba(255, 220, 180, 0.6);
}
.section:hover .hover-text {
  opacity: 1;
}

/* 🌤️ Seasonal Modes */
.section.autumn {
  border-color: #ff8800;
  box-shadow: 0 0 12px rgba(255, 136, 0, 0.4);
}
.section.winter {
  border-color: #88ccff;
  box-shadow: 0 0 12px rgba(136, 204, 255, 0.4);
}
.section.haunt {
  border-color: #660066;
  box-shadow: 0 0 12px rgba(102, 0, 102, 0.4);
}

/* 🌀 Seasonal Background Overlay – Brightened */
#seasonal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-blend-mode: multiply;
  filter: brightness(1.2);
  opacity: 0.3;
  z-index: -1;
}

/* ✨ Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { transform: scale(1); background-color: #444; }
  50% { transform: scale(1.05); background-color: #666; }
  100% { transform: scale(1); background-color: #444; }
}

@keyframes flicker {
  0%   { opacity: 0.85; transform: scale(1); }
  25%  { opacity: 0.6; transform: scale(1.02); }
  50%  { opacity: 0.9; transform: scale(0.98); }
  75%  { opacity: 0.7; transform: scale(1.01); }
  100% { opacity: 0.85; transform: scale(1); }
}
/* 🪄 Magic Banner Container */
#magic-banner {
  margin: 0 auto 40px auto;
  text-align: center;
  padding: 20px;
  background: rgba(20, 20, 20, 0.5);
  border: 4px solid #aaa;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(3px);
  animation: shimmerGlow 6s infinite ease-in-out;
}

#magic-banner img {
  width: 25%;
  height: auto;
  opacity: 0.95;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.3));
  transition: transform 0.4s ease;
  display: block;
  margin: 0 auto;
}

#magic-banner img:hover {
  transform: scale(1.02);
}

/* ✨ Banner Text Overlay */
.banner-text {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Cinzel', serif;
  font-size: 1.4em;
  color: #ffeedd;
  text-shadow: 0 0 8px rgba(255, 220, 180, 0.6);
  pointer-events: none;
  z-index: 1;
}

/* 🌟 Glow Animation */
@keyframes shimmerGlow {
  0%   { box-shadow: 0 0 20px rgba(255, 255, 255, 0.2); }
  50%  { box-shadow: 0 0 30px rgba(255, 255, 255, 0.4); }
  100% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.2); }
}

/* 📜 Lore Blurb */
#lore-blurb {
  font-family: 'Cinzel', serif;
  font-size: 1.4em;
  color: #ffeedd;
  text-align: center;
  margin-top: 20px;
  text-shadow: 0 0 6px rgba(255, 220, 180, 0.4);
}

/* 🧭 Sigil Link Container */
#sigil-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 30px;
}

/* 🧙 Glowing Rune Links */
.sigil-link {
  font-family: 'Cinzel', serif;
  font-size: 1.2em;
  color: #ffeedd;

 display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;


    
  background: radial-gradient(circle at center, rgba(60, 60, 60, 0.8), rgba(20, 20, 20, 0.6));
  padding: 12px 24px;
  border: 2px solid #aaa;
  border-radius: 16px;
  text-decoration: none;
  text-shadow: 0 0 6px rgba(255, 220, 180, 0.5);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}






/* ✨ Hover Animation: Pulse + Glow */
.sigil-link::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 220, 180, 0.2), transparent 70%);
  transform: scale(0);
  transition: transform 0.5s ease;
  z-index: 0;
}

.sigil-link:hover::before {
  transform: scale(1);
}

.sigil-link:hover {
  background: rgba(80, 80, 80, 0.9);
  box-shadow: 0 0 24px rgba(255, 220, 180, 0.4);
  transform: scale(1.05);
  z-index: 1;
}
