/* ========================================
   MANGADEMON.NET - WORDPRESS THEME CSS
   Dark Manga Platform Stylesheet
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---- CSS VARIABLES ---- */
:root {
  --bg: #0a0a0d;
  --card: #13131a;
  --card-border: #1e1e2a;
  --primary: #cc1a1a;
  --primary-hover: #b01515;
  --primary-glow: rgba(204,26,26,0.35);
  --primary-subtle: rgba(204,26,26,0.1);
  --foreground: #f4f4f5;
  --muted: #71717a;
  --border: #1e1e2a;
  --font-display: 'Cinzel Decorative', serif;
  --font-sans: 'Inter', sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 20px var(--primary-glow);
  --container: 1280px;
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: 0.03em;
  color: var(--foreground);
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ---- UTILITY ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.text-primary { color: var(--primary); }
.text-muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--primary-subtle);
  border: 1px solid rgba(204,26,26,0.3);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-full);
  padding: 12px 28px;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 20px var(--primary-glow);
}
.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 0 30px rgba(204,26,26,0.55);
  transform: translateY(-1px);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.35);
  color: var(--foreground);
}

.btn-ghost {
  background: var(--card);
  color: var(--foreground);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: rgba(204,26,26,0.4);
  color: var(--foreground);
}

.btn-link {
  background: none;
  color: var(--primary);
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
}
.btn-link:hover { opacity: 0.8; color: var(--primary); }

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(204,26,26,0.25);
  color: var(--primary);
  backdrop-filter: blur(6px);
}

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px var(--primary-glow); }
  50% { box-shadow: 0 0 35px rgba(204,26,26,0.5); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}
.animate-fade {
  opacity: 0;
  transition: opacity 0.65s ease;
}
.animate-fade.animated { opacity: 1; }
.animate-left {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.animate-left.animated { opacity: 1; transform: translateX(0); }

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ===============================
   HEADER
================================ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
#site-header.scrolled {
  background: rgba(10,10,13,0.92);
  backdrop-filter: blur(12px);
  border-color: rgba(204,26,26,0.2);
  box-shadow: 0 0 20px rgba(204,26,26,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.site-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(204,26,26,0.6));
}
.site-logo .logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
}
.site-logo .logo-text span { color: var(--primary); text-shadow: 0 0 6px rgba(204,26,26,0.5); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: #a1a1aa;
  transition: color var(--transition);
}
.main-nav a:hover { color: var(--primary); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-wrap {
  position: relative;
}
.search-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #71717a;
  pointer-events: none;
  transition: color var(--transition);
}
.search-wrap:focus-within svg { color: var(--primary); }
.search-input {
  padding: 8px 16px 8px 38px;
  width: 240px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-input::placeholder { color: #52525b; }
.search-input:focus {
  border-color: rgba(204,26,26,0.5);
  box-shadow: 0 0 0 2px rgba(204,26,26,0.15);
}

/* Hamburger */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #fff;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
}
.mobile-toggle span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.mobile-toggle span:nth-child(1) { width: 24px; }
.mobile-toggle span:nth-child(2) { width: 18px; }
.mobile-toggle span:nth-child(3) { width: 22px; }
.mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); width: 24px; }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 24px; }

/* Mobile menu */
.mobile-menu {
  display: none;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu .search-input { width: 100%; margin-bottom: 12px; }
.mobile-menu a {
  display: block;
  padding: 12px 0;
  font-size: 17px;
  font-weight: 500;
  color: #a1a1aa;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.mobile-menu a:hover { color: var(--primary); }
.mobile-menu .btn { margin-top: 12px; width: 100%; }

/* ===============================
   HERO
================================ */
#hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, rgba(10,10,13,0.75) 50%, transparent 100%);
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg) 0%, rgba(10,10,13,0.45) 60%, transparent 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-content h1 {
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-content h1 .highlight {
  background: linear-gradient(135deg, var(--primary), #e53935);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 0 12px rgba(204,26,26,0.7));
}

.hero-content p {
  font-size: 18px;
  color: #a1a1aa;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 600px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}
.hero-ctas .btn { font-size: 17px; padding: 16px 36px; }
.hero-ctas .btn-primary { animation: pulseGlow 3s ease-in-out infinite; }

/* ===============================
   TRENDING NOW
================================ */
#trending {
  padding: 80px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 16px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(26px, 3vw, 40px);
  color: #fff;
  margin-bottom: 8px;
}
.section-title svg { color: var(--primary); flex-shrink: 0; }
.section-subtitle { color: var(--muted); font-size: 15px; font-family: var(--font-sans); font-weight: 400; letter-spacing: 0; }

.manga-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.manga-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
}

.manga-card-cover {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
  transition: border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-card);
}
.manga-card:hover .manga-card-cover {
  border-color: rgba(204,26,26,0.5);
  box-shadow: 0 0 22px rgba(204,26,26,0.3);
}

.manga-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.manga-card:hover .manga-card-cover img { transform: scale(1.06); }

.manga-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.15) 50%, transparent 100%);
  opacity: 0.8;
  transition: opacity var(--transition);
}
.manga-card:hover .manga-card-overlay { opacity: 1; }

.manga-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
}

.manga-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.manga-card:hover .manga-card-play { opacity: 1; }
.manga-card-play .play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(204,26,26,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 18px rgba(204,26,26,0.8);
  transform: translateY(12px);
  transition: transform 0.3s ease;
}
.manga-card:hover .play-btn { transform: translateY(0); }
.manga-card-play svg { width: 20px; height: 20px; margin-left: 3px; }

.manga-card-info h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--transition);
}
.manga-card:hover .manga-card-info h3 { color: var(--primary); }

.manga-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 11px;
  color: #71717a;
}
.manga-card-meta .chap { color: rgba(255,255,255,0.8); font-weight: 500; }
.manga-card-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #52525b;
}
.manga-card-meta .time { display: flex; align-items: center; gap: 3px; }
.manga-card-meta svg { width: 11px; height: 11px; }

/* ===============================
   LATEST UPDATES + GENRES
================================ */
#latest {
  padding: 80px 0;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.updates-genres-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
}

/* Updates */
.updates-col .col-title {
  font-size: clamp(22px, 2.5vw, 32px);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.updates-col .col-title svg { color: var(--primary); }

.update-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.update-row:hover {
  border-color: rgba(204,26,26,0.3);
  background: rgba(19,19,26,0.85);
}
.update-row img {
  width: 46px;
  height: 62px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.update-info { flex: 1; min-width: 0; }
.update-info h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--transition);
}
.update-row:hover .update-info h4 { color: var(--primary); }
.update-info p { font-size: 13px; color: var(--muted); margin-top: 3px; }
.update-right { text-align: right; flex-shrink: 0; }
.update-chap {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--primary-subtle);
  border: 1px solid rgba(204,26,26,0.2);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}
.update-time { font-size: 11px; color: #52525b; margin-top: 5px; }

.view-all-btn { margin-top: 20px; }

/* Genres */
.genres-col .col-title {
  font-size: clamp(22px, 2.5vw, 32px);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.genres-col .col-title svg { color: var(--primary); }

.genres-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.genre-tile {
  padding: 20px 12px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--card) 0%, var(--bg) 100%);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.genre-tile:hover {
  border-color: rgba(204,26,26,0.4);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(204,26,26,0.15);
}
.genre-tile svg { width: 30px; height: 30px; transition: transform var(--transition); }
.genre-tile:hover svg { transform: scale(1.12); }
.genre-tile span { font-size: 13px; font-weight: 500; color: #a1a1aa; transition: color var(--transition); }
.genre-tile:hover span { color: #fff; }

/* Icon colors */
.icon-orange { color: #f97316; }
.icon-primary { color: var(--primary); }
.icon-purple { color: #a855f7; }
.icon-pink { color: #ec4899; }
.icon-blue { color: #3b82f6; }
.icon-green { color: #22c55e; }
.icon-cyan { color: #06b6d4; }
.icon-darkred { color: #991b1b; }

.surprise-card {
  margin-top: 24px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(204,26,26,0.2) 0%, var(--card) 100%);
  border: 1px solid rgba(204,26,26,0.2);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.surprise-card h4 { font-size: 18px; color: #fff; margin-bottom: 8px; font-family: var(--font-display); }
.surprise-card p { font-size: 13px; color: var(--muted); margin-bottom: 16px; font-family: var(--font-sans); font-weight: 400; letter-spacing: 0; }
.surprise-card .btn { width: 100%; box-shadow: 0 0 16px var(--primary-glow); }

/* ===============================
   HOW TO EXPLORE
================================ */
#how-to {
  padding: 80px 0;
}

.how-to-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  margin-top: 48px;
}
.how-to-steps::before {
  content: '';
  position: absolute;
  top: 48px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(204,26,26,0.4), transparent);
  z-index: 0;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid rgba(204,26,26,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 0 22px rgba(204,26,26,0.15);
  position: relative;
  transition: box-shadow var(--transition);
}
.step-item:hover .step-circle { box-shadow: 0 0 30px rgba(204,26,26,0.3); }
.step-circle svg { width: 40px; height: 40px; color: var(--primary); }
.step-num {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
}
.step-item h4 { font-size: 20px; color: #fff; margin-bottom: 10px; }
.step-item p { font-size: 13px; color: var(--muted); max-width: 200px; font-family: var(--font-sans); font-weight: 400; letter-spacing: 0; }

/* ===============================
   WHY READERS CHOOSE
================================ */
#why-us {
  padding: 80px 0;
  background: var(--card);
  position: relative;
  overflow: hidden;
}
#why-us::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(204,26,26,0.05);
  filter: blur(120px);
  pointer-events: none;
}
#why-us::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(204,26,26,0.05);
  filter: blur(120px);
  pointer-events: none;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  position: relative;
  z-index: 1;
}

.feature-card {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: border-color var(--transition);
}
.feature-card:hover { border-color: rgba(204,26,26,0.3); }
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--primary-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform var(--transition);
}
.feature-card:hover .feature-icon { transform: scale(1.1); }
.feature-icon svg { width: 24px; height: 24px; color: var(--primary); }
.feature-card h4 { font-size: 17px; color: #fff; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--muted); line-height: 1.65; font-family: var(--font-sans); font-weight: 400; letter-spacing: 0; }

/* ===============================
   FEATURED COLLECTIONS
================================ */
#collections {
  padding: 80px 0;
}

.collections-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}

.collection-card {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color var(--transition);
}
.collection-card:hover { border-color: rgba(204,26,26,0.2); }
.collection-info { flex: 1; }
.collection-info h4 {
  font-size: 19px;
  color: #fff;
  margin-bottom: 8px;
  transition: color var(--transition);
}
.collection-card:hover .collection-info h4 { color: var(--primary); }
.collection-info p { font-size: 13px; color: var(--muted); margin-bottom: 16px; font-family: var(--font-sans); font-weight: 400; letter-spacing: 0; }

.collection-covers {
  display: flex;
  flex-direction: row;
  gap: -16px;
}
.collection-covers img {
  width: 60px;
  height: 84px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid var(--card);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  margin-left: -16px;
  transform: rotate(-5deg);
  transition: transform var(--transition), z-index var(--transition);
}
.collection-covers img:first-child { margin-left: 0; z-index: 3; }
.collection-covers img:nth-child(2) { z-index: 2; }
.collection-covers img:last-child { z-index: 1; }
.collection-covers img:hover { transform: rotate(0deg) scale(1.1); z-index: 10; }

/* ===============================
   BLOG PREVIEW
================================ */
#blog {
  padding: 80px 0;
  background: rgba(255,255,255,0.018);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.blog-card {
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color var(--transition);
}
.blog-card:hover { border-color: rgba(204,26,26,0.3); }
.blog-date { font-size: 12px; font-weight: 600; color: var(--primary); margin-bottom: 12px; }
.blog-card h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  letter-spacing: 0;
  line-height: 1.4;
  margin-bottom: 12px;
  flex: 1;
  transition: color var(--transition);
}
.blog-card:hover h4 { color: var(--primary); }
.blog-card p { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }
.blog-card .btn-link { margin-top: auto; }

/* ===============================
   FAQ
================================ */
#faq {
  padding: 80px 0;
}
.faq-inner {
  max-width: 760px;
  margin: 0 auto;
}
.faq-intro { text-align: center; margin-bottom: 48px; }
.faq-intro h2 { font-size: clamp(26px, 3vw, 40px); color: #fff; margin-bottom: 12px; }
.faq-intro p { color: var(--muted); font-family: var(--font-sans); font-weight: 400; letter-spacing: 0; }

.accordion { display: flex; flex-direction: column; gap: 12px; }
.accordion-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition);
}
.accordion-item.open { border-color: rgba(204,26,26,0.3); }

.accordion-trigger {
  width: 100%;
  padding: 20px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  transition: color var(--transition);
}
.accordion-trigger:hover { color: var(--primary); }
.accordion-trigger svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.3s ease, color 0.3s ease;
}
.accordion-item.open .accordion-trigger { color: var(--primary); }
.accordion-item.open .accordion-trigger svg { transform: rotate(180deg); color: var(--primary); }
.accordion-content {
  display: none;
  padding: 0 20px 20px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}
.accordion-item.open .accordion-content { display: block; }

/* ===============================
   CTA BANNER
================================ */
#cta-banner {
  padding: 96px 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(204,26,26,0.2);
  text-align: center;
}
#cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(204,26,26,0.04);
}
#cta-banner .cta-content { position: relative; z-index: 1; }
#cta-banner h2 {
  font-size: clamp(34px, 5vw, 56px);
  color: #fff;
  margin-bottom: 20px;
}
#cta-banner p {
  font-size: 18px;
  color: #a1a1aa;
  max-width: 640px;
  margin: 0 auto 40px;
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 0;
}
#cta-banner .btn { font-size: 19px; padding: 20px 48px; }
#cta-banner .btn:hover { transform: scale(1.04); }

/* ===============================
   FOOTER
================================ */
#site-footer {
  background: var(--card);
  padding: 80px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand .site-logo { margin-bottom: 20px; }
.footer-brand p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 360px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}
.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color var(--transition), background var(--transition), border-color var(--transition);
  text-decoration: none;
}
.social-btn:hover {
  color: var(--primary);
  background: var(--primary-subtle);
  border-color: rgba(204,26,26,0.3);
}
.social-btn svg { width: 16px; height: 16px; }

.footer-col h4 {
  font-size: 15px;
  color: #fff;
  margin-bottom: 20px;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col ul a {
  font-size: 13px;
  color: var(--muted);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--primary); }

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 12px;
  color: #52525b;
}
.footer-bottom p:last-child { text-align: right; max-width: 480px; }

/* ===============================
   SECTION CENTRED HEADER
================================ */
.section-center {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-center h2 { font-size: clamp(26px, 3vw, 40px); color: #fff; margin-bottom: 12px; }
.section-center p { color: var(--muted); font-family: var(--font-sans); font-weight: 400; letter-spacing: 0; font-size: 16px; }

/* ===============================
   RESPONSIVE — TABLET (≤1024px)
================================ */
@media (max-width: 1024px) {
  .manga-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .updates-genres-grid { grid-template-columns: 1fr; gap: 60px; }
  .how-to-steps { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .how-to-steps::before { display: none; }
}

/* ===============================
   RESPONSIVE — MOBILE (≤768px)
================================ */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .search-wrap { display: none; }
  .header-actions .btn-primary { display: none; }
  .mobile-toggle { display: flex; }

  #hero { padding: 120px 0 60px; }
  .hero-ctas .btn { width: 100%; }

  .manga-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .section-header { flex-direction: column; align-items: flex-start; }

  .features-grid { grid-template-columns: 1fr; }
  .collections-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom p:last-child { text-align: center; }

  .how-to-steps { grid-template-columns: 1fr 1fr; }
  .genres-grid { grid-template-columns: repeat(2, 1fr); }

  .collection-card { flex-direction: column; align-items: flex-start; }
  .collection-covers { align-self: flex-start; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .manga-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .how-to-steps { grid-template-columns: 1fr; }
}

/* ===============================
   WORDPRESS DEFAULT CLEANUP
================================ */
.site-content { padding-top: 0; }
#page { background: var(--bg); }
.hentry { margin: 0; }
img.wp-smiley { display: inline; }

/* ===============================
   LINK CARD RESETS
   (manga-card and update-row are <a> tags)
================================ */
a.manga-card,
a.manga-card:visited,
a.manga-card:hover {
  text-decoration: none;
  color: inherit;
}
a.update-row,
a.update-row:visited,
a.update-row:hover {
  text-decoration: none;
  color: inherit;
}

/* Image placeholder gradient background */
.manga-card-cover {
  background: linear-gradient(135deg, #13131a 0%, #1a1025 100%);
}
.update-row img {
  background: linear-gradient(135deg, #13131a 0%, #1a1025 100%);
}

/* Mobile: update-row as <a> display fix */
@media (max-width: 600px) {
  a.update-row { display: flex; }
}
