/* Importing google font */
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&display=swap');

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY */
body {
  background: #000;
  color: #d6f5e3;
  font-family: "Josefin Sans", sans-serif;
}

h1, h2, h3, h4, h5 {
    font-family: "Cinzel Decorative", sans-serif;    
    margin-bottom: 7px;
    margin-top: 7px;
}

/* TOP BAR */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #000;
  border-bottom: 1px solid #1f3f2f;
}

.profile {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.profile img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.greeting {
  font-size: 0.9rem;
  letter-spacing: 1px;
  color: #8ee6b7;
  font-family: "Cinzel Decorative", sans-serif; 
}

.navbar {
  margin-top: 0.3rem;
}

.navbar a {
  margin-right: 1rem;
  text-decoration: none;
  color: #99B686;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.navbar a:hover {
  color: #e8cab2;
}

.site-title {
  font-size: 1.4rem;
  letter-spacing: 2px;
  color: #7df9c6;
  text-align: right;
}

/* BANNER */
.banner img {
  width: 100%;
  height: 200px; /* Slim banner */
  object-fit: cover;
  display: block;
}

/* 3 COLUMN LAYOUT */
.layout {
  display: grid;
  grid-template-columns: 250px 1fr 250px;
  gap: 2rem;
  padding: 2rem;
}

.sidebar-left,
.sidebar-right {
  font-size: 0.9rem;
  color: #a6d8c4;
  text-align: center;
}

.content {
  background: #000;
  padding: 2rem;
  border-left: 1px solid #1f3f2f;
  border-right: 1px solid #1f3f2f;
}

.content h2 {
  margin-bottom: 1rem;
  color: #9ef0cd;
}

.content p {
  line-height: 1.6;
}

.witch-card {
  margin-top: 2rem;
  padding: 1rem;
  border-top: 1px solid #1f3f2f;
  border-bottom: 1px solid #1f3f2f;
}

.witch-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
}

.label {
  color: #7df9c6;
  letter-spacing: 1px;
  font-weight: 600;
}

.value {
  color: #a6d8c4;
}

a {
    color: #7df9c6;
}

a:hover {
    color: #e8cab2;
}

.sidebar-image {
  margin-bottom: 1.5rem;
  text-align: center;
}

.sidebar-image img {
  width: 100%;
  max-width: 150px;   
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}

/* Active nav glow */
.navbar a.nav-toggle.active {
  color: #e8cab2;
  border-bottom: 1px solid #c8ac9c;
}

/* Smooth fade section transition */
.witch-section {
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  display: none;
  background: #000;
  padding: 1.5rem;
  border-radius: 12px;
}

.witch-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

#tumblr-posts {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.tumblr-post {
  border-bottom: 1px solid #222;
  padding-bottom: 1.5rem;
}

.tumblr-post h3 {
  font-size: 1rem;
  margin: 0 0 0.4rem 0;
}

.tumblr-post h1 {
  font-size: 1.2rem;
  margin: 0 0 0.4rem 0;
}

.tumblr-post h3 a {
  color: #c8ac9c;
  text-decoration: none;
  transition: 0.3s;
}

.tumblr-post h3 a:hover {
  color: #e8cab2;
}

.tumblr-meta {
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 0.8rem;
}

.tumblr-excerpt {
  color: #aaa;
  line-height: 1.5;
  font-size: 0.8rem;
}

.tumblr-excerpt img {
  max-width: 70%;
  height: auto;
  display: block;
  margin: 1rem auto;
  border-radius: 8px;
}

.title-img {
  margin-bottom: 1.5rem;
  text-align: center;
}

.title-img img{
  width: 100%;
  max-width: 130px;   
  display: block;
  margin: 0 auto;
}

.read-more-btn {
  background: transparent;
  border: 1px solid #333;
  color: #c8ac9c;
  padding: 0.4rem 0.8rem;
  margin-top: 0.8rem;
  cursor: pointer;
  font-size: 0.8rem;
  border-radius: 6px;
  transition: 0.3s;
}

.read-more-btn:hover {
  background: #111;
  color: #e8cab2;
}

.popup-overlay {
  position: fixed;
  inset: 0; /* shorthand for top:0; left:0; right:0; bottom:0; */
  background: rgba(10, 15, 12, 0.85); /* forest-tinted darkness */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Popup box */
.popup-box {
  background: #0f1412; /* deep forest-dark */
  color: #99B686; /* sage green */
  padding: 2rem;
  max-width: 420px;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(125, 249, 197, 0.34);
  border: 1px solid #99B686;
  font-family: inherit;
}


/* Buttons */
.popup-buttons {
  margin-top: 1.5rem;
}

.popup-buttons button {
  margin: 0.3rem;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: 0.2s ease;
}

#enter-site {
  background: #99B686;
  color: #0f1412;
  border: none;
}

#enter-site:hover {
  background: #7df9c6;
  color: #0f1412;
}

#leave-site {
  background: transparent;
  color: #e8cab2;
  border: 1px solid #e8cab2;
}

#leave-site:hover {
  background: #e8cab2;
  color: #0f1412;
}


/* FAQ SECTION */
.faq-section {
  margin: 3rem 0;
}

/* Remove default list styling */
.faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Each FAQ item */
.faq-list li {
  border-bottom: 1px solid rgba(153, 182, 134, 0.3);
  padding: 0.8rem 0;
}

/* Question button */
.faqBtn {
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  color: #99B686;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  padding: 0.5rem 0;
  transition: 0.2s ease;
}

/* Hover effect */
.faqBtn:hover {
  color: #7df9c6;
}

/* Optional subtle indicator arrow */
.faqBtn::after {
  content: " +";
  float: right;
  color: #e8cab2;
}

/* Answer text */
.faqContent {
  display: none;
  margin-top: 0.5rem;
  color: #e8cab2;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar-left,
  .sidebar-right {
    order: 2;
  }

  .content {
    order: 1;
  }

  .site-title {
    font-size: 1.1rem;
  }
}



/* ============================= */
/* SIGIL MAKER – Witch Aesthetic */
/* ============================= */

.sigil-maker {
  margin-top: 2rem;
  padding: 2rem;
  border-top: 1px solid #1f3f2f;
  border-bottom: 1px solid #1f3f2f;
  text-align: center;
}

.sigil-maker input {
  padding: 0.6rem 1rem;
  width: 320px;
  background: #0f1412;
  border: 1px solid #1f3f2f;
  color: #d6f5e3;
  font-family: "Josefin Sans", sans-serif;
  letter-spacing: 1px;
}

.sigil-maker input:focus {
  outline: none;
  border-color: #7df9c6;
  box-shadow: 0 0 8px rgba(125, 249, 197, 0.3);
}

.sigil-maker button {
  padding: 0.6rem 1rem;
  margin: 0.5rem;
  background: transparent;
  border: 1px solid #99B686;
  color: #99B686;
  font-family: "Cinzel Decorative", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: 0.3s ease;
}

.sigil-maker button:hover {
  background: #99B686;
  color: #0f1412;
}

#ritualLog {
  margin-top: 1rem;
  font-style: italic;
  font-size: 0.85rem;
  color: #8ee6b7;
  letter-spacing: 1px;
  min-height: 24px;
  opacity: 0.8;
}

#sigilCanvas {
  margin-top: 2rem;
  background: #050807;
  border: 1px solid #1f3f2f;
  box-shadow: 0 0 15px rgba(125, 249, 197, 0.15);
}

.ghost-btn{
  margin-top: 0.8rem;
  background: transparent;
  border: 1px solid #5a8f75;
  color: #a6d8c4;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.ghost-btn:hover{
  background: #244836;
}

.instructions-panel{
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease, opacity 0.4s ease;
  opacity: 0;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #bde8d5;
  text-align: center;
}

.instructions-panel.open{
  max-height: 500px;
  opacity: 1;
}

.instructions-panel h3{
  margin-bottom: 0.5rem;
  color: #8ee6b7;
}

.instructions-panel ol{
  list-style-position: inside;
  padding-left: 0;
  display: inline-block;
  text-align: center;
}

.instructions-panel ol li::marker{
  color: #8ee6b7;
  font-weight: 600;
  font-size: 0.90rem;
}

.whisper{
  margin-top: 0.8rem;
  font-style: italic;
  opacity: 0.8;
}

.whr {
  border: none;
  width: 80%;
  margin: 1rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.whr::before,
.whr::after {
  content: "";
  flex: 0 0 150px; /* fixed width for lines */
  height: 1px;
  background: linear-gradient(to right, transparent, #8ee6b7);
}

.whr::after {
  background: linear-gradient(to left, transparent, #8ee6b7);
}

.whr span {
  color: #8ee6b7;
  font-size: 0.9rem;
}
