/*
Theme Name: MangaFar
Theme URI: https://mangafar.local
Description: Novel & Manga Reading Platform - Custom Theme
Author: Halil
Author URI: https://mangafar.local
Template: generatepress
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mangafar
Domain Path: /languages
*/

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

*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  color: var(--text);
}

article, aside, figcaption, figure, footer, header, hgroup, main, nav, section {
  display: block;
}

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

button, input, textarea, select {
  font-family: inherit;
  border: none;
  background: none;
}

/* ===== WORDPRESS OVERRIDES ===== */
.wp-site-blocks,
.wp-block-template-part {
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
}

.entry-content {
  background: var(--bg);
  color: var(--text);
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.widget-area,
.sidebar,
.is-right-sidebar,
.is-left-sidebar {
  display: none;
}

.site,
#page {
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
}

main {
  background: var(--bg);
  min-height: calc(100vh - 200px);
  width: 100%;
  margin: 0;
  padding: 0;
}

.site-main {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  background: var(--bg);
  padding: 0;
}

.page-header,
.sidebar .widget,
.site-main > * {
  margin-bottom: 20px;
}

/* ===== ROOT VARIABLES ===== */
:root {
  /* Dark Mode (Default) */
  --bg-dark: #0f0a1a;
  --bg: #1a1428;
  --bg-light: #2a1f3d;
  --text: #ffffff;
  --text-muted: #c9b5d8;
  --highlight: #7a5aac;
  --border: #3d2e52;
  --border-muted: #4d3e62;
  --primary: #c9b5d8;
  --secondary: #f4b860;
  --danger: #ff6b6b;
  --warning: #ffa726;
  --success: #4caf50;
  --info: #64b5f6;
  --radius: 8px;
  --transition: all 0.2s ease;
}

body.light {
  --bg-dark: #f5f5f5;
  --bg: #ffffff;
  --bg-light: #f9f9f9;
  --text: #1a1428;
  --text-muted: #666666;
  --highlight: #e0cef5;
  --border: #e0e0e0;
  --border-muted: #f0f0f0;
  --primary: #7a5aac;
  --secondary: #ff9800;
}

/* ===== TYPOGRAPHY ===== */
body {
  background-color: var(--bg);
  color: var(--text);
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

p {
  margin: 0 0 1rem 0;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--highlight);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
}

/* ===== HEADER / NAVBAR ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-muted);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar {
  padding: 1rem 0;
}

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

.navbar-brand a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.navbar-brand a:hover {
  color: var(--primary);
}

.navbar-menu {
  flex: 1;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu a:hover {
  color: var(--primary);
}

.nav-menu a:hover::after {
  width: 100%;
}

.navbar-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar-icon {
  background: none !important;
  border: none !important;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: all 0.3s ease;
  padding: 0 !important;
  margin: 0 !important;
  position: relative;
  border-radius: 50%;
}

.navbar-icon:hover {
  color: var(--primary);
  transform: scale(1.15) rotate(5deg);
  background: rgba(201, 181, 216, 0.1) !important;
}

.navbar-icon:active {
  transform: scale(0.95);
}

.navbar-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.theme-toggle .sun-icon {
  display: block;
}

.theme-toggle .moon-icon {
  display: none;
}

body.light .theme-toggle .sun-icon {
  display: none;
}

body.light .theme-toggle .moon-icon {
  display: block;
}

.navbar-user {
  position: relative;
}

.user-menu-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: var(--transition);
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 0.9rem;
}

.user-menu-toggle:hover {
  background: var(--highlight);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: block;
  border: 2px solid var(--border);
}

.user-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  display: none;
}

.user-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 200px;
  margin-top: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  overflow: hidden;
  flex-direction: column;
}

.user-dropdown-menu.active {
  display: flex;
}

.user-dropdown-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.user-dropdown-menu a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(201, 181, 216, 0.1);
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.user-dropdown-menu a:hover::before {
  left: 0;
}

.user-dropdown-menu a:last-child {
  border-bottom: none;
}

.user-dropdown-menu a:hover {
  background: transparent;
  color: var(--primary);
  padding-left: 1.25rem;
  transform: translateX(4px);
}

.user-dropdown-menu .admin-link {
  background: transparent;
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.85rem;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.user-dropdown-menu .admin-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(244, 184, 96, 0.15);
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.user-dropdown-menu .admin-link:hover {
  color: var(--secondary);
  background: transparent;
  transform: translateX(6px);
  text-shadow: 0 0 8px rgba(244, 184, 96, 0.3);
}

.user-dropdown-menu .admin-link:hover::before {
  left: 0;
}

.btn-login {
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: var(--bg-dark);
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-login::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background: var(--secondary);
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.btn-login:hover {
  background: var(--highlight);
  transform: translateY(-2px);
}

.btn-login:hover::before {
  left: 0;
}

.user-menu-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius);
}

.user-menu-toggle:hover {
  background-color: var(--bg);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.btn-login {
  background-color: var(--primary);
  color: var(--bg-dark);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

.btn-login:hover {
  background-color: var(--highlight);
  text-decoration: none;
}

.navbar-toggler {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
  display: block;
}

.search-bar-container {
  display: none;
  background: var(--bg-light);
  border-top: 1px solid var(--border-muted);
  padding: 1rem;
}

.search-bar-container.active {
  display: block;
}

.search-form-mangafar {
  max-width: 1400px;
  margin: 0 auto;
}

.search-form-mangafar input[type="search"] {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  font-size: 1rem;
}

/* ===== MAIN CONTENT ===== */
.site {
  background: var(--bg);
  color: var(--text);
}

#page {
  background: var(--bg);
  color: var(--text);
}

main {
  background: var(--bg);
  min-height: calc(100vh - 200px);
  width: 100%;
}

.site-main {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  background: var(--bg);
}

/* ===== HERO SECTION ===== */
.hero-section {
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg) 100%);
  padding: 5rem 1.5rem;
  text-align: center;
  margin-bottom: 3rem;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-button {
  display: inline-block;
  background-color: var(--primary);
  color: var(--bg-dark);
  padding: 1rem 2.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(201, 181, 216, 0.3);
  z-index: 1;
}

.hero-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease-out, height 0.6s ease-out;
  z-index: 0;
  pointer-events: none;
}

.hero-button:hover {
  background-color: var(--highlight);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(201, 181, 216, 0.5);
  text-decoration: none;
}

.hero-button:hover::before {
  width: 300px;
  height: 300px;
}

.hero-button:active {
  transform: translateY(-1px);
}

/* ===== SECTIONS ===== */
.section-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.popular-today-section,
.latest-novels-section,
.most-popular-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-muted);
}

.popular-today-section:last-of-type,
.latest-novels-section:last-of-type,
.most-popular-section:last-of-type {
  border-bottom: none;
}

/* ===== GRID LAYOUT ===== */
.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2rem;
}

/* ===== CAROUSEL ===== */
.carousel-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  flex: 1;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0;
}

/* Hide scrollbar */
.carousel::-webkit-scrollbar {
  display: none;
}

.carousel {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Carousel Arrow Buttons */
.carousel-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(201, 181, 216, 0.15);
  border: 1px solid rgba(201, 181, 216, 0.3);
  color: var(--primary);
  font-size: 28px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.carousel-arrow:hover {
  background: rgba(201, 181, 216, 0.3);
  border-color: rgba(201, 181, 216, 0.5);
  transform: scale(1.1);
}

.carousel-arrow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: rgba(201, 181, 216, 0.08);
}

/* Carousel Cards */
.carousel-card {
  flex: 0 0 calc(20% - 1.2rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  scroll-snap-align: start;
  user-select: none;
  perspective: 1200px;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.carousel-card:hover {
  transform: rotateY(-25deg) rotateX(8deg) translateZ(40px) scale(1.08);
}

.carousel-image {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transform-style: preserve-3d;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.carousel-card:hover .carousel-image {
  box-shadow: -20px 20px 40px rgba(0, 0, 0, 0.6), 
              inset 3px 0 12px rgba(201, 181, 216, 0.3);
}

.carousel-image::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(201, 181, 216, 0.25) 0%,
    rgba(201, 181, 216, 0.08) 4%,
    rgba(201, 181, 216, 0.02) 8%,
    transparent 12%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
}

.carousel-card:hover .carousel-image::before {
  opacity: 1;
}

.carousel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.carousel-image:hover img {
  transform: scale(1.08);
}

.no-image {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

.carousel-title {
  padding: 0 0.25rem;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s;
}

.carousel-card:hover .carousel-title {
  opacity: 1;
  transform: translateY(0);
}

.carousel-title a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.carousel-title a:hover {
  color: var(--primary);
}

/* Section Styles */
.popular-week-section,
.popular-month-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-muted);
}
.series-grid.popular-grid {
  display: none;
}

/* Hide scrollbar for carousel */
.series-grid.popular-grid::-webkit-scrollbar {
  display: none;
}

.series-grid.popular-grid::-webkit-scrollbar-track {
  display: none;
}

.series-grid.popular-grid {
  display: none;
}

/* ===== SERIES CARD ===== */
.series-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.series-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(201, 181, 216, 0.08), transparent);
  transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: -1;
}

.series-card:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 24px rgba(201, 181, 216, 0.2);
  transform: translateY(-8px) scale(1.02);
}

.series-card:hover::after {
  left: 100%;
}

.series-image-wrapper {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  min-height: 200px;
}

.series-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.series-card:hover .series-image {
  transform: scale(1.05);
}

.series-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
  position: relative;
  z-index: 2;
}

.series-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.series-title a {
  color: var(--text);
  text-decoration: none;
}

.series-title a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.series-badges-top {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.series-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.series-badge {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  background: var(--secondary);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  white-space: nowrap;
}

.series-badge.type-badge {
  background: linear-gradient(135deg, var(--primary), #ff6b9d);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
  font-weight: 600;
}

.series-count {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-left: auto;
}

/* ===== LIST LAYOUT ===== */
.latest-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.series-list-item {
  display: flex;
  gap: 1.25rem;
  padding: 1rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.series-list-item:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.series-list-thumbnail {
  width: 100px;
  height: 140px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg);
}

.series-list-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.series-list-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.series-list-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.series-list-title a {
  color: var(--text);
  text-decoration: none;
}

.series-list-title a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.latest-chapters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.chapter-link {
  color: var(--primary);
  font-size: 0.9rem;
  white-space: nowrap;
  text-decoration: none;
}

.chapter-link:hover {
  color: var(--highlight);
  text-decoration: underline;
}

.chapter-date {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ===== MOST POPULAR ===== */
.most-popular-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.popular-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-light);
  border-left: 3px solid var(--secondary);
  border-radius: 4px;
  transition: var(--transition);
}

.popular-item:hover {
  background: var(--highlight);
  border-left-color: var(--primary);
}

.rank-number {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--secondary);
  min-width: 2rem;
  text-align: center;
}

.series-link {
  color: var(--text);
  flex: 1;
  font-weight: 500;
  text-decoration: none;
}

.series-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-muted);
  color: var(--text-muted);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  flex: 1;
}

.footer-title {
  color: var(--text);
  font-size: 1.5rem;
  margin: 0 0 0.5rem 0;
}

.footer-description {
  color: var(--text-muted);
  margin: 0;
  max-width: 400px;
  font-size: 0.9rem;
}

.footer-middle {
  text-align: center;
  margin-bottom: 2rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.site-info p {
  margin: 0.25rem 0;
  font-size: 0.85rem;
}

.site-info strong {
  color: var(--text);
}

.site-version {
  color: var(--text-muted);
  margin-left: 0.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .navbar-container {
  gap: 2rem;
  }

  .nav-menu {
    gap: 1rem;
  }

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

  .section-header h2 {
    font-size: 1.75rem;
  }

  .series-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

@media (max-width: 768px) {
  .navbar-menu {
    display: none;
  }

  .navbar-toggler {
    display: flex;
  }

  .navbar-container {
    padding: 0 1rem;
  }

  .hero-section {
    padding: 3rem 1rem;
  }

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

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

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .series-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 2rem;
  }

  .section-container {
    padding: 0 1rem;
  }

  .series-list-item {
    flex-direction: column;
  }

  .series-list-thumbnail {
    width: 100%;
    height: 150px;
  }

  .latest-chapters {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-top {
    flex-direction: column;
  }

  .popular-today-section,
  .latest-novels-section,
  .most-popular-section {
    padding: 2rem 0;
  }
}

@media (max-width: 480px) {
  .navbar-brand a {
    font-size: 1.2rem;
  }

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

  .section-header h2 {
    font-size: 1.5rem;
  }

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

  .series-card {
    border-radius: 4px;
  }

  .navbar-icons {
    gap: 0.5rem;
  }
}

/* ===== SERIES DETAIL PAGE ===== */
.series-header-banner {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  margin-bottom: -100px;
}

.banner-background {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(5px) brightness(0.5);
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, var(--bg), transparent);
}

.series-info-section {
  position: relative;
  z-index: 10;
  background: var(--bg);
  padding: 2rem 0;
}

.series-info-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  background: var(--bg-light);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.series-cover {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.series-cover img,
.series-cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.series-info-card:hover .series-cover {
  transform: scale(1.05);
}

.series-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.series-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.info-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--primary);
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.info-content {
  display: flex;
  flex-direction: column;
}

.info-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

/* ===== CHAPTER STYLES ===== */
.chapters-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
}

.chapter-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  animation: slideUp 0.5s ease-out forwards;
  opacity: 0;
}

.chapter-item:hover {
  border-color: var(--primary);
  background: var(--bg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.chapter-thumbnail {
  width: 120px;
  height: 160px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg);
}

.chapter-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chapter-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chapter-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.chapter-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.chapter-title a {
  color: var(--text);
  text-decoration: none;
}

.chapter-title a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.chapter-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.chapter-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.chapter-rating,
.chapter-cost,
.chapter-comments {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.badge-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: linear-gradient(135deg, var(--primary), #ff9800);
  color: #fff;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.badge-rating svg {
  width: 16px;
  height: 16px;
}

.badge-rating strong {
  font-weight: 700;
}

.rating-count {
  font-size: 0.8rem;
  opacity: 0.9;
}

.badge-free {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: var(--secondary);
  color: #000;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-paid {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: var(--highlight);
  color: #000;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}

.badge-paid svg {
  width: 16px;
  height: 16px;
}

.chapter-comments {
  color: var(--text-muted);
}

.chapter-comments svg {
  width: 16px;
  height: 16px;
}

.series-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.btn-read {
  background-color: var(--primary);
  color: var(--bg-dark);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  display: inline-block;
  flex: 1;
  text-align: center;
  min-width: 150px;
  transition: var(--transition);
  text-decoration: none;
}

.btn-read:hover {
  background-color: var(--highlight);
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-bookmark {
  background-color: var(--bg);
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-bookmark:hover {
  background-color: var(--primary);
  color: var(--bg-dark);
}

.btn-bookmark svg {
  width: 20px;
  height: 20px;
}

.btn-bookmark.bookmarked {
  background-color: var(--primary);
  color: var(--bg-dark);
  border-color: var(--primary);
}

.series-rating-count,
.series-favorites-count {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.series-rating-count svg,
.series-favorites-count svg {
  color: var(--secondary);
}

.rating-num,
.favorite-num {
  font-weight: 600;
  color: var(--text);
}

/* ===== ARCHIVE PAGE ===== */
.archive-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--highlight) 100%);
  color: var(--bg-dark);
  padding: 2rem 1rem;
  margin-bottom: 2rem;
}

.archive-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.archive-description {
  font-size: 1.1rem;
  margin: 0;
  opacity: 0.95;
}

.series-archive-container {
  display: block;
  padding: 1rem 0;
}

.archive-sidebar {
  display: flex;
  flex-direction: column;
}

.archive-main {
  display: flex;
  gap: 2rem;
}

.archive-sidebar {
  flex: 0 0 280px;
}

.archive-content {
  flex: 1;
  min-width: 0;
}

.filters-widget {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: sticky;
  top: 100px;
}

.filters-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.filter-icon {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.filters-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.filter-label {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  transition: color 0.2s ease;
}

.filter-label:hover {
  color: var(--primary);
}

/* Search Input */
.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrapper svg {
  position: absolute;
  left: 0.75rem;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.filter-search {
  width: 100%;
  padding: 0.75rem 0.75rem 0.75rem 2.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.filter-search:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(201, 181, 216, 0.1);
  outline: none;
}

.filter-search::placeholder {
  color: var(--text-muted);
}

/* Select Dropdown */
.select-wrapper {
  position: relative;
}

.filter-select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
  cursor: pointer;
  appearance: none;
  padding-right: 2rem;
  transition: all 0.2s ease;
}

.filter-select:hover {
  border-color: var(--primary);
}

.filter-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(201, 181, 216, 0.1);
  outline: none;
}

.select-wrapper::after {
  content: '';
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--primary);
  pointer-events: none;
}

/* Collapsible Filter Group */
.collapsible-group {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.collapsible-group:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.collapsible-btn {
  width: 100%;
  padding: 0;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.collapsible-btn:hover {
  color: var(--primary);
}

.collapsible-btn .chevron {
  width: 18px;
  height: 18px;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.collapsible-btn.collapsed .chevron {
  transform: rotate(-90deg);
}

.collapsible-content {
  list-style: none;
  margin: 0.75rem 0 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 500px;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.collapsible-content.collapsed {
  max-height: 0;
  margin: 0;
  padding: 0;
}

.filter-list li {
  display: flex;
}

.filter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text);
  transition: color 0.2s ease;
}

.filter-checkbox-label:hover {
  color: var(--primary);
}

.filter-checkbox {
  display: none;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  position: relative;
}

.filter-checkbox:checked + .checkbox-custom {
  background: var(--primary);
  border-color: var(--primary);
}

.filter-checkbox:checked + .checkbox-custom::after {
  content: '✓';
  color: var(--bg-dark);
  font-size: 12px;
  font-weight: bold;
}

/* Filter Actions */
.filter-actions {
  display: flex;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.filter-actions .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  flex: 1;
}

.filter-actions .btn svg {
  width: 16px;
  height: 16px;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--bg-dark);
  width: 100%;
}

.btn-primary:hover {
  background-color: var(--highlight);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201, 181, 216, 0.2);
}

.btn-secondary {
  background-color: var(--bg);
  color: var(--primary);
  border: 2px solid var(--primary);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  gap: 0.5rem;
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--bg-dark);
  text-decoration: none;
}

.archive-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.results-info {
  padding: 1rem 1.5rem;
  background: var(--bg-light);
  border-left: 4px solid var(--primary);
  border-radius: 6px;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

/* 5-Column Grid */
.grid-5-columns {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.no-results-container {
  grid-column: 1 / -1;
}

.no-results {
  padding: 3rem 2rem;
  text-align: center;
  background: var(--bg-light);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Modern Pagination */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pagination-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-list li {
  display: inline-flex;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-light);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.pagination .page-numbers:hover {
  background: var(--primary);
  color: var(--bg-dark);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201, 181, 216, 0.2);
}

.pagination .page-numbers.current {
  background: var(--primary);
  color: var(--bg-dark);
  border-color: var(--primary);
  font-weight: 700;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
  min-width: auto;
  padding: 0 0.75rem;
}

/* Responsive Archive Grid */
@media (max-width: 1600px) {
  .grid-5-columns {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1024px) {
  .grid-5-columns {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .archive-main {
    flex-direction: column;
  }
  
  .filters-widget {
    position: relative;
    top: 0;
    order: 2;
  }
  
  .archive-content {
    order: 1;
  }
  
  .grid-5-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .filters-title {
    font-size: 1rem;
  }
  
  .collapsible-btn {
    font-size: 0.85rem;
  }
  
  .filter-list li,
  .filter-checkbox-label {
    font-size: 0.85rem;
  }
  
  .pagination .page-numbers {
    min-width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .grid-5-columns {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .results-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .results-info {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  
  .filters-widget {
    padding: 1rem;
  }
  
  .filter-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .filter-actions .btn {
    padding: 0.6rem 1rem;
  }
  
  .pagination-list {
    gap: 0.25rem;
  }
  
  .pagination .page-numbers {
    min-width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--primary);
  color: var(--bg-dark);
  border-color: var(--primary);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .series-grid,
  .archive-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }

  .section-container {
    gap: 1.5rem;
  }

  .navbar-container {
  gap: 2rem;
  }

  .series-info-card {
    grid-template-columns: 150px 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .navbar-brand h1 {
    font-size: 1.3rem;
  }

  .navbar-menu {
    display: none;
  }

  .navbar-toggler {
    display: flex;
  }

  .carousel-card {
    flex: 0 0 calc(33.333% - 1rem);
  }

  .series-archive-container {
    grid-template-columns: 1fr;
  }

  .filters-widget {
    position: relative;
    top: auto;
  }

  .archive-header {
    padding: 1.5rem 1rem;
  }

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

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

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

  .section-container {
    padding: 0 1rem;
    gap: 1rem;
  }

  .series-grid.archive-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
  }

  .series-info-grid {
    grid-template-columns: 1fr;
  }

  .series-list-item {
    flex-direction: column;
  }

  .series-list-thumbnail {
    width: 100%;
    height: 150px;
  }

  .latest-chapters {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-top {
    flex-direction: column;
  }

  .series-info-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

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

  .chapter-thumbnail {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  :root {
    --radius: 6px;
  }

  .carousel-card {
    flex: 0 0 calc(50% - 0.75rem);
  }

  .navbar {
    height: 50px;
    padding: 0 0.5rem;
  }

  .navbar-brand h1 {
    font-size: 1rem;
    margin: 0;
  }

  .navbar-icons {
    gap: 0.5rem;
  }

  .navbar-icon {
    width: 20px;
    height: 20px;
  }

  .section-container {
    padding: 1rem;
    gap: 1rem;
  }

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

  .archive-header {
    padding: 1rem 0.75rem;
    margin-bottom: 1rem;
  }

  .archive-title {
    font-size: 1.5rem;
  }

  .archive-description {
    font-size: 0.95rem;
  }

  .filters-widget {
    padding: 1rem;
  }

  .filters-title {
    font-size: 1rem;
  }

  .filter-group h4 {
    font-size: 0.85rem;
  }

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

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

  .series-info-card {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .series-cover {
    aspect-ratio: 3/4;
    height: 200px;
  }

  .series-info-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1rem;
  }

  .series-actions {
    flex-direction: column;
  }

  .btn-read,
  .btn-bookmark {
    width: 100%;
    padding: 0.6rem 1rem;
  }

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

  .section-header h2 {
    font-size: 1.3rem;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .pagination {
    gap: 0.25rem;
  }

  .pagination .page-numbers {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }

  .tab-link {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .series-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .series-rating-count,
  .series-favorites-count {
    width: 100%;
    justify-content: center;
  }

  .chapter-item {
    flex-direction: column;
  }

  .chapter-thumbnail {
    width: 100%;
    height: 180px;
  }

  .chapters-list {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* ===== TABS NAVIGATION ===== */
.tabs-container {
  margin-top: 2rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

.tabs-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 2px solid var(--border);
  background: var(--bg-light);
}

.tab-item {
  margin: 0;
  padding: 0;
  border-right: 1px solid var(--border);
}

.tab-item:last-child {
  border-right: none;
}

.tab-link {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 3px solid transparent;
  position: relative;
  overflow: hidden;
}

.tab-link::before {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--primary);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-link:hover {
  color: var(--text);
  background: var(--bg);
}

.tab-link:hover::before {
  width: 100%;
}

.tab-item.active .tab-link {
  color: var(--primary);
  background: var(--bg);
}

.tab-item.active .tab-link::before {
  width: 100%;
  bottom: -3px;
  background: var(--primary);
}

.tab-pane {
  display: none;
  padding: 2rem;
  animation: fadeIn 0.3s ease-in;
}

.tab-pane.active {
  display: block;
}

.series-tabs-section {
  padding: 2rem 0;
}

/* ===== SEARCH BAR & DROPDOWN ===== */
.search-bar-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 4rem;
  z-index: 999;
  animation: fadeIn 0.2s ease-out;
}

.search-bar {
  width: 90%;
  max-width: 600px;
  background: var(--bg-light);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-wrapper {
  position: relative;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.search-input {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition);
  outline: none;
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(201, 181, 216, 0.1);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-clear {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.search-clear:hover {
  color: var(--primary);
}

.search-clear svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.search-results-dropdown {
  max-height: 400px;
  overflow-y: auto;
  background: var(--bg-light);
}

.search-results-content {
  padding: 1rem;
}

.search-result-item {
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  gap: 1rem;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  animation: slideInLeft 0.2s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.search-result-item:hover {
  background: var(--bg-light);
  border-color: var(--primary);
  transform: translateX(4px);
}

.search-result-thumbnail {
  width: 60px;
  height: 80px;
  border-radius: 4px;
  background: var(--border);
  overflow: hidden;
  flex-shrink: 0;
}

.search-result-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-content {
  flex: 1;
}

.search-result-title {
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.25rem 0;
  font-size: 0.95rem;
}

.search-result-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.search-result-type {
  padding: 0.25rem 0.5rem;
  background: var(--primary);
  color: #000;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.search-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.search-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.search-loading::after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* ===== ANIMATIONS & TRANSITIONS ===== */
/* Fade In Animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Slide Up Animation */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scale In Animation */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Widget Cards Entrance Animation */
.series-card,
.chapter-item,
.series-item {
  animation: slideUp 0.5s ease-out forwards;
  opacity: 0;
}

/* Stagger animation for multiple items */
.series-card:nth-child(1) { animation-delay: 0.1s; }
.series-card:nth-child(2) { animation-delay: 0.2s; }
.series-card:nth-child(3) { animation-delay: 0.3s; }
.series-card:nth-child(4) { animation-delay: 0.4s; }
.series-card:nth-child(5) { animation-delay: 0.5s; }
.series-card:nth-child(6) { animation-delay: 0.6s; }

.chapter-item:nth-child(1) { animation-delay: 0.1s; }
.chapter-item:nth-child(2) { animation-delay: 0.2s; }
.chapter-item:nth-child(3) { animation-delay: 0.3s; }
.chapter-item:nth-child(4) { animation-delay: 0.4s; }
.chapter-item:nth-child(5) { animation-delay: 0.5s; }

/* Series Card Hover Effect */
.series-card {
  transition: var(--transition);
}

.series-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(201, 181, 216, 0.2);
}

.chapter-item {
  transition: var(--transition);
}

.chapter-item:hover {
  transform: translateX(4px);
  background: var(--bg-light);
}

.hero-section {
  animation: fadeIn 0.6s ease-out;
}

.hero-content {
  animation: slideUp 0.7s ease-out 0.2s backwards;
}

.hero-content h1 {
  animation: slideUp 0.8s ease-out 0.4s backwards;
}

.hero-content p {
  animation: slideUp 0.8s ease-out 0.5s backwards;
}

.hero-buttons {
  animation: slideUp 0.8s ease-out 0.6s backwards;
}

h2 {
  animation: slideUp 0.5s ease-out;
}

button, .btn, [class*="btn-"] {
  transition: var(--transition);
  position: relative;
}

button:not(:disabled):hover, 
.btn:hover, 
[class*="btn-"]:hover {
  transform: translateY(-2px);
}

button:not(:disabled):active, 
.btn:active, 
[class*="btn-"]:active {
  transform: translateY(0);
}

.navbar-icon {
  transition: var(--transition);
}

.navbar-icon:hover {
  transform: rotate(10deg) scale(1.1);
}

.series-icon {
  transition: var(--transition);
}

.series-card:hover .series-icon {
  transform: scale(1.1) rotate(-5deg);
}

.filter-badge {
  animation: scaleIn 0.2s ease-out;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.loading {
  animation: spin 1s linear infinite;
}

/* ===== RESPONSIVE SEARCH BAR ===== */
@media (max-width: 768px) {
  .search-bar-container {
    padding-top: 2rem;
  }

  .search-bar {
    width: 95%;
    max-width: 100%;
  }

  .search-wrapper {
    padding: 1rem;
  }

  .search-input {
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .search-result-item {
    flex-direction: column;
    gap: 0.75rem;
  }

  .search-result-thumbnail {
    width: 100%;
    height: 100px;
  }

  .search-results-dropdown {
    max-height: 300px;
  }

  .search-result-title {
    font-size: 0.9rem;
  }

  .search-result-meta {
    font-size: 0.75rem;
  }
}

/* Mobile First - Extra Small Screens */
@media (max-width: 480px) {
  .search-bar-container {
    padding-top: 1.5rem;
    align-items: center;
    padding: 1.5rem;
  }

  .search-bar {
    width: 100%;
    max-width: 100%;
  }

  .search-wrapper {
    padding: 0.75rem;
  }

  .search-input {
    padding: 0.5rem;
    font-size: 16px;
  }

  .search-results-content {
    padding: 0.5rem;
  }

  .search-result-item {
    padding: 0.75rem;
    margin-bottom: 0.25rem;
  }

  .search-result-thumbnail {
    height: 80px;
  }

  .series-card:nth-child(1),
  .series-card:nth-child(2),
  .series-card:nth-child(3),
  .series-card:nth-child(4),
  .series-card:nth-child(5),
  .series-card:nth-child(6) {
    animation-delay: 0.05s;
  }

  .chapter-item:nth-child(1),
  .chapter-item:nth-child(2),
  .chapter-item:nth-child(3),
  .chapter-item:nth-child(4),
  .chapter-item:nth-child(5) {
    animation-delay: 0.05s;
  }
}

/* ============================================
 * SERIES CARD DISPLAY
 * ============================================ */

.series-card {
  background: var(--color-bg-secondary);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.series-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.series-card-link {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.series-image-wrapper {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg);
  flex-shrink: 0;
  position: relative;
  z-index: 5;
}

.series-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 4;
}

.series-card:hover .series-image {
  transform: scale(1.05);
}

/* Overlay effect on hover */
.series-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease-out;
  z-index: 10;
  pointer-events: none;
}

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

.series-read-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.series-read-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.series-info {
  padding: 1rem;
}

.series-badges-top {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.series-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.series-badge.type-badge {
  background: rgba(102, 126, 234, 0.15);
  color: #667eea;
}

.series-badge.status-badge {
  font-size: 0.7rem;
}

.series-badge.status-ongoing {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.series-badge.status-completed {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.series-badge.status-hiatus {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.series-title {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  line-height: 1.4;
}

.series-title a {
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.series-title a:hover {
  color: #667eea;
}

.series-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-top: 0.75rem;
}

.series-count {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* ============================================
 * CHAPTER LIST DISPLAY
 * ============================================ */

.manga-chapter-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.manga-chapter-item {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  animation: slideInLeft 0.6s ease-out forwards;
  opacity: 0;
}

.manga-chapter-item:nth-child(1) { animation-delay: 0.1s; }
.manga-chapter-item:nth-child(2) { animation-delay: 0.2s; }
.manga-chapter-item:nth-child(3) { animation-delay: 0.3s; }
.manga-chapter-item:nth-child(4) { animation-delay: 0.4s; }
.manga-chapter-item:nth-child(5) { animation-delay: 0.5s; }

.manga-chapter-item:hover {
  background: var(--color-bg-tertiary);
  border-color: #667eea;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.manga-chapter-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  color: var(--color-text-primary);
  text-decoration: none;
  gap: 1rem;
  transition: color 0.2s ease;
}

.manga-chapter-link:hover {
  color: #667eea;
}

.manga-chapter-number {
  font-weight: 700;
  font-size: 0.875rem;
  color: #667eea;
  min-width: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.manga-chapter-title {
  flex: 1;
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.manga-chapter-pages {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  white-space: nowrap;
  min-width: 80px;
  text-align: right;
}

/* ============================================
 * CHAPTER PAGES READER
 * ============================================ */

.chapter-pages-reader {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: 100%;
  align-items: center;
}

.page-wrapper {
  position: relative;
  width: 100%;
  max-width: 40% !important;
  background: var(--color-bg-secondary);
  border-radius: 0.5rem;
  overflow: visible;
  animation: fadeIn 0.4s ease-out;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  transition: max-width 0.3s ease;
}

.page-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
  transition: opacity 0.3s ease;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0;
}

.page-image:hover {
  opacity: 0.95;
}

/* ============================================
 * CHAPTER HEADER ICONS
 * ============================================ */

.title-icon,
.info-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5rem;
}

.title-icon {
  color: var(--secondary);
  opacity: 0.9;
}

.info-icon {
  color: var(--primary);
  opacity: 0.8;
}

/* ============================================
 * PAGE ZOOM SLIDER
 * ============================================ */

.page-zoom-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  margin: 0.75rem 0;
  transition: background 0.3s ease;
}

.page-zoom-slider:hover {
  background: var(--border-muted);
}

/* Webkit browsers (Chrome, Safari) */
.page-zoom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--secondary);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.page-zoom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Firefox */
.page-zoom-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--secondary);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.page-zoom-slider::-moz-range-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.zoom-value {
  float: right;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
}

.control-group small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================
 * CHAPTER READER RESPONSIVE
 * ============================================ */

@media (max-width: 1024px) {
  .chapter-pages-reader {
    gap: 1.5rem;
  }

  .page-wrapper {
    max-width: 50% !important;
  }
}

@media (max-width: 768px) {
  .chapter-pages-reader {
    gap: 1rem;
    padding: 0 1rem;
  }

  .page-wrapper {
    max-width: 70% !important;
    border-radius: 0.25rem;
  }

  .page-image {
    max-height: 100vh;
  }

  .reading-controls {
    margin: 1rem 0;
    padding: 1rem;
  }

  .btn-action {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .chapter-pages-reader {
    gap: 0.75rem;
    padding: 0 0.5rem;
  }

  .page-wrapper {
    max-width: 95% !important;
    border-radius: 0.15rem;
  }

  .page-image {
    max-height: 80vh;
  }

  .page-zoom-slider {
    height: 5px;
  }

  .page-zoom-slider::-webkit-slider-thumb {
    width: 14px;
    height: 14px;
  }

  .page-zoom-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
  }

  .reading-controls {
    padding: 0.75rem;
    margin: 0.75rem 0;
  }

  .btn-action {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
  }

  .control-group label {
    font-size: 0.85rem;
  }
}

/* ============================================
 * SERIES GRID DISPLAY
 * ============================================ */

.manga-series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
}

.manga-card {
  background: var(--color-bg-secondary);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.manga-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.manga-card-image {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-bottom: 133.33%;
}

.manga-card-image a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.manga-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.manga-card:hover .manga-cover {
  transform: scale(1.05);
}

.manga-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}

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

.manga-read-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.manga-read-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.manga-card-content {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.manga-card-title {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.manga-card-title a {
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.manga-card-title a:hover {
  color: #667eea;
}

.manga-card-badges {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.manga-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.manga-badge.type {
  background: rgba(102, 126, 234, 0.15);
  color: #667eea;
}

.manga-badge.status {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.manga-badge.status-completed {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.manga-badge.status-hiatus {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.manga-card-info {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.manga-chapters {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* ============================================
 * PAGINATION
 * ============================================ */

.manga-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.manga-pagination a,
.manga-pagination span {
  padding: 0.5rem 1rem;
  border-radius: 0.4rem;
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid var(--color-border);
}

.manga-pagination a:hover {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

.manga-pagination .current {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

/* ============================================
 * RESPONSIVE
 * ============================================ */

@media (max-width: 768px) {
  .manga-series-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }

  .manga-chapter-link {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .manga-chapter-title {
    white-space: normal;
  }

  .manga-chapter-pages {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .manga-series-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
  }

  .manga-card-content {
    padding: 0.75rem;
  }

  .manga-card-title {
    font-size: 0.9rem;
  }

  .manga-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
  }
}

/* ============================================
 * READING PAGE MODERNIZATION
 * ============================================ */

/* Reading Controls */
.reading-controls {
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.reading-controls h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 1.25rem 0;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.control-group:last-child {
  margin-bottom: 0;
}

.control-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.font-size-control {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem;
}

.font-size-control button {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.font-size-control button:hover {
  background: var(--primary);
  color: var(--bg);
  transform: scale(1.05);
}

.font-size-display {
  flex: 1;
  text-align: center;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.control-group select,
.control-group input {
  padding: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
}

.control-group select:hover,
.control-group input:hover {
  border-color: var(--primary);
  box-shadow: 0 0 8px rgba(201, 181, 216, 0.2);
}

.control-group select:focus,
.control-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(201, 181, 216, 0.3);
}

/* Reading Actions */
.reading-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  margin-top: 1.25rem;
}

.btn-action {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg) 100%);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-action::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(201, 181, 216, 0.3), transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease-out, height 0.5s ease-out;
  z-index: 0;
  pointer-events: none;
}

.btn-action:hover::before {
  width: 300px;
  height: 300px;
}

.btn-action svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
  transition: all 0.3s ease;
}

.btn-action:hover {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--primary) 0%, var(--highlight) 100%);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(201, 181, 216, 0.3);
}

.btn-action:hover svg {
  color: var(--bg);
}

.btn-action:active {
  transform: translateY(0);
}

.btn-action.bookmark {
  color: var(--secondary);
}

.btn-action.bookmark:hover {
  background: linear-gradient(135deg, var(--secondary) 0%, #ff9800 100%);
  color: #000;
}

.btn-action.bookmark svg {
  color: var(--secondary);
}

.btn-action.bookmark:hover svg {
  color: #000;
}

/* Comment Form */
.comment-form {
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.comment-form p {
  margin-bottom: 1.25rem;
}

.comment-form p:last-child {
  margin-bottom: 0;
}

.comment-form-comment,
.comment-form-cookies-consent {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.comment-form label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
  width: 100%;
  padding: 0.875rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.comment-form textarea::placeholder,
.comment-form input::placeholder {
  color: var(--text-muted);
}

.comment-form textarea:focus,
.comment-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(201, 181, 216, 0.3);
  background: var(--bg-light);
}

.comment-form textarea {
  resize: vertical;
  min-height: 120px;
}

.comment-form-cookies-consent {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}

.comment-form-cookies-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
  border-radius: 4px;
}

.comment-form-cookies-consent label {
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.9rem;
  cursor: pointer;
  margin: 0;
}

.form-submit {
  margin-top: 1.5rem !important;
  display: flex;
  gap: 1rem;
}

.comment-form .submit {
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--highlight) 100%);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comment-form .submit::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background: var(--secondary);
  transition: left 0.4s ease-out;
}

.comment-form .submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 181, 216, 0.4);
}

.comment-form .submit:hover::before {
  left: 0;
}

.comment-form .submit:active {
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .reading-controls {
    padding: 1.25rem;
    margin-bottom: 1rem;
  }

  .reading-actions {
    padding-top: 1rem;
    margin-top: 1rem;
  }

  .btn-action {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }

  .font-size-control button {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .comment-form {
    padding: 1.5rem;
    margin-top: 1.5rem;
  }

  .form-submit {
    flex-direction: column;
    gap: 0.75rem;
  }

  .comment-form .submit {
    width: 100%;
  }
}

/* ===== CAROUSEL CARD BOOK ANIMATION ===== */
@keyframes bookOpen {
  0% {
    transform: rotateY(0deg) rotateX(0deg) translateZ(0px);
  }
  100% {
    transform: rotateY(-15deg) rotateX(5deg) translateZ(20px);
  }
}

@keyframes bookClose {
  0% {
    transform: rotateY(-15deg) rotateX(5deg) translateZ(20px);
  }
  100% {
    transform: rotateY(0deg) rotateX(0deg) translateZ(0px);
  }
}

@keyframes shineFade {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
  }
}

/* Hareket sınırlaması - mobil/tablet'te animasyonları hafiflet */
@media (prefers-reduced-motion: reduce) {
  .carousel-card,
  .carousel-image,
  .carousel-title a {
    transition: none !important;
  }
  
  .carousel-card:hover {
    transform: none;
  }
  
  .carousel-card:hover .carousel-image {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }
}