/* ===================================================================
   LONEWOLF READER - MODERN CUSTOM STYLING
   Theme: Sleek Dark / AMOLED Pejat / Sepia Warm / Neon Crimson Accents
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;1,300;1,400&family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-serif: 'Merriweather', Georgia, serif;
  
  --color-primary: #E11D48;       /* Rose/Crimson */
  --color-primary-hover: #BE123C;
  --color-primary-glow: rgba(225, 29, 72, 0.35);
  
  --bg-dark: #0A0D14;
  --bg-card: #111726;
  --bg-card-hover: #172033;
  --border-dark: #1E293B;
  --text-muted: #94A3B8;
  
  --header-height: 4.25rem;
  --bottom-nav-height: 4rem;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-dark);
  color: #F8FAFC;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
}

/* Custom Smooth Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: #0A0D14;
}

::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Card Glow Effect on Hover */
.card-glow {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-glow:hover {
  transform: translateY(-4px);
  border-color: rgba(225, 29, 72, 0.4);
  box-shadow: 0 12px 28px -6px rgba(225, 29, 72, 0.25), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
}

/* Rank Badges */
.rank-badge {
  background: linear-gradient(135deg, #E11D48 0%, #BE123C 100%);
  color: white;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.5);
}

/* Glassmorphism Header */
.glass-header {
  background-color: rgba(10, 13, 20, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* Glassmorphism Mobile Bottom Nav */
.glass-bottom-nav {
  background-color: rgba(10, 13, 20, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Image Aspect Ratio */
.aspect-cover {
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
}

/* Line Clamp Utilities */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Novel Reader Themes */
.theme-dark {
  background-color: #0F172A !important;
  color: #E2E8F0 !important;
}

.theme-amoled {
  background-color: #000000 !important;
  color: #F1F5F9 !important;
}

.theme-sepia {
  background-color: #F8F1E5 !important;
  color: #2D241E !important;
}
.theme-sepia .text-muted-custom {
  color: #796658 !important;
}
.theme-sepia .card-custom {
  background-color: #ECE0D1 !important;
  border-color: #DFCAB2 !important;
}

.theme-light {
  background-color: #FFFFFF !important;
  color: #0F172A !important;
}
.theme-light .text-muted-custom {
  color: #64748B !important;
}
.theme-light .card-custom {
  background-color: #F1F5F9 !important;
  border-color: #E2E8F0 !important;
}

/* Webtoon Comic Mode Container */
.comic-webtoon-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

.comic-webtoon-container img {
  width: 100%;
  display: block;
  margin: 0;
  padding: 0;
  line-height: 0;
}

/* Animations */
@keyframes pulseGlow {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}

.animate-pulse-glow {
  animation: pulseGlow 3s infinite ease-in-out;
}

/* Hide scrollbar for category pills horizontal scroll */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ===================================================================
   FLAT MODERN CARD STYLES WITH TASTEFUL ORNAMENTS
   =================================================================== */

.card-flat-project {
  background-color: #0f172a;
  border: 1px solid #1e293b;
  border-top: 3px solid #f43f5e;
  border-radius: 1rem;
  transition: all 0.25s ease-in-out;
}
.card-flat-project:hover {
  border-color: #f43f5e;
  border-top-color: #fb7185;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px -4px rgba(244, 63, 94, 0.25);
}

.card-flat-popular {
  background-color: #0f172a;
  border: 1px solid #1e293b;
  border-top: 3px solid #f59e0b;
  border-radius: 1rem;
  transition: all 0.25s ease-in-out;
}
.card-flat-popular:hover {
  border-color: #f59e0b;
  border-top-color: #fbbf24;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px -4px rgba(245, 158, 11, 0.25);
}

.card-flat-novel {
  background-color: #0f172a;
  border: 1px solid #1e293b;
  border-top: 3px solid #6366f1;
  border-radius: 1rem;
  transition: all 0.25s ease-in-out;
}
.card-flat-novel:hover {
  border-color: #6366f1;
  border-top-color: #818cf8;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px -4px rgba(99, 102, 241, 0.25);
}



