/* ============================================================================
   Jeff Bezos' Wife Fan Page - Stylesheet
   Est. 1999 - Space Jam Aesthetic
   ============================================================================ */

/* Web Font Import */
@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&display=swap');

/* ============================================================================
   GLOBAL RESET & BASE STYLES
   ============================================================================ */

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

body {
  font-family: 'Comic Neue', 'Comic Sans MS', cursive;
  background: #000 url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="10" y="35" font-size="30">🍆</text><text x="55" y="35" font-size="30">🦾</text><text x="55" y="80" font-size="30">🍆</text><text x="10" y="80" font-size="30">🦾</text></svg>') repeat;
  background-size: 100px;
  animation: eggplants 20s linear infinite;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */

@keyframes eggplants {
  from { background-position: 0 0; }
  to { background-position: 100px 100px; }
}

@keyframes rainbow {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 0% 100%; }
}

@keyframes wobble {
  0%, 100% { transform: rotate(-1deg); }
  50% { transform: rotate(1deg); }
}

@keyframes scroll {
  from { transform: translateX(100vw); }
  to { transform: translateX(-100%); }
}

@keyframes glow {
  from { box-shadow: 0 0 20px #ff00ff, 0 0 40px #00ffff; }
  to { box-shadow: 0 0 40px #00ffff, 0 0 60px #ff00ff, 0 0 80px #ffff00; }
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ============================================================================
   HEADER
   ============================================================================ */

header {
  background: linear-gradient(180deg, #ff00ff, #00ffff, #ffff00, #ff00ff);
  background-size: 100% 400%;
  animation: rainbow 3s ease infinite;
  padding: 1rem;
  text-align: center;
  border-bottom: 5px dashed #fff;
}

h1 {
  font-size: clamp(1.8rem, 8vw, 4rem);
  color: #000;
  text-shadow: 3px 3px 0 #fff, -1px -1px 0 #ff0;
  animation: wobble 0.5s ease-in-out infinite;
}

.subtitle {
  font-size: clamp(0.9rem, 3vw, 1.2rem);
  color: #000;
  background: #ff0;
  display: inline-block;
  padding: 0.25rem 0.5rem;
  margin-top: 0.5rem;
}

/* ============================================================================
   MARQUEE
   ============================================================================ */

.marquee {
  background: #ff0;
  color: #f00;
  padding: 0.5rem;
  font-weight: bold;
  font-size: clamp(0.9rem, 3vw, 1.1rem);
  overflow: hidden;
  white-space: nowrap;
}

.marquee span {
  display: inline-block;
  animation: scroll 15s linear infinite;
}

/* ============================================================================
   MAIN LAYOUT
   ============================================================================ */

main {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */

.hero {
  text-align: center;
  margin: 2rem 0;
  padding: 1rem;
  border: 5px ridge #ff00ff;
  background: rgba(0, 0, 0, 0.7);
}

.hero img {
  max-width: 100%;
  width: 300px;
  border: 4px outset #00ffff;
  box-shadow: 0 0 20px #ff00ff, 0 0 40px #00ffff;
  animation: glow 2s ease-in-out infinite alternate;
}

.hero-text {
  margin-top: 1rem;
  font-size: clamp(1.2rem, 5vw, 2rem);
  color: #0f0;
  text-shadow: 2px 2px #f0f;
}

.hero-text span {
  display: block;
  font-size: 0.7em;
  color: #ff0;
}

/* ============================================================================
   CONTENT SECTIONS
   ============================================================================ */

section {
  margin: 2rem 0;
  padding: 1rem;
  border: 3px double #0ff;
  background: rgba(0, 0, 50, 0.8);
}

h2 {
  color: #ff0;
  text-align: center;
  font-size: clamp(1.3rem, 5vw, 2rem);
  margin-bottom: 1rem;
  text-shadow: 2px 2px #f00;
}

h2::before,
h2::after {
  content: " ★ ";
  color: #f0f;
}

/* ============================================================================
   BIO SECTION
   ============================================================================ */

.bio p {
  color: #0ff;
  margin-bottom: 1rem;
  font-size: clamp(1rem, 3vw, 1.2rem);
  line-height: 1.6;
  text-align: center;
}

.bio .important {
  color: #ff0;
  font-size: 1.3em;
  animation: blink 1s step-end infinite;
}

.bio .working-theory {
  background: linear-gradient(90deg, #300, #200);
  border: 2px solid #f00;
  border-left: 4px solid #ff0;
  padding: 1rem;
  margin-top: 1.5rem;
  text-align: left;
  color: #f88;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.bio .working-theory strong {
  color: #ff0;
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.1em;
}

.witnesses {
  margin-top: 1.5rem;
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(180deg, #100, #000, #100);
  border: 3px solid #600;
  box-shadow: inset 0 0 50px rgba(255, 0, 0, 0.3);
}

.witnesses img {
  max-width: 280px;
  width: 100%;
  border: 4px solid #f00;
  box-shadow: 0 0 30px #f00, 0 0 60px #900;
  margin-bottom: 1rem;
}

.witnesses-header {
  color: #f00;
  font-weight: bold;
  font-size: clamp(1.5rem, 5vw, 2rem);
  text-shadow: 0 0 10px #f00, 2px 2px #000;
  margin-bottom: 1rem;
  animation: blink 2s step-end infinite;
}

.witnesses-text {
  color: #888;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.witnesses-warning {
  color: #ff0;
  font-weight: bold;
  font-size: clamp(1.1rem, 3.5vw, 1.3rem);
  margin: 1rem 0;
  padding: 0.5rem;
  background: rgba(255, 0, 0, 0.2);
  border-left: 4px solid #f00;
  border-right: 4px solid #f00;
  text-transform: uppercase;
}

/* ============================================================================
   POLYJUICE EVIDENCE
   ============================================================================ */

.polyjuice-evidence {
  margin-top: 2rem;
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(180deg, #030, #000, #003);
  border: 3px solid #0f0;
  box-shadow: inset 0 0 50px rgba(0, 255, 0, 0.2), 0 0 30px rgba(0, 255, 0, 0.3);
}

.polyjuice-evidence .evidence-label {
  color: #0f0;
  font-weight: bold;
  font-size: clamp(1rem, 3vw, 1.2rem);
  margin-bottom: 1rem;
  animation: blink 1.5s step-end infinite;
}

.polyjuice-evidence img {
  max-width: 300px;
  width: 100%;
  border: 4px solid #0f0;
  box-shadow: 0 0 20px #0f0, 0 0 40px #080;
  margin-bottom: 1rem;
}

.polyjuice-header {
  color: #0f0;
  font-weight: bold;
  font-size: clamp(1.3rem, 4vw, 1.7rem);
  text-shadow: 0 0 10px #0f0, 2px 2px #000;
  margin-bottom: 1rem;
}

.polyjuice-text {
  color: #8f8;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.polyjuice-warning {
  color: #ff0;
  font-weight: bold;
  font-size: clamp(1rem, 3vw, 1.1rem);
  margin: 1rem 0;
  padding: 0.75rem;
  background: linear-gradient(90deg, rgba(0, 100, 0, 0.3), rgba(0, 50, 0, 0.5), rgba(0, 100, 0, 0.3));
  border: 2px dashed #0f0;
}

/* ============================================================================
   GALLERY SECTION
   ============================================================================ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.gallery-item {
  text-align: center;
  padding: 0.5rem;
  border: 3px ridge #f0f;
  background: #000;
}

.gallery-item img {
  max-width: 100%;
  border: 2px solid #0ff;
}

.gallery-item p,
.gallery-item figcaption {
  color: #0f0;
  margin-top: 0.5rem;
  font-size: clamp(0.8rem, 2.5vw, 1rem);
}

/* ============================================================================
   FACTS SECTION
   ============================================================================ */

.facts-list {
  list-style: none;
}

.facts-list li {
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, #300030, #000030);
  border-left: 4px solid #f0f;
  color: #0ff;
  font-size: clamp(0.9rem, 3vw, 1.1rem);
}

.facts-list li::before {
  content: "👉 ";
}

.facts-list strong {
  color: #ff0;
}

/* ============================================================================
   GUESTBOOK SECTION
   ============================================================================ */

.guestbook {
  text-align: center;
}

.guestbook-entries {
  text-align: left;
  background: #000;
  border: 2px inset #0ff;
  padding: 1rem;
  margin-top: 1rem;
  max-height: 350px;
  overflow-y: auto;
}

.entry {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed #333;
}

.entry-name {
  color: #f0f;
  font-weight: bold;
}

.entry-date {
  color: #666;
  font-size: 0.8em;
}

.entry-msg {
  color: #0f0;
  margin-top: 0.25rem;
}

/* ============================================================================
   GUESTBOOK RULES
   ============================================================================ */

.guestbook-rules {
  background: #000;
  border: 2px solid #0f0;
  margin-bottom: 1rem;
  overflow-x: auto;
}

.guestbook-rules pre {
  color: #0f0;
  font-family: 'Courier New', monospace;
  font-size: clamp(0.6rem, 2vw, 0.85rem);
  margin: 0;
  padding: 0.5rem;
  white-space: pre;
  text-align: center;
}

/* ============================================================================
   AWARDS SECTION
   ============================================================================ */

.awards {
  text-align: center;
  padding: 1rem;
  border: 3px ridge #ff0;
  background: rgba(0, 0, 50, 0.8);
  margin: 2rem 0;
}

.awards h2 {
  margin-bottom: 1rem;
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.award {
  text-align: center;
}

.award-badge {
  display: inline-block;
  padding: 0.75rem;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  font-size: clamp(0.7rem, 2.5vw, 0.9rem);
  line-height: 1.3;
  border: 3px outset;
  min-width: 100px;
}

.award-badge.banned {
  background: linear-gradient(180deg, #800, #400);
  color: #ff0;
  border-color: #f00;
  text-decoration: line-through;
  text-decoration-color: #ff0;
}

.award-badge.y2k {
  background: linear-gradient(180deg, #080, #040);
  color: #0f0;
  border-color: #0f0;
}

.award-badge.truth {
  background: linear-gradient(180deg, #008, #004);
  color: #0ff;
  border-color: #00f;
}

.award-badge.netscape {
  background: linear-gradient(180deg, #000080, #000040);
  color: #fff;
  border-color: #0080ff;
}

.award p {
  color: #888;
  font-size: clamp(0.7rem, 2vw, 0.8rem);
  margin-top: 0.5rem;
  font-style: italic;
}

.awards-note {
  color: #f0f;
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* ============================================================================
   VISITOR COUNTER
   ============================================================================ */

.counter {
  text-align: center;
  padding: 1rem;
  background: #000;
  border: 3px ridge #ff0;
  margin: 2rem 0;
}

.counter-img {
  font-family: 'Courier New', monospace;
  background: #300;
  color: #f00;
  padding: 0.5rem 1rem;
  font-size: clamp(1.5rem, 5vw, 2rem);
  display: inline-block;
  border: 2px inset #f00;
}

.counter p {
  color: #0f0;
  margin-top: 0.5rem;
}

/* ============================================================================
   WEBRING
   ============================================================================ */

.webring {
  text-align: center;
  padding: 1rem;
  border: 2px dashed #f0f;
  margin: 1rem 0;
}

.webring p {
  color: #ff0;
  margin-bottom: 0.5rem;
}

.webring a {
  color: #0ff;
  margin: 0 0.5rem;
}

/* ============================================================================
   FOOTER
   ============================================================================ */

footer {
  text-align: center;
  padding: 1rem;
  border-top: 3px double #f0f;
  background: rgba(0, 0, 0, 0.9);
}

footer p {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.construction {
  color: #ff0;
  animation: blink 1s step-end infinite;
}

.boulder-whisper {
  color: #444;
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

/* ============================================================================
   ABOUT THE AUTHOR
   ============================================================================ */

.about-author {
  text-align: center;
  padding: 1.5rem;
  margin: 2rem 0;
  border: 3px double #f0f;
  background: rgba(0, 0, 50, 0.8);
}

.about-author h2 {
  margin-bottom: 1rem;
}

.about-author img {
  border: 3px ridge #0ff;
  box-shadow: 0 0 15px #f0f;
  max-width: 200px;
}

.about-author .author-name {
  color: #0ff;
  font-size: clamp(1.5rem, 5vw, 2rem);
  margin-top: 1rem;
  text-shadow: 2px 2px #f0f;
}

/* ============================================================================
   LINKS
   ============================================================================ */

a {
  color: #0ff;
}

a:hover {
  color: #f0f;
  text-decoration: none;
}

/* ============================================================================
   EMAIL LINK (CTA)
   ============================================================================ */

.email-link {
  display: inline-block;
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  background: linear-gradient(180deg, #00f, #008);
  color: #fff;
  text-decoration: none;
  border: 2px outset #00f;
  font-size: 1.1rem;
}

.email-link:hover {
  background: linear-gradient(180deg, #f0f, #808);
  border-color: #f0f;
  color: #fff;
}

/* ============================================================================
   SECURITY CHECK MODAL
   ============================================================================ */

.security-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s;
}

.security-overlay.active {
  opacity: 1;
}

.security-modal {
  background: linear-gradient(180deg, #300, #000, #300);
  border: 5px solid #f00;
  box-shadow: 0 0 50px #f00, 0 0 100px #ff0, inset 0 0 30px rgba(255, 0, 0, 0.5);
  padding: 2rem;
  max-width: 90%;
  width: 400px;
  text-align: center;
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-10px); }
  80% { transform: translateX(10px); }
}

.security-warning {
  color: #ff0;
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  font-weight: bold;
  margin-bottom: 1rem;
  animation: blink 0.5s step-end infinite;
}

.security-question {
  color: #fff;
  font-size: clamp(1.1rem, 3.5vw, 1.4rem);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.security-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.security-btn {
  font-family: 'Comic Neue', 'Comic Sans MS', cursive;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 0.75rem 2rem;
  border: 3px outset;
  cursor: pointer;
  transition: transform 0.1s;
}

.security-btn:hover {
  transform: scale(1.1);
}

.security-btn:active {
  border-style: inset;
}

.security-yes {
  background: linear-gradient(180deg, #f00, #900);
  color: #fff;
  border-color: #f00;
}

.security-no {
  background: linear-gradient(180deg, #0f0, #090);
  color: #000;
  border-color: #0f0;
}

/* ============================================================================
   ACCESS GRANTED OVERLAY
   ============================================================================ */

.access-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 50, 0, 0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.access-text {
  color: #0f0;
  font-family: 'Courier New', monospace;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: bold;
  text-shadow: 0 0 20px #0f0, 0 0 40px #0f0;
  text-align: center;
  padding: 1rem;
}

/* ============================================================================
   ACCESSIBILITY - REDUCED MOTION SUPPORT
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
  }

  .marquee span {
    animation: none;
    transform: none;
  }

  .security-modal {
    animation: none;
  }
}
