/*
Theme Name: MeganMystic
Author: Megan Gray
Description: Custom theme for Megan's ghost-hunting adventures, DIY electronics builds, and modular paranormal gear.
Version: 1.0
Text Domain: meganmystic
*/

/* --------------------------------
   Base Typography & Layout
-------------------------------- */
body {
  background-color: #0a0a0a;
  color: #ffd47c;
  font-family: 'Cormorant Garamond', serif;
  background: url('assets/images/spooky_house_behind.png') center center no-repeat;
  background-size: cover;
  background-attachment: fixed;
  min-height: 100vh;
  margin: 0;
}


main {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.03); /* ghostly glow */
  /* outline: 1px dashed violet; */
}

.wp-site-blocks {
  flex: 1;
}

h1, h2, h3, h4, h5, h6,
blockquote, caption, figcaption, p {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
  text-wrap: pretty;
}

.more-link {
  display: block;
}

/* --------------------------------
   Links & Navigation
-------------------------------- */

a {
  text-decoration-thickness: 1px !important;
  text-underline-offset: 0.1em;
}

a:hover {
  color: #ffe066;
  text-shadow: 0 0 5px #ffd700;
}

/* Navigation Outline & Accessibility Tweaks */
:where(.wp-site-blocks *:focus) {
  outline-width: 2px;
  outline-style: solid;
}

.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
  margin-bottom: 3px;
}

.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
  outline-offset: 4px;
}

.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  outline-offset: 0;
}

/* --------------------------------
   Header
-------------------------------- */

header {
  background: radial-gradient(circle at center, #1c1c1c 0%, #000000 100%);
  background: linear-gradient(to bottom, rgba(10,10,20,0.85), rgba(5,5,10,0.95)),
  border-bottom: 2px solid #ffd700;
  box-shadow: inset 0 0 60px rgba(0,0,0,0.7);
  font-family: 'Cinzel Decorative', serif;
  position: relative;
}

/* --------------------------------
   Footer: Mystic Style
-------------------------------- */

.mystical-footer {
  background: linear-gradient(to bottom, rgba(10,10,20,0.85), rgba(5,5,10,0.95)),
              url('assets/images/spooky_house.png') center center / cover no-repeat;
  color: #dcdcdc;
  font-family: 'Cinzel Decorative', serif;
  position: relative;
  border-top: 1px solid rgba(150,150,200,0.3);
  box-shadow: inset 0 0 60px rgba(0,0,0,0.7);
}

.footer-logo a {
  color: #f1eaff;
  text-decoration: none;
  text-shadow: 0 0 12px #8a2be2;
  font-size: 2rem;
}

.footer-tagline {
  font-style: italic;
  color: #e6d7ff;
  margin-top: 0.5rem;
}

.footer-nav a {
  margin: 0 1rem;
  color: #FFD700;
  text-shadow: 0 0 8px #fff5c0;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.footer-nav a:hover {
  color: #fff;
  text-shadow: 0 0 10px #fff;
}

.footer-note {
  font-size: 0.85rem;
  color: #c0c0c0;
}

.footer-note a {
  color: #aaa;
  text-decoration: underline;
}

/* --------------------------------
   Fog Effects: Foreground Layers
-------------------------------- */

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)),
              url('assets/images/fog.png') repeat;
  background-size: 2000px 2000px;
  opacity: 0.15;
  pointer-events: none;
  animation: driftFog 60s linear infinite;
  z-index: 999;
}

body::after {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)),
              url('assets/images/fog2.png') repeat;
  background-size: 2000px 2000px;
  opacity: 0.07;
  pointer-events: none;
  animation: driftFogAlt 90s linear infinite;
  z-index: 998;
}

@keyframes driftFog {
  0%   { background-position: 0 0; }
  100% { background-position: 1000px 500px; }
}

@keyframes driftFogAlt {
  0%   { background-position: -500px 0; }
  100% { background-position: 1000px -500px; }
}

/* --------------------------------
   Scrollbars
-------------------------------- */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background-color: #ffd70044;
  border-radius: 4px;
}

/* --------------------------------
   Print Mode
-------------------------------- */

@media print {
  body {
    background: #fff;
    color: #000;
  }

  body::before {
    display: none;
  }
}

/* ---------------------------------------------
   🔮 Layout Essentials: Sticky Footer Setup
---------------------------------------------- */
html, body {
  height: 100%;
  margin: 0;
}

/* The outer container from WordPress Full Site Editing */
.wp-site-blocks {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* Main content should grow to fill the viewport space */
.wp-block-group[tagName="main"],
main {
  flex: 1;
}

/* ---------------------------------------------
   🕵️ Optional Debug Outlines (for development)
---------------------------------------------- */
/*.wp-site-blocks {
  outline: 2px dashed magenta;
}

main {
  outline: 2px dashed green;
}

footer {
  outline: 2px dashed orange;
}/*