/* ═══════════════════════════════════════════
   Aurelia — Base Layout & Switcher
   Shared across all themes
   ═══════════════════════════════════════════ */

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

body {
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.theme-transitioning * {
  transition: background-color 0.5s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease !important;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font: inherit; }

/* ─── Animations ─── */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.08); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.reveal {
  opacity: 0;
  animation: revealUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ─── Switcher (Footer) ─── */
.footer-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(128,128,128,0.15);
}

.sw-label {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
}

.sw-dots { display: flex; gap: 6px; align-items: center; }

.sw-dot {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  padding: 3px;
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.sw-dot-inner {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--dot-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sw-dot:hover .sw-dot-inner {
  transform: scale(1.2);
  box-shadow: 0 0 12px var(--dot-color);
}

.sw-dot.active { border-color: var(--dot-color); }
.sw-dot.active .sw-dot-inner { box-shadow: 0 0 14px var(--dot-color); }

.sw-tooltip {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(0,0,0,0.92);
  color: rgba(255,255,255,0.8);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
}

.sw-dot:hover .sw-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ═══════════════════════════════════════════
   LINKTREE
   ═══════════════════════════════════════════ */
.linktree {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px 40px;
  position: relative;
}

/* Hero Background Image */
.linktree-hero-bg {
  position: relative;
  width: 100vw;
  height: 45vh;
  min-height: 280px;
  max-height: 420px;
  overflow: hidden;
  margin-bottom: 28px;
}

.linktree-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}

.linktree-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.linktree-name {
  text-align: center;
  margin-bottom: 2px;
}

.linktree-brand {
  text-align: center;
  margin-bottom: 4px;
}

.linktree-bio {
  text-align: center;
  max-width: 280px;
  margin-bottom: 32px;
}

.linktree-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 360px;
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.link-card:hover { transform: translateY(-2px); }

.link-card-text {
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: 14px;
}

/* Separator */
.linktree-separator {
  width: 40px;
  height: 1px;
  margin: 28px 0;
}

/* E-Book CTA Card */
.linktree-ebook-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 360px;
  padding: 20px 24px;
  border-radius: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.linktree-ebook-cta:hover { transform: translateY(-3px); }

.ebook-cta-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
}

.ebook-cta-title {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
}

.ebook-cta-subtitle {
  font-size: 12px;
  opacity: 0.6;
}

/* Footer */
.linktree-footer {
  margin-top: auto;
  padding-top: 40px;
  text-align: center;
}

.linktree-footer-text {
  font-size: 11px;
  opacity: 0.3;
  letter-spacing: 0.05em;
}

/* ─── Links Section (Linktree on Landing layout) ─── */
.section-links {
  display: flex;
  justify-content: center;
}

.section-links .landing-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.section-links .linktree-links {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ═══════════════════════════════════════════
   LANDING PAGE
   ═══════════════════════════════════════════ */
.landing { min-height: 100vh; position: relative; }

/* Hero */
.landing-hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 60px 24px 80px;
  position: relative;
  overflow: hidden;
}

.landing-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.landing-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}

.landing-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.landing-hero-content {
  position: relative;
  z-index: 2;
  max-width: 480px;
  text-align: center;
}

.hero-brand {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-title {
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-rule {
  width: 48px;
  height: 1px;
  margin: 0 auto 16px;
}

.hero-subtitle {
  line-height: 1.6;
  margin-bottom: 12px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.hero-author {
  margin-bottom: 0;
}

/* Sections */
.landing-section {
  padding: 72px 24px;
  position: relative;
}

.landing-container {
  max-width: 640px;
  margin: 0 auto;
}

.section-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 8px;
}

.section-heading {
  text-align: center;
  line-height: 1.2;
  margin-bottom: 8px;
}

.section-rule {
  width: 40px;
  height: 1px;
  margin: 0 auto 28px;
}

.section-text {
  line-height: 1.7;
  margin-bottom: 16px;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.feature-card {
  padding: 24px 20px;
  border-radius: 12px;
  text-align: center;
}

.feature-icon {
  font-size: 24px;
  margin-bottom: 10px;
  line-height: 1;
}

.feature-title {
  font-size: 14px;
  margin-bottom: 6px;
}

.feature-desc {
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.6;
}

/* Chapters */
.chapters-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.chapter-group { display: flex; flex-direction: column; gap: 0; }

.chapter-group-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 10px;
  padding-bottom: 6px;
}

.chapter-item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 8px 0;
}

.chapter-num {
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  min-width: 24px;
}

.chapter-title {
  font-size: 14px;
  flex: 1;
}

/* Quote */
.quote-block {
  text-align: center;
  padding: 40px 24px;
  border-radius: 16px;
  position: relative;
}

.quote-mark {
  font-size: 48px;
  line-height: 0.5;
  opacity: 0.2;
  margin-bottom: 12px;
}

.quote-text {
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.quote-author {
  font-size: 12px;
  font-style: normal;
  opacity: 0.5;
  letter-spacing: 0.05em;
}

/* CTA */
.cta-price-block {
  text-align: center;
  margin: 24px 0;
}

.price-amount {
  display: block;
  font-size: 42px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 4px;
}

.price-sub {
  font-size: 12px;
  opacity: 0.5;
  letter-spacing: 0.05em;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.cta-button:hover { transform: translateY(-2px); }

/* Footer */
.landing-footer {
  text-align: center;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.footer-brand {
  font-size: 12px;
  letter-spacing: 0.1em;
}

.footer-copy {
  font-size: 11px;
  opacity: 0.3;
}

.footer-back {
  font-size: 11px;
  opacity: 0.4;
  margin-top: 8px;
  transition: opacity 0.2s;
}

.footer-back:hover { opacity: 0.7; }

.footer-legal {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

.footer-legal a {
  font-size: 11px;
  opacity: 0.35;
  transition: opacity 0.2s;
}

.footer-legal a:hover { opacity: 0.7; }

/* ─── E-Book Hero CTA Card ─── */
.section-ebook-cta {
  padding: 48px 24px 72px;
}

.ebook-hero-card {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
  padding: 36px 28px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.ebook-hero-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.ebook-hero-title {
  font-size: 22px;
  line-height: 1.25;
  margin-bottom: 10px;
}

.ebook-hero-desc {
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.7;
  margin-bottom: 16px;
}

.ebook-hero-details {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
}

.ebook-detail {
  font-size: 11px;
  letter-spacing: 0.04em;
  opacity: 0.5;
}

.ebook-detail-dot {
  font-size: 11px;
  opacity: 0.25;
}

.ebook-hero-price {
  font-size: 36px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 20px;
}

.cta-ebook {
  font-size: 15px;
  padding: 16px 44px;
}

/* ─── Responsive ─── */
@media (max-width: 480px) {
  .sw-label { display: none; }
  .sw-dot { width: 22px; height: 22px; }
  .linktree { padding: 64px 16px 32px; }
  .linktree-avatar, .linktree-profile { width: 80px; height: 80px; }
  .linktree-links { max-width: 100%; }
  .linktree-ebook-cta { max-width: 100%; }
  .landing-hero { padding: 60px 16px 60px; }
  .landing-section { padding: 56px 16px; }
  .features-grid { grid-template-columns: 1fr; }
}
