/* =====================================================
   FORESTWITTYGIRL — Shared Styles
   ===================================================== */

:root {
  --deep-forest: #0a1a0f;
  --dark-moss: #1a2e1a;
  --moss: #2d4a2d;
  --golden-light: #c4a265;
  --warm-amber: #d4a843;
  --pale-glow: #e8d5a3;
  --soft-cream: #f0e6cc;
  --bark: #3d2b1f;
  --bark-light: #5a3d2b;
  --text-primary: #e0dcd0;
  --text-secondary: #a09880;
  --glow-green: rgba(120, 180, 100, 0.15);
  --glow-gold: rgba(196, 162, 101, 0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Crimson Text', Georgia, serif;
  background: var(--deep-forest);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ========== TEXTURE & ATMOSPHERE ========== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(45, 74, 45, 0.3), transparent),
    radial-gradient(ellipse 60% 60% at 80% 70%, rgba(61, 43, 31, 0.25), transparent),
    radial-gradient(ellipse 50% 40% at 50% 50%, var(--glow-green), transparent);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 0;
}

/* ========== FIREFLIES ========== */
.fireflies {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.firefly {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--golden-light);
  box-shadow: 0 0 6px 2px rgba(196, 162, 101, 0.35), 0 0 18px 5px rgba(196, 162, 101, 0.12);
}

@keyframes ff1 { 0%{transform:translate(0,0)}25%{transform:translate(50px,-70px)}50%{transform:translate(-30px,-140px)}75%{transform:translate(70px,-90px)}100%{transform:translate(0,0)} }
@keyframes ff2 { 0%{transform:translate(0,0)}25%{transform:translate(-60px,-50px)}50%{transform:translate(40px,-120px)}75%{transform:translate(-50px,-80px)}100%{transform:translate(0,0)} }
@keyframes ff3 { 0%{transform:translate(0,0)}25%{transform:translate(40px,-90px)}50%{transform:translate(-60px,-60px)}75%{transform:translate(30px,-130px)}100%{transform:translate(0,0)} }
@keyframes ffGlow { 0%,100%{opacity:0}20%{opacity:0.7}50%{opacity:1}80%{opacity:0.5} }

/* ========== NAVIGATION ========== */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1.3rem 2rem;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  background: linear-gradient(to bottom, rgba(10, 26, 15, 0.95) 0%, rgba(10, 26, 15, 0.6) 70%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

nav a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s, text-shadow 0.3s;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--golden-light);
  transition: width 0.35s ease, left 0.35s ease;
}

nav a:hover { color: var(--golden-light); text-shadow: 0 0 20px rgba(196, 162, 101, 0.3); }
nav a:hover::after { width: 100%; left: 0; }
nav a.active { color: var(--golden-light); }
nav a.active::after { width: 100%; left: 0; }

/* ========== MOBILE NAV ========== */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--golden-light);
  margin: 5px 0;
  transition: all 0.3s;
}

/* ========== SECTIONS ========== */
section {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.section-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  color: var(--pale-glow);
  text-align: center;
  margin-bottom: 0.4em;
  text-shadow: 0 0 30px rgba(196, 162, 101, 0.12);
}

.section-rule {
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--golden-light), transparent);
  margin: 0 auto 3rem;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
  padding: 2rem;
}

.hero-sigil {
  width: 130px;
  height: 130px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: sigilAppear 2s ease-out 0.3s forwards;
}

@keyframes sigilAppear {
  0% { opacity: 0; transform: scale(0.4) rotate(-120deg); filter: blur(4px); }
  100% { opacity: 0.55; transform: scale(1) rotate(0deg); filter: blur(0); }
}

@keyframes sigilSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.hero-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(2rem, 6vw, 4.5rem);
  white-space: nowrap;
  font-weight: 700;
  color: var(--soft-cream);
  line-height: 1.15;
  text-shadow: 0 0 60px rgba(196, 162, 101, 0.15), 0 2px 4px rgba(0,0,0,0.6);
  animation: heroReveal 2s ease-out 0.6s forwards;
  opacity: 0;
}

.hero-subtitle {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(0.85rem, 2vw, 1.15rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.25em;
  color: var(--golden-light);
  margin-top: 1em;
  opacity: 0;
  animation: heroReveal 1.5s ease-out 1.4s forwards;
}

@keyframes heroReveal {
  0% { opacity: 0; transform: translateY(25px); filter: blur(6px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  opacity: 0;
  animation: fadeIn 1s ease-out 3s forwards, bob 2.5s ease-in-out 4s infinite;
  color: var(--text-secondary);
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.82rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

@keyframes fadeIn { to { opacity: 0.4; } }
@keyframes bob { 0%,100%{transform:translateY(0)}50%{transform:translateY(8px)} }

/* ========== ABOUT ========== */
.about-content {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.85;
  color: var(--text-primary);
}

.about-content p + p { margin-top: 1.4em; }

/* ========== FORM STYLES ========== */
.question-form {
  background: linear-gradient(145deg, rgba(26, 46, 26, 0.5), rgba(61, 43, 31, 0.25));
  border: 1px solid rgba(196, 162, 101, 0.1);
  border-radius: 14px;
  padding: 2.5rem;
  margin-bottom: 5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 50px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.02);
  position: relative;
  overflow: hidden;
}

.question-form::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 20%, rgba(196, 162, 101, 0.03), transparent 50%);
  pointer-events: none;
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
  position: relative;
}

.form-field {
  flex: 1;
  min-width: 200px;
}

.form-field label {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(10, 26, 15, 0.5);
  border: 1px solid rgba(196, 162, 101, 0.12);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: 'Crimson Text', serif;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(160, 152, 128, 0.4);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(196, 162, 101, 0.35);
  box-shadow: 0 0 25px rgba(196, 162, 101, 0.06);
}

.form-field textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.6;
}

.form-field select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a09880' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.form-field select option {
  background: var(--deep-forest);
  color: var(--text-primary);
}

.anon-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
  cursor: pointer;
  font-family: 'Cormorant Garamond', serif;
  color: var(--text-secondary);
  font-size: 0.92rem;
  position: relative;
  user-select: none;
}

.anon-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(196, 162, 101, 0.25);
  border-radius: 3px;
  background: rgba(10, 26, 15, 0.5);
  cursor: pointer;
  position: relative;
  transition: all 0.25s;
  flex-shrink: 0;
}

.anon-check input[type="checkbox"]:checked {
  background: rgba(196, 162, 101, 0.15);
  border-color: var(--golden-light);
}

.anon-check input[type="checkbox"]:checked::after {
  content: '\2713';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: var(--golden-light);
  font-size: 11px;
}

.submit-btn {
  display: block;
  margin: 0.5rem auto 0;
  padding: 0.95rem 3.5rem;
  background: linear-gradient(135deg, rgba(196, 162, 101, 0.12), rgba(196, 162, 101, 0.06));
  border: 1px solid rgba(196, 162, 101, 0.25);
  border-radius: 6px;
  color: var(--golden-light);
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s;
  position: relative;
}

.submit-btn:hover {
  background: linear-gradient(135deg, rgba(196, 162, 101, 0.22), rgba(196, 162, 101, 0.12));
  box-shadow: 0 0 35px rgba(196, 162, 101, 0.12);
  transform: translateY(-2px);
}

.submit-btn:active { transform: translateY(0); }

.success-msg {
  text-align: center;
  padding: 1.5rem;
  color: var(--golden-light);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.08rem;
  font-style: italic;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.6s, max-height 0.6s, padding 0.6s;
}

.success-msg.show {
  opacity: 1;
  max-height: 80px;
  padding: 1.5rem;
}

/* ========== Q&A CARDS ========== */
.answered-header {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 2.5rem;
  opacity: 0.6;
}

.qa-card {
  background: linear-gradient(160deg, rgba(26, 46, 26, 0.35), rgba(61, 43, 31, 0.15));
  border: 1px solid rgba(196, 162, 101, 0.06);
  border-radius: 12px;
  padding: 2rem 2.2rem;
  margin-bottom: 1.8rem;
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.3s;
}

.qa-card:hover {
  border-color: rgba(196, 162, 101, 0.15);
  box-shadow: 0 6px 35px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}

.qa-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.qa-category {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--golden-light);
  background: rgba(196, 162, 101, 0.07);
  border: 1px solid rgba(196, 162, 101, 0.12);
  border-radius: 20px;
  padding: 0.2rem 0.75rem;
}

.qa-asker {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0.6;
}

.qa-question {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--pale-glow);
  margin-bottom: 1.3rem;
  line-height: 1.65;
}

.qa-answer {
  font-family: 'Crimson Text', serif;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-primary);
  padding-left: 1.3rem;
  border-left: 2px solid rgba(196, 162, 101, 0.15);
}

.qa-answer .forest-label {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--golden-light);
  margin-bottom: 0.5rem;
  opacity: 0.6;
}

.qa-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.4;
  margin-top: 1.1rem;
  text-align: right;
}

.no-questions {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1.05rem;
  padding: 2rem;
  opacity: 0.5;
}

/* ========== CONCLUSIONS ========== */
.conclusions-section { max-width: 900px; }

.conclusions-intro {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.12rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-style: italic;
  line-height: 1.7;
}

.tag-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 3rem;
}

.tag-btn {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: rgba(10, 26, 15, 0.4);
  border: 1px solid rgba(196, 162, 101, 0.1);
  border-radius: 20px;
  padding: 0.35rem 1rem;
  cursor: pointer;
  transition: all 0.35s;
  user-select: none;
}

.tag-btn:hover {
  border-color: rgba(196, 162, 101, 0.25);
  color: var(--golden-light);
}

.tag-btn.active {
  background: rgba(196, 162, 101, 0.1);
  border-color: rgba(196, 162, 101, 0.3);
  color: var(--golden-light);
  box-shadow: 0 0 15px rgba(196, 162, 101, 0.06);
}

.conclusion-card {
  background: linear-gradient(160deg, rgba(26, 46, 26, 0.35), rgba(61, 43, 31, 0.15));
  border: 1px solid rgba(196, 162, 101, 0.06);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.3s;
  overflow: hidden;
}

.conclusion-card:hover {
  border-color: rgba(196, 162, 101, 0.15);
  box-shadow: 0 6px 35px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}

.conclusion-card.hidden { display: none; }

.conclusion-header {
  padding: 1.8rem 2.2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.conclusion-header-left { flex: 1; }

.conclusion-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.7rem;
}

.conclusion-tag {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--golden-light);
  background: rgba(196, 162, 101, 0.07);
  border: 1px solid rgba(196, 162, 101, 0.12);
  border-radius: 20px;
  padding: 0.15rem 0.6rem;
}

.conclusion-question {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--pale-glow);
  line-height: 1.6;
}

.conclusion-toggle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--golden-light);
  opacity: 0.4;
  transition: transform 0.4s ease, opacity 0.3s;
  flex-shrink: 0;
  margin-top: 0.3rem;
}

.conclusion-card.open .conclusion-toggle {
  transform: rotate(45deg);
  opacity: 0.7;
}

.conclusion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease, padding 0.4s ease;
  padding: 0 2.2rem;
}

.conclusion-card.open .conclusion-body {
  max-height: 2000px;
  padding: 0 2.2rem 2rem;
}

.conclusion-divider {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 162, 101, 0.3), transparent);
  margin-bottom: 1.5rem;
}

.thought-section { margin-bottom: 1.8rem; }

.thought-label {
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.85rem;
  color: var(--pale-glow);
  margin-bottom: 0.6rem;
  opacity: 0.85;
}

.thought-text {
  font-family: 'Crimson Text', serif;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-primary);
  padding-left: 1.3rem;
  border-left: 2px solid rgba(196, 162, 101, 0.1);
}

.thought-text p + p { margin-top: 1em; }

.thought-wip {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--text-secondary);
  opacity: 0.5;
  font-size: 1rem;
  padding-left: 1.3rem;
  border-left: 2px solid rgba(196, 162, 101, 0.06);
}

.conclusion-final {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(196, 162, 101, 0.08);
}

.conclusion-final-label {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--golden-light);
  margin-bottom: 0.6rem;
  opacity: 0.6;
}

.conclusion-final-text {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.1rem;
  color: var(--soft-cream);
  line-height: 1.6;
  text-shadow: 0 0 30px rgba(196, 162, 101, 0.08);
}

.conclusion-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.4;
  margin-top: 1.2rem;
  text-align: right;
}

/* ========== FOOTER ========== */
footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 3rem 2rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.82rem;
  color: var(--text-secondary);
  opacity: 0.3;
  letter-spacing: 0.12em;
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover { color: var(--golden-light); }

/* ========== SCROLL ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
  nav { gap: 0.9rem; padding: 1rem 0.6rem; }
  nav a { font-size: 0.7rem; letter-spacing: 0.1em; }
  section { padding: 4rem 1.4rem; }
  .question-form { padding: 1.6rem; }
  .form-row { flex-direction: column; gap: 0; }
  .qa-card { padding: 1.5rem; }
  .qa-question { font-size: 0.95rem; }
  .conclusion-header { padding: 1.4rem 1.5rem; }
  .conclusion-card.open .conclusion-body { padding: 0 1.5rem 1.5rem; }
  .conclusion-question { font-size: 0.95rem; }
}
