@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Inter:wght@300;400;500;600&family=Great+Vibes&display=swap');
@import 'palette.css';

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

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

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── Skip Link ───────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--color-accent);
  color: var(--color-bg);
  padding: 12px 20px;
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ─── Navigation ──────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  transition: background 0.4s, backdrop-filter 0.4s;
}
.site-nav.scrolled {
  background: rgba(13,13,20,0.92);
  backdrop-filter: blur(12px);
}
.nav-logo {
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  color: var(--color-accent);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a:focus { color: var(--color-accent); }
.nav-lang {
  display: flex;
  gap: 8px;
}
.lang-btn {
  background: transparent;
  border: 1px solid var(--color-muted);
  color: var(--color-muted);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-btn:hover, .lang-btn.active {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all 0.3s;
}

/* ─── Hero ────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  color: var(--color-text);
  letter-spacing: 4px;
  line-height: 1;
  text-shadow: 0 4px 40px rgba(0,0,0,0.6);
  opacity: 0;
}
.hero-author {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--color-muted);
  margin-top: 8px;
  opacity: 0;
}
.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--color-accent);
  margin-top: 12px;
  letter-spacing: 2px;
  font-weight: 300;
  opacity: 0;
}
.hero-cta {
  display: inline-block;
  margin-top: 40px;
  padding: 16px 40px;
  background: var(--color-accent);
  color: var(--color-bg);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 1px;
  border-radius: 4px;
  transition: opacity 0.2s, transform 0.2s;
  opacity: 0;
}
.hero-cta:hover, .hero-cta:focus { opacity: 0.85; transform: translateY(-2px); }
.scroll-arrow {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--color-muted);
  font-size: 0.75rem;
  letter-spacing: 2px;
}
.scroll-arrow svg { animation: bounce 2s infinite; }
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ─── Sections ────────────────────────────────────── */
.section {
  padding: 100px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-full {
  padding: 100px 40px;
  width: 100%;
}
.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 48px;
  color: var(--color-text);
}
.section-heading.centered { text-align: center; }
.accent-line {
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin: 16px 0 40px;
}
.accent-line.centered { margin: 16px auto 40px; }

/* ─── Parallax Section ────────────────────────────── */
.parallax-section {
  position: relative;
  overflow: hidden;
}
.parallax-bg {
  position: absolute;
  inset: -20%;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.parallax-overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
  z-index: 1;
}
.parallax-content {
  position: relative;
  z-index: 2;
  padding: 100px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ─── Book Spotlight ──────────────────────────────── */
.book-spotlight {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: center;
  padding: 100px 80px;
  background: var(--color-surface);
}
.book-cover-wrap {
  position: relative;
}
.book-cover {
  width: 100%;
  max-width: 320px;
  border-radius: 8px;
  box-shadow: 20px 20px 60px rgba(0,0,0,0.6), -4px -4px 20px rgba(255,255,255,0.05);
}
.book-author-name {
  font-family: 'Great Vibes', cursive;
  font-size: 1.9rem;
  color: var(--color-muted);
  margin-top: 4px;
  margin-bottom: 8px;
}
.title-dot {
  color: var(--color-accent);
}
.book-quote {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--color-muted);
  border-left: 3px solid var(--color-accent);
  padding-left: 20px;
  margin: 24px 0;
  line-height: 1.8;
}
.book-lead-quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-style: italic;
  color: var(--color-text);
  line-height: 1.7;
  margin: 12px 0 0;
  opacity: 0.9;
}
.book-description {
  color: var(--color-muted);
  font-size: 0.93rem;
  line-height: 1.85;
  margin-bottom: 20px;
}
.book-bullets {
  list-style: none;
  margin-bottom: 24px;
}
.book-bullets li {
  color: var(--color-text);
  font-size: 0.88rem;
  padding: 5px 0 5px 24px;
  position: relative;
  line-height: 1.5;
}
.book-bullets li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}
.book-meta-strip {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 24px;
}
.book-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.book-meta-label {
  font-size: 0.68rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.book-meta-value {
  font-size: 0.88rem;
  color: var(--color-text);
  font-weight: 500;
}
.book-formats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.book-format-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 8px;
  padding: 12px 18px;
  text-align: center;
  flex: 1;
  min-width: 90px;
}
.book-format-card.featured {
  border-color: var(--color-accent);
  background: rgba(232,164,74,0.08);
}
.book-format-name {
  display: block;
  font-size: 0.68rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}
.book-format-price {
  display: block;
  font-size: 1.3rem;
  color: var(--color-text);
  font-weight: 600;
}
.book-format-card.featured .book-format-price {
  color: var(--color-accent);
}
.book-trust {
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-top: 14px;
  opacity: 0.7;
}

/* ─── CTA Button ──────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--color-accent);
  color: var(--color-bg);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 1px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.btn:hover, .btn:focus { opacity: 0.85; transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
}
.btn-outline:hover, .btn-outline:focus {
  background: var(--color-accent);
  color: var(--color-bg);
}

/* ─── YouTube Section ─────────────────────────────── */
.youtube-section {
  padding: 100px 80px;
  text-align: center;
  background: var(--color-bg);
}
.youtube-embed {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16/9;
  border: none;
  border-radius: 8px;
  margin: 0 auto 32px;
  display: block;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* ─── Event Cards ─────────────────────────────────── */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.event-card {
  background: var(--color-surface);
  border-radius: 8px;
  padding: 28px;
  border-left: 4px solid var(--color-accent);
  transition: transform 0.2s;
}
.event-card:hover { transform: translateY(-4px); }
.event-date {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--color-accent);
  font-weight: 700;
}
.event-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 8px 0;
}
.event-location { color: var(--color-muted); font-size: 0.9rem; }

/* ─── Media Grid ──────────────────────────────────── */
.media-masonry {
  columns: 3;
  gap: 16px;
}
.media-masonry img {
  width: 100%;
  margin-bottom: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.2s;
  break-inside: avoid;
}
.media-masonry img:hover { opacity: 0.85; }

/* ─── Timeline ────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 12px; top: 0; bottom: 0;
  width: 2px;
  background: var(--color-accent);
}
.timeline-item {
  position: relative;
  margin-bottom: 60px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid var(--color-bg);
}
.timeline-year {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 6px;
}
.timeline-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.timeline-desc { color: var(--color-muted); line-height: 1.7; }

/* ─── Contact Form ────────────────────────────────── */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
}
.form-group { margin-bottom: 24px; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.form-input, .form-textarea {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-muted);
  color: var(--color-text);
  padding: 14px 16px;
  border-radius: 4px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
}
.form-input:focus, .form-textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-color: var(--color-accent);
}
.form-textarea { resize: vertical; min-height: 140px; }
.form-message { margin-top: 16px; padding: 12px 16px; border-radius: 4px; display: none; }
.form-message.success { background: rgba(40,160,80,0.15); color: #4caf50; display: block; }
.form-message.error   { background: rgba(220,50,50,0.15);  color: #f44336; display: block; }

/* ─── Footer ──────────────────────────────────────── */
.site-footer {
  background: var(--color-surface);
  padding: 48px 40px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-links a:hover, .footer-links a:focus { color: var(--color-accent); }
.footer-copy { color: var(--color-muted); font-size: 0.8rem; }
.footer-lang {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

/* ─── Cookie Banner ───────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--color-surface);
  border-top: 2px solid var(--color-accent);
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 500;
  font-size: 0.875rem;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner p { color: var(--color-muted); flex: 1; }
.cookie-accept {
  padding: 10px 24px;
  background: var(--color-accent);
  color: var(--color-bg);
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

/* ─── Admin styles ────────────────────────────────── */
.admin-layout {
  display: flex;
  min-height: 100vh;
}
.admin-sidebar {
  width: 240px;
  background: var(--color-surface);
  padding: 24px 0;
  flex-shrink: 0;
}
.admin-sidebar-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--color-accent);
  padding: 0 24px 24px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: block;
}
.admin-nav a {
  display: block;
  padding: 12px 24px;
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}
.admin-nav a:hover, .admin-nav a.active {
  color: var(--color-accent);
  background: rgba(255,255,255,0.04);
  border-left: 3px solid var(--color-accent);
}
.admin-main {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
}
.admin-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-bottom: 32px;
  color: var(--color-text);
}

/* ─── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
  .site-nav { padding: 16px 20px; }
  .nav-links { display: none; flex-direction: column; }
  .nav-links.open { display: flex; position: fixed; inset: 0; background: var(--color-bg); align-items: center; justify-content: center; gap: 40px; z-index: 99; }
  .nav-hamburger { display: flex; z-index: 100; }
  .book-spotlight { grid-template-columns: 1fr; padding: 60px 20px; gap: 40px; }
  .section, .section-full, .youtube-section { padding: 60px 20px; }
  .parallax-content { padding: 60px 20px; }
  .media-masonry { columns: 2; }
  .cookie-banner { flex-direction: column; padding: 16px 20px; text-align: center; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; }
}

@media (max-width: 480px) {
  .media-masonry { columns: 1; }
  .events-grid { grid-template-columns: 1fr; }
}

/* ─── Focus Indicators (ADA) ──────────────────────── */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

/* ─── Scroll Animations ────────────────────────────── */
.gsap-fade { opacity: 0; transform: translateY(40px); }
.gsap-fade-left { opacity: 0; transform: translateX(-40px); }
.gsap-fade-right { opacity: 0; transform: translateX(40px); }
