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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #0a0a0a;
  color: #e0e0e0;
  line-height: 1.6;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */

/* --- Main Header Bar --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #0a0a0a;
  border-bottom: 1px solid #333;
  z-index: 1000;
  padding: 0;
  transform: translateY(0);
  transition: transform 0.5s ease-in-out;
}

.header.hide {
  transform: translateY(-100%);
}

.header-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 2rem;
}

.logo {
  flex-grow: 1;
  text-align: center;
  padding: 0 1rem;
  width: 50px;
}

.logo-img {
  height: 30px;
}

.header-controls-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* Icon Buttons */
#menuToggle, #searchIconToggle, #logout-btn, #themeToggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #e0e0e0;
    transition: color 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#menuToggle:hover, #searchIconToggle:hover, #logout-btn:hover, #themeToggle:hover {
    color: #ff6b35;
    transform: scale(1.1);
}

/* --- Search Dropdown --- */
.search-dropdown-container {
    padding: 0.5rem 2rem;
    background-color: #1a1a1a;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    display: none;
}
.search-dropdown-container.active {
    display: block;
}
.search-dropdown-container input {
    width: 100%;
    padding: 0.6rem 1rem;
    border-radius: 50px;
    border: 1px solid #ff6b35;
    background-color: #0a0a0a;
    color: #e0e0e0;
    font-size: 1rem;
    outline: none;
}
.search-bar { display: none !important; }

/* --- Nav Tabs --- */
.nav-tabs {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0.3rem 0;
  background-color: #000000;
  border-bottom: 1px solid #222;
}

.tab-btn {
  background: none;
  border: none;
  padding: 0.3rem 1.5rem;
  cursor: pointer;
  color: #e0e0e0;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-bottom: 3px solid transparent;
  transition: color 0.3s, border-bottom 0.3s;
}

.tab-btn:hover, .tab-btn.active {
  color: #ff6b35;
  border-bottom-color: #ff6b35;
}

/* =========================================
   ENHANCED MENU DRAWER
   ========================================= */

/* Backdrop overlay for menu */
.menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1050;
}

.menu-backdrop.active {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    opacity: 1;
    visibility: visible;
}

/* Enhanced Menu Drawer */
.menu-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
    padding-top: 0;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;
    border-right: 2px solid #ff6b35;
    box-shadow: 4px 0 30px rgba(0,0,0,0.8);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.menu-drawer.active {
    transform: translateX(0);
}

/* User Profile Section in Menu */
.menu-user-profile {
    background: linear-gradient(135deg, #ff6b35 0%, #ff4444 100%);
    padding: 2rem 1.5rem;
    display: none; /* Toggled via JS */
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    margin-top: 0;
}

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

.menu-user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.menu-user-info {
    flex: 1;
}

.menu-user-email {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    word-break: break-word;
}

.menu-user-status {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    margin-top: 2px;
}

/* Menu Header (when not signed in) */
.menu-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid #333;
    margin-top: 2rem; /* Space for close button */
}

.menu-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Menu Navigation */
.menu-nav {
    flex: 1;
    padding: 1rem 0;
}

.menu-drawer a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e0e0e0;
    padding: 1rem 1.5rem;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.menu-drawer a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: #ff6b35;
    transform: translateX(-4px);
    transition: transform 0.3s ease;
}

.menu-drawer a:hover::before {
    transform: translateX(0);
}

.menu-drawer a:hover {
    background: rgba(255, 107, 53, 0.1);
    color: #ff6b35;
    padding-left: 2rem;
}

/* Staggered animation for menu items */
.menu-drawer.active a {
    animation: slideInMenuItem 0.4s ease forwards;
    opacity: 0;
}

.menu-drawer.active a:nth-child(1) { animation-delay: 0.1s; }
.menu-drawer.active a:nth-child(2) { animation-delay: 0.15s; }
.menu-drawer.active a:nth-child(3) { animation-delay: 0.2s; }
.menu-drawer.active a:nth-child(4) { animation-delay: 0.25s; }

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

/* Enhanced Close Button */
#menuCloseBtn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #e0e0e0;
    z-index: 1200;
    border-radius: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

#menuCloseBtn:hover {
    background: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
    transform: rotate(90deg) scale(1.1);
}

#menuCloseBtn svg {
    width: 24px;
    height: 24px;
}

.menu-logout-btn {
    display: flex !important;
    align-items: center;
    gap: 12px;
    width: calc(100% - 3rem);
    margin: 1rem 1.5rem 2rem;
    padding: 0.9rem 1.2rem;
    background: linear-gradient(135deg, #ff6b35 0%, #ff4444 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.menu-logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
    background: linear-gradient(135deg, #ff4444 0%, #ff6b35 100%);
}

/* =========================================
   MAIN CONTENT LAYOUT
   ========================================= */
.container {
  padding: 7rem 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}
.tab-content.active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Enhanced Section Title */
.section-title {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 2.5rem;
  padding-bottom: 1.2rem;
  position: relative;
  color: #fff;
  letter-spacing: -0.5px;
  /* Removed old border-bottom */
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #ff6b35 0%, #ff8c42 100%);
  border-radius: 2px;
}

.section-title::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 90px;
  width: 20px;
  height: 4px;
  background: rgba(255, 107, 53, 0.3);
  border-radius: 2px;
}


/* =========================================
   ENHANCED NEWS TAB STYLES
   ========================================= */

/* Enhanced Carousel */
.carousel-container {
  position: relative;
  width: 100%;
  height: 550px;
  margin-bottom: 4rem;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* We need to keep .carousel-track for the JS logic to work, though not in the snippet */
.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

.carousel-slide {
  position: relative;
  overflow: hidden;
  /* Added for compatibility with track logic */
  width: 100%;
  min-width: 100%;
  height: 100%;
  flex-shrink: 0;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s ease-out;
}

.carousel-slide:hover .carousel-image {
  transform: scale(1.1);
}

.carousel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 40%, transparent 100%);
  padding: 3rem;
  color: #fff;
  transform: translateY(0);
  transition: transform 0.4s ease;
}

.carousel-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
  letter-spacing: -0.5px;
  line-height: 1.2;
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.carousel-description {
  font-size: 1.1rem;
  color: #e0e0e0;
  max-width: 700px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
  line-height: 1.6;
}

/* Enhanced Carousel Navigation */
.carousel-nav {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
  z-index: 10;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.8rem 1.2rem;
  border-radius: 50px;
  backdrop-filter: blur(10px);
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  padding: 0;
}

.carousel-dot:hover {
  background: rgba(255,255,255,0.8);
  transform: scale(1.2);
}

.carousel-dot.active {
  background: #ff6b35;
  width: 40px;
  border-radius: 6px;
  border-color: rgba(255, 255, 255, 0.3);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.2);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  backdrop-filter: blur(10px);
}

.carousel-arrow:hover {
  background: rgba(255, 107, 53, 0.9);
  border-color: #ff6b35;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
}

.carousel-arrow.prev { left: 2rem; }
.carousel-arrow.next { right: 2rem; }

/* Enhanced Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}

/* Enhanced Article Cards */
.article-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #151515 100%);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid #252525;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Animated gradient border */
.article-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(135deg, #ff6b35, #ff8c42, #ff6b35);
  background-size: 200% 200%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: borderFlow 3s linear infinite;
  pointer-events: none;
}

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

.article-card:hover::before {
  opacity: 1;
}

.article-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 60px rgba(255, 107, 53, 0.3);
  border-color: transparent;
}

/* Article Image Container */
.article-image-container {
  position: relative;
  overflow: hidden;
  height: 240px;
  background: #0a0a0a;
}

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

.article-card:hover .article-image {
  transform: scale(1.15);
}

/* Category Badge */
.article-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.95) 0%, rgba(255, 140, 66, 0.95) 100%);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
  z-index: 2;
}

/* Reading Time Badge */
.article-reading-time {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 2;
}

/* Article Content */
.article-content {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #fff;
  line-height: 1.4;
  letter-spacing: -0.3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.article-card:hover .article-title {
  color: #ff6b35;
}

.article-excerpt {
  color: #999;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

/* Article Meta */
.article-meta {
  color: #666;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #252525;
}

.article-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #888;
  font-weight: 500;
}

.article-date::before {
  content: '';
  font-size: 0.9rem;
}

.article-full {
  display: none;
  color: #bbb;
  font-size: 0.95rem;
  margin-top: 1rem;
  line-height: 1.7;
  animation: fadeIn 0.3s ease;
}
.article-card.expanded .article-full {
  display: block;
}
.article-card.expanded .article-excerpt {
  display: none;
}


/* Enhanced Buttons */
.read-more-btn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  color: #fff;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.read-more-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

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

.read-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.5);
}

/* Enhanced Share Button */
.share-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.share-btn:hover {
  background: rgba(255, 107, 53, 0.1);
  border-color: #ff6b35;
  color: #ff6b35;
  transform: translateY(-2px);
}

/* Featured Article Highlight */
.article-card.featured {
  grid-column: span 2;
}

.article-card.featured .article-image-container {
  height: 400px;
}

.article-card.featured .article-title {
  font-size: 2rem;
}

.article-card.featured .article-excerpt {
  font-size: 1.05rem;
  -webkit-line-clamp: 4;
}

/* Skeleton Loading Animation */
.article-card.skeleton {
  pointer-events: none;
}

.article-card.skeleton .article-image-container,
.article-card.skeleton .article-title,
.article-card.skeleton .article-excerpt {
  background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
  border-radius: 8px;
}

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


/* =========================================
   COMICS
   ========================================= */
.comics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}
.comic-card {
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
  cursor: pointer;
  border: 1px solid #2a2a2a;
  position: relative;
}

/* Apply same lift/shimmer to comics */
.comic-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.comic-card:hover::after {
    opacity: 1;
}

.comic-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 30px rgba(255, 107, 53, 0.3);
  border-color: #ff6b35;
}
.comic-cover {
  width: 100%;
  height: 380px;
  object-fit: cover;
}
.comic-info {
  padding: 1.5rem;
}
.download-btn {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
  padding: 0.7rem 1.5rem;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  border-radius: 6px; /* Matched rounding */
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
}
.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.3);
}

/* =========================================
   ENHANCED REVIEWS (ROTCHIRP)
   ========================================= */

.review-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #141414 100%);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2.5rem;
    border: 1px solid #2a2a2a;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35 0%, #ff8c42 50%, #ff6b35 100%);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.review-card:hover::before {
    opacity: 1;
}

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

.review-card:hover {
    transform: translateY(-8px);
    border-color: #ff6b35;
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.3);
}

/* Enhanced Review Header */
.review-header {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: rgba(255, 107, 53, 0.03);
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
}

.review-poster {
    width: 220px;
    height: 330px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.review-card:hover .review-poster {
    transform: scale(1.05) rotate(2deg);
}

.review-info {
    flex: 1;
}

.review-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.8rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.review-meta-info {
    color: #999;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Enhanced Rating Display */
.rating {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.rating-score {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: #fff;
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
    position: relative;
    overflow: hidden;
}

.rating-score::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: ratingShine 3s linear infinite;
}

@keyframes ratingShine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.rating-text {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Review Body */
.review-body {
    padding: 2rem;
    color: #ccc;
    line-height: 1.9;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
    position: relative;
}

.review-body.collapsed {
    max-height: 300px;
    overflow: hidden;
    position: relative;
}

.review-body.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, #1a1a1a);
    pointer-events: none;
}

.review-body strong {
    color: #ff6b35;
    font-weight: 700;
}

.review-body p {
    margin-bottom: 1.5rem;
}

.review-body h2,
.review-body h3 {
    color: #fff;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 107, 53, 0.3);
}

.review-body ul {
    list-style: none;
    padding-left: 0;
}

.review-body ul li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.8rem;
}

.review-body ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #ff6b35;
    font-weight: bold;
}

/* Quote Styling in Reviews */
.review-body blockquote {
    border-left: 4px solid #ff6b35;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #e0e0e0;
    background: rgba(255, 107, 53, 0.05);
    padding: 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
}

/* Expand/Collapse Button for Reviews */
.review-expand-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 140, 66, 0.1) 100%);
    border: 1px solid rgba(255, 107, 53, 0.3);
    color: #ff6b35;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 1rem 2rem 2rem;
}

.review-expand-btn:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2) 0%, rgba(255, 140, 66, 0.2) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.review-expand-icon {
    transition: transform 0.3s ease;
}
.review-body.expanded ~ .review-expand-btn .review-expand-icon {
    transform: rotate(180deg);
}

/* Reading Progress Indicator (for Reviews) */
.review-progress {
    position: sticky;
    top: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.review-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff6b35 0%, #ff8c42 100%);
    width: 0%;
    transition: width 0.1s ease;
}

/* =========================================
   UTILITIES & EXTRAS (Toasts, Skeletons)
   ========================================= */
/* Loading Skeleton - General */
.skeleton {
    background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

/* Enhanced Toast Notifications */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: #fff;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    font-size: 14px;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 107, 53, 0.3);
    backdrop-filter: blur(10px);
    animation: toastSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes toastSlideIn {
    from { transform: translateX(400px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Focus States */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid #ff6b35;
    outline-offset: 2px;
    border-radius: 4px;
}

/* =========================================
   COMMENTS SECTION
   ========================================= */
.card-actions {
    display: flex;
    justify-content: flex-end; 
    align-items: center;
    gap: 15px; 
    margin-top: 10px;
    width: 100%;
}
.comment-indicator {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #999;
    font-size: 1rem;
    font-weight: 600;
    gap: 12px;
    background-color: transparent;
    border: 1px solid transparent;
}
.comment-indicator:hover {
    background-color: rgba(255, 107, 53, 0.1); 
    color: #ff6b35;
    border-color: rgba(255, 107, 53, 0.2);
    transform: translateY(-1px);
}
.comment-indicator.active {
    color: #ff6b35;
    background-color: rgba(255, 107, 53, 0.15);
    border-color: rgba(255, 107, 53, 0.3);
}
.comment-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    stroke: currentColor; 
    stroke-width: 2;
    transition: transform 0.3s ease;
}
.comment-indicator:hover .comment-icon {
    transform: scale(1.1);
}
.comment-count {
    font-size: 0.95rem;
    min-width: 20px;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.full-comment-thread {
    max-height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out, margin 0.4s ease-out;
    background-color: #1a1a1a;
    border-radius: 8px;
    border: 1px solid transparent;
}
.full-comment-thread.open {
    max-height: 3000px; 
    padding: 20px;
    margin: 15px 0;
    border-color: #282828;
}
.comment-form-container {
    padding-top: 15px;
    border-top: 1px solid #333;
    margin-top: 15px;
}
.comment-input {
    width: 100%;
    background-color: #0d0d0d;
    color: #e0e0e0;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 10px;
    resize: vertical;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    min-height: 80px;
}
.comment-input:focus {
    outline: none;
    border-color: #ff6b35;
}
.comment-input:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}
.comment-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: flex-end;
}
.sign-in-prompt-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    transition: all 0.2s;
}
.sign-in-prompt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}
.submit-comment-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    transition: all 0.2s;
}
.submit-comment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}
.submit-comment-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}
.comment-item {
    margin-bottom: 20px;
    padding: 12px;
    border-left: 3px solid #ff6b35;
    background-color: rgba(255, 107, 53, 0.05);
    border-radius: 4px;
    animation: slideIn 0.3s ease;
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}
.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 10px;
}
.comment-user-email {
    font-weight: 600;
    color: #ff6b35;
    font-size: 0.95rem;
}
.comment-date {
    font-size: 0.8rem;
    color: #888;
}
.comment-body {
    color: #e0e0e0;
    line-height: 1.6;
    padding: 5px 0;
    word-wrap: break-word;
}
.comment-actions {
    margin-top: 8px;
    display: flex;
    gap: 15px;
}
.reply-btn, .delete-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px 0;
    transition: color 0.2s;
    font-weight: 500;
}
.reply-btn:hover { color: #ff6b35; }
.delete-btn { color: #ff4444; }
.delete-btn:hover { color: #ff6666; }

.reply-form-container {
    margin-top: 10px;
    padding: 10px;
    background-color: #0d0d0d;
    border-radius: 4px;
    border: 1px solid #333;
    display: none;
    animation: fadeIn 0.2s ease;
}
.reply-form-container.active {
    display: block;
}
.reply-input {
    width: 100%;
    background-color: #1a1a1a;
    color: #e0e0e0;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 8px;
    resize: vertical;
    font-family: inherit;
    font-size: 0.9rem;
    min-height: 60px;
}
.reply-input:focus {
    outline: none;
    border-color: #ff6b35;
}
.reply-form-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    justify-content: flex-end;
}
.submit-reply-btn, .cancel-reply-btn {
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    transition: all 0.2s;
}
.submit-reply-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: white;
}
.submit-reply-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}
.cancel-reply-btn {
    background: #333;
    color: #e0e0e0;
}
.cancel-reply-btn:hover {
    background: #444;
}
.replies-container {
    margin-top: 15px;
    padding-left: 30px;
    border-left: 2px solid #333;
}
.reply-item {
    margin-top: 15px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    border-left: 2px solid #555;
}
.comments-empty {
    text-align: center;
    padding: 30px;
    color: #666;
    font-style: italic;
}

/* =========================================
   MODALS
   ========================================= */
.article-modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 2000;
    transition: background-color 0.4s ease-out, backdrop-filter 0.4s ease-out;
}

.article-modal-overlay.visible {
    display: flex;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
}

.article-modal-content {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.8) translateY(50px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.article-modal-overlay.visible .article-modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

@keyframes modalHeaderPulse {
    0%, 100% { border-bottom-color: #333; }
    50% { border-bottom-color: #ff6b35; }
}

.article-modal-overlay.visible .article-modal-header {
    animation: modalHeaderPulse 0.6s ease-out;
}

.article-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #333;
    transition: border-bottom-color 0.3s;
}

#article-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.article-modal-close-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
}

.article-modal-close-btn:hover {
    color: #ff6b35;
    transform: rotate(90deg) scale(1.1);
}

.article-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.article-modal-body::-webkit-scrollbar { width: 8px; }
.article-modal-body::-webkit-scrollbar-track { background: #1a1a1a; }
.article-modal-body::-webkit-scrollbar-thumb { background-color: #444; border-radius: 4px; }
.article-modal-body::-webkit-scrollbar-thumb:hover { background-color: #555; }

.article-modal-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.article-modal-full-text {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.8;
}

.article-modal-full-text h2,
.article-modal-full-text h3,
.article-modal-full-text h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.article-modal-full-text p,
.article-modal-full-text ul {
    margin-bottom: 1rem;
}

.article-modal-full-text ul {
    padding-left: 1.5rem;
    list-style-type: disc;
}

.article-modal-full-text footer {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #888;
    border-top: 1px solid #333;
    padding-top: 1rem;
}

/* =========================================
   LENS DESIGN (EASTER EGG/EFFECT)
   ========================================= */
.aperture-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    z-index: 1000;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.aperture-container:hover { transform: scale(1.1); }
.aperture-container:active { transform: scale(0.95); }
.aperture {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.aperture-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, #ff4500 0%, #ff6347 40%, #ff8c42 100%);
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5), 0 0 30px rgba(255, 69, 0, 0.5);
}
.blade {
    position: absolute;
    width: 50%;
    height: 100%;
    left: 50%;
    top: 0;
    transform-origin: 0% 50%;
    transition: transform 0.1s ease-out;
}
.blade-inner {
    position: absolute;
    width: 100%;
    height: 60%;
    top: 20%;
    background: linear-gradient(90deg, #4A0404 0%, #800020 50%, #5C0011 100%);
    clip-path: polygon(0% 40%, 100% 0%, 100% 100%, 0% 60%);
    box-shadow: 2px 0 5px rgba(0,0,0,0.5), inset -2px 0 3px rgba(128,0,32,0.3);
}
.center-circle {
    position: absolute;
    background: radial-gradient(circle, #0a0a1a 0%, transparent 100%);
    border-radius: 50%;
    transition: width 0.1s ease-out, height 0.1s ease-out;
    pointer-events: none;
}
.scroll-indicator {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    text-align: center;
    opacity: 0.7;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    display: none;
}
.scroll-indicator::after {
    content: '↕';
    display: block;
    font-size: 24px;
    margin-top: 10px;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.info {
    position: fixed;
    bottom: 75px;
    right: 20px;
    color: #fff;
    font-family: 'Arial', sans-serif;
    font-size: 9px;
    text-align: center;
    background: rgba(0,0,0,0.7);
    padding: 4px 8px;
    border-radius: 5px;
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
}
.f-stop {
    font-size: 12px;
    font-weight: bold;
    color: #4a9eff;
    margin-top: 2px;
}

/* =========================================
   LIGHT MODE OVERRIDES
   ========================================= */
body.light-mode {
  background: #ffffff;
  color: #1a1a1a;
}

/* Header & Nav */
body.light-mode .header {
  background: linear-gradient(135deg, #f0f0f0 0%, #ffffff 100%);
  border-bottom: 1px solid #ccc;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
body.light-mode .nav-tabs {
  background-color: #f0f0f0;
  border-bottom: 1px solid #ddd;
}
body.light-mode .tab-btn {
  color: #1a1a1a;
  border-bottom-color: transparent;
}
body.light-mode .tab-btn:hover,
body.light-mode .tab-btn.active {
  color: #007bff;
  border-bottom-color: #007bff;
}

/* Menu Drawer (Enhanced Light Mode) */
body.light-mode .menu-drawer {
    background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
    border-right: 2px solid #007bff;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.15);
}
body.light-mode .menu-user-profile {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}
body.light-mode .menu-user-email {
    color: #ffffff;
}
body.light-mode .menu-user-status {
    color: rgba(255, 255, 255, 0.9);
}
body.light-mode .menu-drawer a {
    color: #1a1a1a;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
body.light-mode .menu-drawer a::before {
    background: #007bff;
}
body.light-mode .menu-drawer a:hover {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
}
body.light-mode .menu-logout-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}
body.light-mode .menu-logout-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #dc3545 100%);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.5);
}
body.light-mode #menuCloseBtn {
    color: #1a1a1a;
}
body.light-mode #menuCloseBtn:hover {
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
}
body.light-mode #menuToggle,
body.light-mode #searchIconToggle,
body.light-mode #themeToggle,
body.light-mode #logout-btn {
    color: #1a1a1a;
}
body.light-mode #menuToggle:hover,
body.light-mode #searchIconToggle:hover,
body.light-mode #themeToggle:hover,
body.light-mode #logout-btn:hover {
    color: #007bff;
}
body.light-mode .search-dropdown-container {
    background-color: #f0f0f0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}
body.light-mode .search-dropdown-container input {
    background-color: #ffffff;
    color: #1a1a1a;
    border: 1px solid #007bff;
}

/* Articles & Cards */
body.light-mode .section-title {
  color: #1a1a1a;
  border-bottom: none; /* New enhanced title doesn't use border-bottom */
}
body.light-mode .article-card,
body.light-mode .comic-card {
  background: #f8f8f8;
  border: 1px solid #ddd;
  color: #1a1a1a;
}
body.light-mode .article-card::after,
body.light-mode .comic-card::after {
    background: linear-gradient(135deg, #007bff, #0056b3);
}
body.light-mode .article-card:hover {
  box-shadow: 0 12px 30px rgba(0, 123, 255, 0.1);
  border-color: #007bff;
}
body.light-mode .article-title,
body.light-mode .article-modal-full-text h2, 
body.light-mode h3, body.light-mode h4 {
    color: #1a1a1a;
}

/* Enhanced Light Mode Overrides for News Tab */
body.light-mode .carousel-container {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

body.light-mode .article-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
  border-color: #e0e0e0;
}

body.light-mode .article-card::before {
  background: linear-gradient(135deg, #007bff, #0056b3, #007bff);
}

body.light-mode .article-card:hover {
  box-shadow: 0 20px 60px rgba(0, 123, 255, 0.2);
}

body.light-mode .article-title {
  color: #1a1a1a;
}

body.light-mode .article-card:hover .article-title {
  color: #007bff;
}

body.light-mode .article-excerpt {
  color: #555;
}

body.light-mode .article-meta {
  color: #666;
  border-top-color: #e0e0e0;
}

body.light-mode .article-category {
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.95) 0%, rgba(0, 86, 179, 0.95) 100%);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

body.light-mode .read-more-btn {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

body.light-mode .read-more-btn:hover {
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.5);
}

body.light-mode .share-btn {
  background: rgba(0, 0, 0, 0.03);
  border-color: #ddd;
  color: #333;
}

body.light-mode .share-btn:hover {
  background: rgba(0, 123, 255, 0.1);
  border-color: #007bff;
  color: #007bff;
}

body.light-mode .download-btn {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  box-shadow: none;
}
body.light-mode .download-btn:hover {
    box-shadow: 0 6px 16px rgba(0, 86, 179, 0.3);
}
body.light-mode .carousel-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  color: #fff; /* Keep carousel text white */
}
body.light-mode .carousel-title {
    color: #fff;
}
body.light-mode .carousel-description {
    color: #f0f0f0;
}

/* Reviews (Enhanced Light Mode) */
body.light-mode .review-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    border-color: #e0e0e0;
    color: #1a1a1a;
}
body.light-mode .review-card::before {
    background: linear-gradient(90deg, #007bff 0%, #0056b3 50%, #007bff 100%);
}
body.light-mode .review-header {
    background: rgba(0, 123, 255, 0.03);
    border-bottom-color: rgba(0, 123, 255, 0.1);
}
body.light-mode .review-title {
    color: #1a1a1a;
    text-shadow: none;
}
body.light-mode .review-body {
    color: #333;
}
body.light-mode .review-body strong,
body.light-mode .review-body h2,
body.light-mode .review-body h3,
body.light-mode .review-body ul li::before {
    color: #007bff;
}
body.light-mode .review-body h2,
body.light-mode .review-body h3 {
    border-bottom-color: rgba(0, 123, 255, 0.3);
}
body.light-mode .review-body blockquote {
    border-left-color: #007bff;
    background: rgba(0, 123, 255, 0.05);
    color: #333;
}
body.light-mode .review-body.collapsed::after {
    background: linear-gradient(to bottom, transparent, #f8f8f8);
}
body.light-mode .review-expand-btn {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(0, 86, 179, 0.1) 100%);
    border-color: rgba(0, 123, 255, 0.3);
    color: #007bff;
}
body.light-mode .review-expand-btn:hover {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.2) 0%, rgba(0, 86, 179, 0.2) 100%);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}
body.light-mode .rating {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 123, 255, 0.2);
}
body.light-mode .rating-score {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.4);
}
body.light-mode .rating-text {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
body.light-mode .review-progress-bar {
    background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
}

/* Comments Light Mode */
body.light-mode .full-comment-thread {
    background-color: #f8f8f8;
    border-color: #e0e0e0;
}
body.light-mode .full-comment-thread.open {
    border-color: #ddd;
}
body.light-mode .comment-input,
body.light-mode .reply-input {
    background-color: #ffffff;
    color: #1a1a1a;
    border-color: #ddd;
}
body.light-mode .comment-input:focus,
body.light-mode .reply-input:focus {
    border-color: #007bff;
}
body.light-mode .comment-item {
    border-left-color: #007bff;
    background-color: rgba(0, 123, 255, 0.05);
}
body.light-mode .comment-user-email {
    color: #007bff;
}
body.light-mode .comment-body {
    color: #1a1a1a;
}
body.light-mode .reply-btn:hover {
    color: #007bff;
}
body.light-mode .reply-form-container {
    background-color: #f0f0f0;
    border-color: #ddd;
}
body.light-mode .reply-item {
    background-color: rgba(0, 0, 0, 0.05);
    border-left-color: #bbb;
}
body.light-mode .cancel-reply-btn {
    background: #e0e0e0;
    color: #1a1a1a;
}
body.light-mode .cancel-reply-btn:hover {
    background: #d0d0d0;
}

/* Modals Light Mode */
body.light-mode .article-modal-content {
    background: #f8f8f8;
    border-color: #ddd;
    color: #1a1a1a;
}
body.light-mode #article-modal-title,
body.light-mode .article-modal-full-text h2,
body.light-mode .article-modal-full-text h3,
body.light-mode .article-modal-full-text h4 {
    color: #1a1a1a;
}
body.light-mode .article-modal-full-text {
    color: #333;
}
body.light-mode .article-modal-header {
    border-bottom-color: #ddd;
}
body.light-mode .article-modal-close-btn {
    color: #777;
}
body.light-mode .article-modal-close-btn:hover {
    color: #007bff;
}
body.light-mode .article-modal-body::-webkit-scrollbar-track {
    background: #f8f8f8;
}
body.light-mode .article-modal-body::-webkit-scrollbar-thumb {
    background-color: #ccc;
}
body.light-mode .article-modal-body::-webkit-scrollbar-thumb:hover {
    background-color: #bbb;
}
body.light-mode .article-modal-full-text footer {
    color: #555;
    border-top-color: #ddd;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1200px) {
  .articles-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
  
  .article-card.featured {
    grid-column: span 1;
  }
  
  .article-card.featured .article-image-container {
    height: 240px;
  }
}

@media (max-width: 768px) {
    .header-top-bar { padding: 0.5rem 1rem; }
    .logo img { height: 25px; width: 100%; }
    .search-dropdown-container { padding: 0.5rem 1rem; }
    .nav-tabs { justify-content: space-around; gap: 0.2rem; padding: 0.5rem 0; }
    .tab-btn { padding: 0.35rem 0.6rem; font-size: 0.75rem; }
    .container { padding: 8.5rem 1rem 1rem; }
    
    /* Menu Drawer Mobile */
    .menu-drawer { width: 100%; max-width: 320px; }
    
    /* Enhanced Carousel Mobile */
    .carousel-container {
      height: 400px;
      border-radius: 12px;
    }
    
    .carousel-title {
      font-size: 1.8rem;
    }
    
    .carousel-description {
      font-size: 0.95rem;
    }
    
    .carousel-arrow {
      width: 45px;
      height: 45px;
      font-size: 1.4rem;
    }
    
    .carousel-arrow.prev { left: 1rem; }
    .carousel-arrow.next { right: 1rem; }
    
    .section-title {
      font-size: 1.8rem;
    }
    
    .articles-grid {
      grid-template-columns: 1fr;
      gap: 2rem;
    }
    
    .article-card.featured .article-title {
      font-size: 1.4rem;
    }
    
    /* Comics Grid Mobile */
    .comics-grid { grid-template-columns: 1fr; }
    
    /* Reviews Mobile */
    .review-header { flex-direction: column; }
    .review-poster { width: 100%; height: 400px; }
    .review-title { font-size: 1.8rem; }
}
