/* ============================================
   Digital Dark Academia - Global Styles
   ============================================ */

:root {
  /* Color Palette - Digital Dark Academia */
  --color-inkwell: #0F172A;
  --color-aether-gold: #D4AF37;
  --color-ivory-page: #F8F8F2;
  --color-midnight: #1E293B;
  --color-shadow: rgba(15, 23, 42, 0.8);
  --color-gold-glow: rgba(212, 175, 55, 0.2);
  
  /* Typography */
  --font-poetic: 'Cormorant Garamond', serif;
  --font-geometric: 'Inter', sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 4rem;
  
  /* Borders & Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Shadows */
  --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-strong: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-gold: 0 0 20px rgba(212, 175, 55, 0.3);
  
  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;
}

/* ============================================
   Reset & Base Styles
   ============================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-geometric);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-ivory-page);
  background-color: var(--color-inkwell);
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-poetic);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--color-ivory-page);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-bottom: var(--space-md);
  color: rgba(248, 248, 242, 0.9);
}

a {
  color: var(--color-aether-gold);
  text-decoration: none;
  transition: color var(--transition-base), opacity var(--transition-base);
}

a:hover {
  color: var(--color-ivory-page);
  opacity: 0.9;
}

/* ============================================
   Header & Navigation
   ============================================ */

.site-header {
  position: relative;
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-name {
  font-family: var(--font-poetic);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 600;
  color: var(--color-aether-gold);
  text-transform: lowercase;
}

.nav-container {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.burger-toggle {
  margin-left: auto;
}

@media (min-width: 1024px) {
  .burger-toggle {
    display: none;
  }
}

.main-nav {
  display: flex;
  list-style: none;
  gap: 15px;
  align-items: center;
}

.main-nav a {
  font-size: 0.95rem;
  text-transform: lowercase;
  letter-spacing: 0.05em;
  position: relative;
  padding: var(--space-sm) 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-aether-gold);
  transition: width var(--transition-base);
}

.main-nav a:hover::after {
  width: 100%;
}

/* Burger Menu Button */
.burger-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--color-aether-gold);
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  order: 999;
  z-index: 100001;
}

.burger-toggle:hover {
  border-color: var(--color-aether-gold);
  background: rgba(212, 175, 55, 0.1);
}

.burger-toggle span {
  display: block;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--color-aether-gold);
  transition: all var(--transition-base);
}

.burger-toggle span:nth-child(1) {
  top: 14px;
}

.burger-toggle span:nth-child(2) {
  top: 21px;
}

.burger-toggle span:nth-child(3) {
  top: 28px;
}

.burger-toggle.active span:nth-child(1) {
  top: 21px;
  transform: translateX(-50%) rotate(45deg);
}

.burger-toggle.active span:nth-child(2) {
  opacity: 0;
}

.burger-toggle.active span:nth-child(3) {
  top: 21px;
  transform: translateX(-50%) rotate(-45deg);
}

/* Mobile Navigation */
@media (max-width: 1023px) {
  .burger-toggle {
    display: block;
    margin-left: auto;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: var(--space-xxl) var(--space-lg);
    gap: var(--space-md);
    transform: translateX(-100%);
    transition: transform var(--transition-base);
    z-index: 9999;
    overflow-y: auto;
    justify-content: flex-start;
    padding-top: calc(var(--header-height) + var(--space-xl));
  }
  
  .main-nav.active {
    transform: translateX(0);
  }
  
  .main-nav a {
    font-size: 1.1rem;
    width: 100%;
    text-align: center;
    padding: var(--space-md);
    border-bottom: 1px solid rgba(212, 175, 55, 0.05);
  }
  
  .nav-container {
    width: 100%;
    justify-content: space-between;
  }
}

/* ============================================
   Hero Banners (Full-Width)
   ============================================ */

.hero-banner {
  position: relative;
  width: 100vw;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.85) 0%,
    rgba(30, 41, 59, 0.75) 50%,
    rgba(15, 23, 42, 0.85) 100%
  );
  z-index: 2;
}

.hero-banner img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-content h1 {
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  max-width: 700px;
  margin: 0 auto;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ============================================
   Main Content
   ============================================ */

main {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xxl) var(--space-lg);
}

.content-section {
  margin-bottom: var(--space-xxl);
  padding: var(--space-xl) 0;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
  position: relative;
  padding-bottom: var(--space-md);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--color-aether-gold);
}

/* ============================================
   Grid Layouts
   ============================================ */

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.grid-item {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
}

.grid-item:hover {
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.grid-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  display: block;
}

.section-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: var(--radius-md);
  margin: var(--space-lg) auto;
  display: block;
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.grid-item h3 {
  margin-bottom: var(--space-sm);
  color: var(--color-aether-gold);
}

/* ============================================
   Sentiment Reader (Mood Filter)
   ============================================ */

.sentiment-reader {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin: var(--space-xxl) 0;
  backdrop-filter: blur(10px);
  text-align: center;
}

.aura-circle {
  width: 200px;
  height: 200px;
  margin: var(--space-lg) auto;
  border-radius: 50%;
  border: 2px solid var(--color-aether-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
  transition: all var(--transition-slow);
}

.mood-slider {
  width: 100%;
  max-width: 500px;
  margin: var(--space-lg) auto;
  appearance: none;
  height: 4px;
  background: rgba(212, 175, 55, 0.2);
  border-radius: 2px;
  outline: none;
}

.mood-slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--color-aether-gold);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.mood-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--color-aether-gold);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.mood-labels {
  display: flex;
  justify-content: space-between;
  max-width: 500px;
  margin: var(--space-md) auto;
  font-size: 0.9rem;
  color: rgba(248, 248, 242, 0.7);
}

/* ============================================
   Forms
   ============================================ */

.contact-form {
  max-width: 600px;
  margin: var(--space-xl) auto;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  backdrop-filter: blur(10px);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-sm);
  color: var(--color-aether-gold);
  font-size: 0.95rem;
  text-transform: lowercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-md);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-sm);
  color: var(--color-ivory-page);
  font-family: var(--font-geometric);
  font-size: 1rem;
  transition: all var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-aether-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
  cursor: pointer;
}

.checkbox-group label {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.btn {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  background: transparent;
  border: 1px solid var(--color-aether-gold);
  color: var(--color-aether-gold);
  font-family: var(--font-geometric);
  font-size: 1rem;
  text-transform: lowercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  text-align: center;
  margin-top: 10px;
}

.btn:hover {
  background: var(--color-aether-gold);
  color: var(--color-inkwell);
  box-shadow: var(--shadow-gold);
}

.btn-primary {
  width: 100%;
  margin-top: var(--space-md);
}

/* ============================================
   Google Maps
   ============================================ */

.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.2);
  margin: var(--space-xl) 0;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================
   Products Grid
   ============================================ */

.product-card {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
}

.product-card:hover {
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.product-price {
  font-size: 1.5rem;
  color: var(--color-aether-gold);
  font-weight: 600;
  margin-top: var(--space-md);
}

/* ============================================
   Reading Map (Constellation/Timeline)
   ============================================ */

.reading-map {
  position: relative;
  padding: var(--space-xxl) 0;
  min-height: 600px;
}

.book-constellation {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.book-entry {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
  backdrop-filter: blur(10px);
  transition: all var(--transition-base);
}

.book-entry:hover {
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: var(--shadow-gold);
}

.vibe-summary {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.color-palette {
  display: flex;
  gap: var(--space-sm);
  margin: var(--space-sm) 0;
}

.color-swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

/* ============================================
   Insight Cards (Topic Archives)
   ============================================ */

.insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.insight-card {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  backdrop-filter: blur(10px);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.insight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
  transition: left var(--transition-slow);
}

.insight-card:hover::before {
  left: 100%;
}

.insight-card:hover {
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-4px);
}

.insight-quote {
  font-style: italic;
  color: var(--color-aether-gold);
  margin-bottom: var(--space-md);
  font-size: 1.1rem;
}

.insight-author {
  font-size: 0.9rem;
  color: rgba(248, 248, 242, 0.6);
  text-align: right;
}

/* ============================================
   Genre Exploration
   ============================================ */

.genre-visual {
  margin: var(--space-xl) 0;
  text-align: center;
}

.genre-diagram {
  max-width: 800px;
  margin: var(--space-xl) auto;
  padding: var(--space-xl);
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  padding: var(--space-xl) var(--space-lg);
  margin-top: var(--space-xxl);
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
  list-style: none;
  margin-bottom: var(--space-md);
}

.footer-nav a {
  font-size: 0.9rem;
  text-transform: lowercase;
  letter-spacing: 0.05em;
}

.footer-info {
  font-size: 0.85rem;
  color: rgba(248, 248, 242, 0.6);
  margin-top: var(--space-md);
}

/* ============================================
   Privacy Policy Popup
   ============================================ */

.privacy-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.95);
  z-index: 10000;
  overflow-y: auto;
  backdrop-filter: blur(10px);
}

.privacy-popup.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}

.popup-content {
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  backdrop-filter: blur(20px);
}

.popup-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--color-aether-gold);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.popup-close:hover {
  border-color: var(--color-aether-gold);
  background: rgba(212, 175, 55, 0.1);
}

/* ============================================
   Thank You Page
   ============================================ */

.thank-you-container {
  text-align: center;
  padding: var(--space-xxl) var(--space-lg);
  max-width: 600px;
  margin: 0 auto;
}

.thank-you-icon {
  font-size: 4rem;
  color: var(--color-aether-gold);
  margin-bottom: var(--space-lg);
}

/* ============================================
   404 Page
   ============================================ */

.error-container {
  text-align: center;
  padding: var(--space-xxl) var(--space-lg);
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.error-code {
  font-size: clamp(4rem, 10vw, 8rem);
  color: var(--color-aether-gold);
  font-family: var(--font-poetic);
  margin-bottom: var(--space-md);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
  :root {
    --space-xl: 2rem;
    --space-xxl: 3rem;
  }
  
  .site-header {
    padding: var(--space-md);
  }
  
  main {
    padding: var(--space-xl) var(--space-md);
  }
  
  .hero-banner {
    min-height: 50vh;
  }
  
  .grid-container {
    grid-template-columns: 1fr;
  }
  
  .book-constellation {
    grid-template-columns: 1fr;
  }
  
  .insight-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    padding: var(--space-lg);
  }
  
  .map-container {
    height: 300px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .hero-content {
    padding: var(--space-lg) var(--space-md);
  }
  
  .sentiment-reader {
    padding: var(--space-lg);
  }
  
  .aura-circle {
    width: 150px;
    height: 150px;
  }
}

/* ============================================
   Animations
   ============================================ */

@keyframes letterFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
    opacity: 0.6;
  }
}

.floating-text {
  position: absolute;
  font-family: var(--font-poetic);
  color: rgba(212, 175, 55, 0.2);
  font-size: clamp(1rem, 2vw, 1.5rem);
  pointer-events: none;
  animation: letterFloat 20s infinite ease-in-out;
}

/* ============================================
   Utility Classes
   ============================================ */

.text-center {
  text-align: center;
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.date {
  color: rgba(248, 248, 242, 0.6);
  font-size: 0.9rem;
  font-style: italic;
}

