/* VelvetCliffs Custom Theme - Dark Velvet-Violet & Soft Gold Aesthetic */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --vc-bg-dark: #0d0812;
  --vc-bg-main: #121212;
  --vc-bg-velvet: #1b0d22;
  --vc-bg-card: rgba(27, 13, 34, 0.85);
  --vc-bg-card-hover: rgba(38, 19, 48, 0.9);
  --vc-gold: #d4af37;
  --vc-gold-hover: #f0c850;
  --vc-gold-glow: rgba(212, 175, 55, 0.25);
  --vc-rose: #c5a3ab;
  --vc-rose-light: #e6cbce;
  --vc-text-main: #f4f1ea;
  --vc-text-muted: #b8b0a5;
  --vc-border-gold: rgba(212, 175, 55, 0.3);
  --vc-border-rose: rgba(197, 163, 171, 0.3);
  --vc-font-heading: 'Cinzel', serif;
  --vc-font-body: 'Outfit', sans-serif;
}

body {
  background-color: var(--vc-bg-dark);
  background-image: 
    radial-gradient(circle at 50% 0%, #291136 0%, transparent 60%),
    radial-gradient(circle at 100% 100%, #15091c 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--vc-text-main);
  font-family: var(--vc-font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .navbar-brand, .font-heading {
  font-family: var(--vc-font-heading);
  letter-spacing: 0.03em;
  color: #ffffff;
}

.text-gold {
  color: var(--vc-gold) !important;
}

.text-rose {
  color: var(--vc-rose) !important;
}

.text-muted-custom {
  color: var(--vc-text-muted) !important;
}

/* Navbar */
.navbar-velvet {
  background: rgba(13, 8, 18, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--vc-border-gold);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.navbar-brand {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--vc-gold) !important;
  text-shadow: 0 0 12px var(--vc-gold-glow);
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  color: var(--vc-gold-hover) !important;
  transform: scale(1.02);
}

.nav-link {
  color: var(--vc-text-main) !important;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--vc-rose) !important;
}

/* Cards & Glassmorphic Containers */
.glass-card {
  background: var(--vc-bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--vc-border-gold);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  border-color: var(--vc-gold);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.15), 0 8px 32px rgba(0, 0, 0, 0.7);
}

/* Hero Section */
.hero-wrapper {
  position: relative;
  padding: 3rem 0 2rem;
}

.hero-cover-container {
  position: relative;
  max-width: 320px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.2);
  border: 2px solid var(--vc-border-gold);
  transition: transform 0.3s ease;
}

.hero-cover-container:hover {
  transform: translateY(-5px);
  border-color: var(--vc-gold);
}

.hero-cover-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Trope Badges */
.trope-badge {
  display: inline-block;
  background: rgba(27, 13, 34, 0.9);
  border: 1px solid var(--vc-border-rose);
  color: var(--vc-rose);
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0.25rem;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.trope-badge:hover {
  border-color: var(--vc-gold);
  color: var(--vc-gold);
  background: rgba(38, 19, 48, 1);
  transform: translateY(-2px);
}

/* Custom Buttons */
.btn-velvet-gold {
  background: linear-gradient(135deg, #d4af37 0%, #b88e28 100%);
  color: #0d0812 !important;
  font-weight: 700;
  font-family: var(--vc-font-heading);
  letter-spacing: 0.05em;
  border: none;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  box-shadow: 0 4px 20px var(--vc-gold-glow);
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.btn-velvet-gold:hover {
  background: linear-gradient(135deg, #f0c850 0%, #d4af37 100%);
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
}

.btn-velvet-outline {
  background: transparent;
  color: var(--vc-gold) !important;
  border: 1px solid var(--vc-gold);
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-velvet-outline:hover {
  background: rgba(212, 175, 55, 0.15);
  color: #ffffff !important;
  border-color: var(--vc-gold-hover);
}

.btn-nav-chapter {
  background: rgba(27, 13, 34, 0.9);
  border: 1px solid var(--vc-border-gold);
  color: var(--vc-text-main);
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-nav-chapter:hover:not(.disabled) {
  border-color: var(--vc-gold);
  color: var(--vc-gold);
  background: rgba(45, 22, 56, 0.9);
  transform: translateY(-1px);
}

.btn-nav-chapter.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.1);
}

/* Table of Contents List */
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-item {
  margin-bottom: 0.75rem;
}

.toc-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: rgba(27, 13, 34, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 12px;
  color: var(--vc-text-main);
  text-decoration: none;
  transition: all 0.25s ease;
}

.toc-link:hover {
  background: rgba(38, 19, 48, 0.9);
  border-color: var(--vc-gold);
  color: var(--vc-gold);
  transform: translateX(4px);
}

.toc-chapter-number {
  font-family: var(--vc-font-heading);
  color: var(--vc-rose);
  font-weight: 600;
  margin-right: 0.75rem;
}

/* Mobile PDF Reader Container */
.reader-container {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  background: #1a1a1a;
  border: 1px solid var(--vc-border-gold);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.pdf-wrapper {
  width: 100%;
  min-height: 75vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #121212;
  overflow-y: auto;
  padding: 1rem 0;
}

.pdf-canvas-item {
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
  border-radius: 4px;
}

.pdf-iframe-fallback {
  width: 100%;
  height: 80vh;
  border: none;
}

/* Mobile Reading Navigation Header/Footer sticky bar */
.reader-nav-bar {
  background: rgba(13, 8, 18, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--vc-border-gold);
  border-bottom: 1px solid var(--vc-border-gold);
  padding: 0.75rem 1rem;
}

/* Ad Placement Containers */
.ad-slot-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(18, 18, 18, 0.6);
  border: 1px dashed rgba(197, 163, 171, 0.25);
  border-radius: 8px;
  padding: 0.75rem;
  margin: 1.5rem 0;
  text-align: center;
  min-height: 90px;
}

.ad-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--vc-text-muted);
  margin-bottom: 0.4rem;
}

.ad-placeholder-box {
  width: 100%;
  max-width: 728px;
  height: 90px;
  background: linear-gradient(135deg, rgba(27, 13, 34, 0.4), rgba(45, 22, 56, 0.4));
  border: 1px dashed rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vc-rose);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 6px;
}

@media (max-width: 576px) {
  .ad-placeholder-box {
    max-width: 320px;
    height: 50px;
    font-size: 0.75rem;
  }
}

/* Patreon CTA Box */
.patreon-cta-box {
  background: linear-gradient(135deg, rgba(27, 13, 34, 0.95) 0%, rgba(45, 22, 56, 0.95) 100%);
  border: 2px solid var(--vc-gold);
  border-radius: 16px;
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
  box-shadow: 0 0 25px var(--vc-gold-glow);
  position: relative;
  overflow: hidden;
}

.patreon-cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
  animation: shine 4s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

.patreon-btn {
  background: linear-gradient(135deg, #ff424d 0%, #d82b35 100%);
  color: #ffffff !important;
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 4px 15px rgba(255, 66, 77, 0.4);
  transition: all 0.3s ease;
  font-size: 1.05rem;
}

.patreon-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 66, 77, 0.6);
  color: #ffffff !important;
}

/* Footer */
.footer-velvet {
  background: rgba(10, 6, 14, 0.98);
  border-top: 1px solid var(--vc-border-gold);
  padding: 2.5rem 0 1.5rem;
  color: var(--vc-text-muted);
  font-size: 0.9rem;
}

.footer-link {
  color: var(--vc-rose);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--vc-gold);
}
