@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Inter:wght@300;400;500;600&family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

:root {
  /* Paleta de Cores */
  --bg-primary: #0B0F19;
  --bg-secondary: #1a1535;
  --bg-card: rgba(255, 255, 255, 0.04);
  --text-primary: #FFFFFF;
  --text-secondary: #C4B5A0;
  --accent-gold: #E4CA94;
  --accent-gold-hover: #F5DEB3;
  --accent-purple: #8B5CF6;
  --accent-purple-hover: #7C3AED;
  --glass-border: rgba(255, 255, 255, 0.1);

  /* Fontes */
  --font-heading: 'Cinzel', serif;
  --font-body: 'Open Sans', sans-serif;
  --font-ui: 'Inter', sans-serif;

  /* Transições & Sombras */
  --transition: all 0.3s ease;
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --glow-gold: 0 0 15px rgba(228, 202, 148, 0.5);
  --glow-purple: 0 0 15px rgba(139, 92, 246, 0.5);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 0%, var(--bg-secondary) 0%, var(--bg-primary) 70%);
  z-index: -2;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Scrollbar Customizada */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(228, 202, 148, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* ==========================================================================
   TIPOGRAFIA & UTILITIES
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 1.5rem;
  font-weight: 300;
}

.title-accent {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-purple));
  margin: 0 auto;
  border-radius: 2px;
}

/* ==========================================================================
   ANIMAÇÕES
   ========================================================================== */
@keyframes goldGlow {
  0% { text-shadow: 0 0 10px rgba(228, 202, 148, 0.2); }
  50% { text-shadow: 0 0 25px rgba(228, 202, 148, 0.8), 0 0 50px rgba(228, 202, 148, 0.3); }
  100% { text-shadow: 0 0 10px rgba(228, 202, 148, 0.2); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0.8rem 0;
  transition: var(--transition);
  background: rgba(11, 15, 25, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(228, 202, 148, 0.05);
}

.navbar.scrolled {
  background: rgba(11, 15, 25, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(228, 202, 148, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(228, 202, 148, 0.3);
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-gold);
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-primary);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-purple));
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
}

.lang-btn {
  color: var(--text-secondary);
  padding: 0.25rem 0.4rem;
  border-radius: 4px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
}

.lang-btn .flag-emoji {
  font-size: 1rem;
  line-height: 1;
}

.lang-btn.active {
  color: var(--accent-gold);
  font-weight: 700;
  background: rgba(228, 202, 148, 0.08);
}

.lang-btn:hover {
  color: var(--accent-gold-hover);
}

.lang-divider {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
}

/* Hamburger */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background-color: var(--accent-gold);
  display: block;
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11, 15, 25, 0.3) 0%,
    rgba(11, 15, 25, 0.6) 50%,
    var(--bg-primary) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 2rem;
}

.hero-emblem {
  margin-bottom: 2rem;
}

.hero-emblem-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto;
  border: 3px solid rgba(228, 202, 148, 0.4);
  box-shadow: 0 0 30px rgba(228, 202, 148, 0.2);
  animation: float 6s ease-in-out infinite;
}

.hero-title {
  font-size: 4rem;
  color: var(--text-primary);
  animation: goldGlow 4s ease-in-out infinite;
  margin-bottom: 1rem;
  letter-spacing: 3px;
}

.hero-separator {
  margin: 1.5rem auto;
  display: flex;
  justify-content: center;
}

.separator-svg {
  width: 200px;
  opacity: 0.5;
  filter: sepia(1) saturate(3) hue-rotate(10deg) brightness(1.2);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-weight: 300;
  line-height: 1.8;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--bg-primary);
  background: linear-gradient(135deg, var(--accent-gold), #FFF8DC);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 0 20px rgba(228, 202, 148, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-cta:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 35px rgba(228, 202, 148, 0.5);
}

.hero-cta svg {
  transition: var(--transition);
}

.hero-cta:hover svg {
  transform: translate(3px, -3px);
}

/* ==========================================================================
   LIVROS SECTION
   ========================================================================== */
.section-books {
  background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(26, 21, 53, 0.3) 50%, var(--bg-primary) 100%);
}

/* Abas de Idioma */
.lang-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.lang-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  color: var(--text-secondary);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lang-tab-flag {
  font-size: 1.2rem;
}

.lang-tab:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-2px);
}

.lang-tab.active {
  background: linear-gradient(135deg, rgba(228, 202, 148, 0.15), rgba(139, 92, 246, 0.15));
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: 0 0 20px rgba(228, 202, 148, 0.2);
  font-weight: 600;
}

/* Conteúdo das Abas */
.books-tab-content {
  display: none;
}

.books-tab-content.active {
  display: block;
  animation: fadeInTab 0.4s ease forwards;
}

@keyframes fadeInTab {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ambient Cosmic Orbs */
.cosmic-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.cosmic-orb-1 {
  top: 15%;
  left: -10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.45), rgba(228, 202, 148, 0.15), transparent 70%);
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.cosmic-orb-2 {
  top: 45%;
  right: -10%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(228, 202, 148, 0.35), rgba(139, 92, 246, 0.2), transparent 70%);
  animation: floatOrb 22s ease-in-out infinite alternate-reverse;
}

.cosmic-orb-3 {
  top: 75%;
  left: 5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.4), rgba(0, 240, 255, 0.15), transparent 70%);
  animation: floatOrb 16s ease-in-out infinite alternate;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(70px, 50px) scale(1.1); }
  100% { transform: translate(-50px, 90px) scale(0.95); }
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.book-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  will-change: transform;
}

.book-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, #E4CA94, #8B5CF6, #00F0FF, #E4CA94);
  background-size: 300% 300%;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.book-card:hover::before {
  opacity: 0.8;
  animation: cosmicGlowPulse 4s ease infinite;
}

.book-card:hover {
  box-shadow: 0 12px 35px rgba(228, 202, 148, 0.25), 0 0 50px rgba(139, 92, 246, 0.2);
}

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

.book-link {
  display: block;
}

.book-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4.3;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.book-card:hover .book-cover img {
  transform: scale(1.08);
}

.book-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 15, 25, 0.95) 0%, rgba(11, 15, 25, 0.4) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.5rem 1rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.book-card:hover .book-overlay {
  opacity: 1;
}

.book-info {
  text-align: center;
  transform: translateY(10px);
  transition: transform 0.4s ease;
  width: 100%;
}

.book-card:hover .book-info {
  transform: translateY(0);
}

.book-info-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--accent-gold);
  margin-bottom: 0.6rem;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.book-buy-btn {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  border-radius: 50px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: var(--transition);
  transform: translateY(10px);
}

.book-card:hover .book-buy-btn {
  transform: translateY(0);
}

.book-buy-btn:hover {
  background: var(--accent-gold);
  color: var(--bg-primary);
}

/* Marketplace badges */
.marketplaces {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem 0 1rem;
}

.marketplace-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 190px;
  height: 64px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(228, 202, 148, 0.2);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.marketplace-badge:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-gold);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 30px rgba(228, 202, 148, 0.25);
}

.marketplace-badge img {
  max-height: 28px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: filter 0.3s ease;
}

.marketplace-badge img[src*="logo-amazon"] {
  max-height: 26px;
  filter: brightness(0) invert(1);
}

.marketplace-badge:hover img[src*="logo-amazon"] {
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 153, 0, 0.8));
}

.footer-uiclap-icon {
  height: 22px;
  width: auto;
  vertical-align: middle;
}

/* ==========================================================================
   SOBRE O AUTOR
   ========================================================================== */
.section-about {
  background: linear-gradient(to right, rgba(26, 21, 53, 0.4), rgba(11, 15, 25, 0.8));
  border-top: 1px solid rgba(228, 202, 148, 0.08);
  border-bottom: 1px solid rgba(228, 202, 148, 0.08);
}

.about-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

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

.photo-ring {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 3px solid var(--accent-gold);
  padding: 8px;
  margin: 0 auto;
  box-shadow: 0 0 30px rgba(228, 202, 148, 0.15), 0 0 60px rgba(139, 92, 246, 0.1);
  background: var(--bg-card);
}

.author-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.about-bio p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  line-height: 1.8;
}

/* Pilares */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pillar-card {
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: var(--transition);
}

.pillar-card:hover {
  background: rgba(228, 202, 148, 0.06);
  border-color: rgba(228, 202, 148, 0.3);
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.pillar-icon {
  color: var(--accent-gold);
  margin-bottom: 1.2rem;
}

.pillar-icon svg {
  display: inline-block;
}

.pillar-title {
  font-size: 1.1rem;
  color: var(--accent-gold);
  margin-bottom: 0.8rem;
  letter-spacing: 0.5px;
}

.pillar-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.letterb-spotify-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.8rem 1.2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(228, 202, 148, 0.2);
  border-radius: 14px;
  text-decoration: none;
  transition: var(--transition);
}

.letterb-spotify-card:hover {
  background: rgba(29, 185, 84, 0.08);
  border-color: #1DB954;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(29, 185, 84, 0.25);
}

.letterb-logo-img {
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: var(--transition);
}

.spotify-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
}

.letterb-spotify-card:hover .spotify-badge {
  color: #1DB954;
}

/* ==========================================================================
   VÍDEOS SECTION
   ========================================================================== */
.section-videos {
  text-align: center;
}

/* --- YouTube Videos List --- */
.yt-videos-grid {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.yt-video-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.yt-video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 0, 0, 0.35);
  box-shadow: 0 10px 35px rgba(255, 0, 0, 0.12), 0 0 25px rgba(228, 202, 148, 0.08);
}

/* Thumbnail */
.yt-video-thumb {
  display: block;
  position: relative;
  width: 280px;
  min-height: 158px;
  flex-shrink: 0;
  cursor: pointer;
  overflow: hidden;
}

.yt-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.yt-video-card:hover .yt-video-thumb img {
  transform: scale(1.05);
}

/* Play overlay */
.yt-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  transition: background 0.3s ease;
}

.yt-video-thumb:hover .yt-play-overlay {
  background: rgba(0, 0, 0, 0.1);
}

.yt-play-btn {
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.yt-video-thumb:hover .yt-play-btn {
  transform: scale(1.15);
}

/* Meta info */
.yt-video-meta {
  padding: 1.2rem 1.5rem;
  text-align: left;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.yt-video-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yt-video-date {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

/* Loading spinner */
.yt-loading {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.yt-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(228, 202, 148, 0.15);
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  animation: ytSpin 0.8s linear infinite;
}

@keyframes ytSpin {
  to { transform: rotate(360deg); }
}

/* --- Channel CTA Card --- */
.youtube-showcase {
  max-width: 700px;
  margin: 0 auto;
}

.youtube-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 2.5rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  transition: var(--transition);
  text-align: left;
}

.youtube-card:hover {
  border-color: rgba(255, 0, 0, 0.3);
  box-shadow: 0 10px 40px rgba(255, 0, 0, 0.1);
  transform: translateY(-5px);
}

.youtube-emblem {
  flex-shrink: 0;
}

.youtube-emblem-img {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  border: 2px solid rgba(228, 202, 148, 0.4);
  box-shadow: 0 0 20px rgba(228, 202, 148, 0.2);
  transition: transform 0.4s ease;
}

.youtube-card:hover .youtube-emblem-img {
  transform: scale(1.08) rotate(5deg);
}

.youtube-icon {
  color: #FF0000;
  flex-shrink: 0;
  transition: var(--transition);
}

.youtube-card:hover .youtube-icon {
  transform: scale(1.1);
}

.youtube-info h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.youtube-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.youtube-subscribe {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.3rem;
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(255, 0, 0, 0.4);
  color: #FF6666;
  border-radius: 50px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

.youtube-card:hover .youtube-subscribe {
  background: #FF0000;
  color: #FFFFFF;
  border-color: #FF0000;
}

@media (max-width: 768px) {
  .yt-video-card {
    flex-direction: column;
  }

  .yt-video-thumb {
    width: 100%;
    min-height: auto;
    aspect-ratio: 16 / 9;
  }

  .youtube-card {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: #05080F;
  padding: 3rem 0 1.5rem;
  border-top: 1px solid rgba(228, 202, 148, 0.08);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(228, 202, 148, 0.3);
}

.footer-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--accent-gold);
  letter-spacing: 1px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  opacity: 0.75;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-links a:hover {
  color: var(--accent-gold);
  opacity: 1;
  transform: translateY(-2px);
}

.footer-links svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.footer-amazon-icon {
  height: 18px;
  width: auto;
  transition: var(--transition);
  filter: brightness(0) invert(0.85);
}

.footer-links a:hover .footer-amazon-icon {
  filter: brightness(0) saturate(100%) invert(85%) sepia(25%) saturate(700%) hue-rotate(345deg);
}

.footer-uiclap-icon {
  height: 20px;
  width: auto;
  transition: var(--transition);
  filter: brightness(0) invert(0.85);
}

.footer-links a:hover .footer-uiclap-icon {
  filter: brightness(0) saturate(100%) invert(85%) sepia(25%) saturate(700%) hue-rotate(345deg);
}

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

.footer-bottom p {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
  font-family: var(--font-ui);
}

.footer-made {
  margin-top: 0.5rem;
  font-size: 0.75rem !important;
}

/* ==========================================================================
   MEDIA QUERIES
   ========================================================================== */

/* Tablet */
@media (max-width: 992px) {
  .books-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-bio {
    text-align: left;
  }

  .pillars {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .youtube-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }

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

/* Mobile */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: rgba(11, 15, 25, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transition: right 0.4s ease;
    border-left: 1px solid rgba(228, 202, 148, 0.1);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    font-size: 1.1rem;
  }

  .hamburger {
    display: block;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-emblem-img {
    width: 90px;
    height: 90px;
  }

  .section {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

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

  .photo-ring {
    width: 200px;
    height: 200px;
  }

  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .marketplaces {
    gap: 1rem;
  }

  .marketplace-badge {
    width: 145px;
    height: 52px;
  }

  .marketplace-badge img {
    max-height: 22px;
    max-width: 110px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
    letter-spacing: 1px;
  }

  .hero-cta {
    padding: 0.8rem 1.8rem;
    font-size: 0.85rem;
  }

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

  .nav-logo-text {
    font-size: 1rem;
  }

  .container {
    padding: 0 1rem;
  }
}
