/*
Theme Name: Hentai Noticias ULTRA
Theme URI: https://hentainoticias.com
Description: Tema oscuro ULTRA PREMIUM con efectos cósmicos ÉPICOS, lluvias de meteoros, nebulosas, supernovas, animaciones avanzadas, progreso de lectura, funciones ajax e increíble UX. Mejorado por Tora.
Version: 1.0 
Author: Tora
Author URI: https://hentainoticias.com
Text Domain: hhxnova
Domain Path: /languages
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: dark, blog, news, custom-header, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, responsive-layout, accessibility-ready
*/

/* ============================================
   IMPORTS & CUSTOM PROPERTIES
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&family=Poppins:wght@400;600;700;800&display=swap');

:root {
  /* Colors */
  --bg: #0b0914;
  --bg2: #0f0b1f;
  --text: #eef2ff;
  --muted: #a8b7ff;
  --violet: #b94cff;
  --fuchsia: #ff6bf1;
  --cyan: #3de8f2;
  --border: rgba(255, 255, 255, 0.14);
  --surface: rgba(255, 255, 255, 0.06);
  
  /* Spacing */
  --radius: 22px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --card-padding: 1rem;
  
  /* Transitions */
  --transition-speed: 0.18s;
  --transition-ease: cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Shadows */
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 70px rgba(185, 76, 255, 0.25);
  --shadow-glow: 0 18px 58px rgba(185, 76, 255, 0.5);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  color: var(--text);
  font-family: 'Inter', 'Poppins', system-ui, -apple-system, 'Segoe UI', 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: radial-gradient(1200px 800px at 20% -10%, rgba(185, 76, 255, 0.18), transparent 60%),
              radial-gradient(1200px 800px at 100% 0%, rgba(255, 107, 241, 0.16), transparent 60%),
              linear-gradient(180deg, var(--bg), var(--bg2));
  overflow-x: hidden;
  min-height: 100vh;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--violet);
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  z-index: 9999;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  top: 0;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
a {
  color: var(--violet);
  text-decoration: none;
  transition: color var(--transition-speed) var(--transition-ease);
}

a:hover,
a:focus {
  text-decoration: underline;
  color: var(--fuchsia);
  outline: 2px solid transparent;
}

a:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

/* ============================================
   LAYOUT
   ============================================ */
.container-xl {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(12, 10, 22, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-speed) var(--transition-ease);
}

.logo img {
  height: 110px;
  width: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-glow);
  transition: transform var(--transition-speed) var(--transition-ease);
}

.logo img:hover {
  transform: scale(1.05);
}

/* ============================================
   SEARCH BAR
   ============================================ */
.searchbar {
  max-width: 600px;
  flex: 1;
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  transition: border-color var(--transition-speed) var(--transition-ease);
}

.searchbar:focus-within {
  border-color: var(--violet);
}

.searchbar input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  width: 100%;
  font-size: 0.95rem;
}

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

/* ============================================
   NAVIGATION
   ============================================ */
.topnav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.topnav a {
  color: var(--text);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-speed) var(--transition-ease);
}

.topnav a:hover,
.topnav a:focus {
  background: var(--surface);
  text-decoration: none;
}

/* Dropdown Categories Menu - SUPER AGGRESSIVE FIX by Tora */
.dropdown-cats .dropdown-menu,
.dropdown-menu.show,
.navbar .dropdown-menu,
.header .dropdown-menu {
  background: #0c0a16 !important;
  background-color: #0c0a16 !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45) !important;
}

.dropdown-cats .dropdown-item,
.dropdown-menu .dropdown-item {
  color: #eef2ff !important;
  background-color: transparent !important;
  border-radius: 10px !important;
  padding: 10px 12px !important;
  margin-bottom: 4px !important;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.dropdown-cats .dropdown-item:hover,
.dropdown-cats .dropdown-item:focus,
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
  background: linear-gradient(90deg, rgba(185, 76, 255, 0.3), rgba(255, 107, 241, 0.3)) !important;
  background-color: rgba(185, 76, 255, 0.2) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  transform: translateX(4px) !important;
}

.dropdown-cats .dropdown-item .badge,
.dropdown-menu .badge {
  background: #b94cff !important;
  background-color: #b94cff !important;
  color: #fff !important;
}

.dropdown-cats .dropdown-divider,
.dropdown-menu .dropdown-divider {
  border-color: rgba(255, 255, 255, 0.14) !important;
  opacity: 1 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.14) !important;
}

/* ============================================
   PRELOADER
   ============================================ */
#preloader {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, var(--bg), var(--bg2));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  transition: opacity 0.35s ease;
}

.loader-logo {
  width: 140px;
  height: 140px;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(185, 76, 255, 0.5);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.loader-ring {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--violet);
  animation: spin 1.6s linear infinite;
}

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

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 70vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(185, 76, 255, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 70px rgba(185, 76, 255, 0.25);
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(11, 9, 20, 0.88) 84%);
}

.hero .inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 28px;
}

.hero-title {
  font-size: clamp(30px, 3.6vw, 56px);
  font-weight: 900;
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.8), 0 4px 12px rgba(185, 76, 255, 0.3);
  line-height: 1.2;
  background: linear-gradient(135deg, #ffffff, #eef2ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary-glow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(90deg, var(--fuchsia), var(--violet));
  color: #fff;
  font-weight: 900;
  box-shadow: var(--shadow-glow);
  cursor: pointer;
  transition: all var(--transition-speed) var(--transition-ease);
}

.btn-primary-glow:hover,
.btn-primary-glow:focus {
  filter: brightness(1.08);
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  transition: all var(--transition-speed) var(--transition-ease);
}

.btn-chip:hover,
.btn-chip:focus {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

/* ============================================
   CARDS
   ============================================ */
.cardx {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-speed) var(--transition-ease),
              box-shadow var(--transition-speed) var(--transition-ease),
              border-color var(--transition-speed) var(--transition-ease);
}

.cardx:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(185, 76, 255, 0.2);
  border-color: rgba(185, 76, 255, 0.3);
}

/* UNIFORM IMAGE SIZES - by Tora */
.cardx img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (min-width: 992px) {
  .cardx img {
    height: 320px;
  }
}

@media (max-width: 767px) {
  .cardx img {
    height: 240px;
  }
}

/* ============================================
   RIBBONS & BADGES
   ============================================ */
.ribbon-new {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, rgba(255, 107, 241, 0.95), rgba(185, 76, 255, 0.95));
  color: #fff;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(255, 107, 241, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: gentlePulse 2s ease-in-out infinite;
}

@keyframes gentlePulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(255, 107, 241, 0.4);
  }
  50% { 
    transform: scale(1.03);
    box-shadow: 0 6px 16px rgba(255, 107, 241, 0.6);
  }
}

/* ============================================
   SECTIONS
   ============================================ */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0;
  flex-wrap: wrap;
  gap: 1rem;
}

.separator {
  height: 1px;
  background: linear-gradient(90deg, rgba(185, 76, 255, 0.28), rgba(255, 107, 241, 0.15));
  margin: 18px 0;
}

/* ============================================
   READING TIME & REACTIONS
   ============================================ */
.reading-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  font-size: 0.85rem;
}

.reactions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.react-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: all var(--transition-speed) var(--transition-ease);
}

.react-btn:hover,
.react-btn:focus {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.react-btn.active {
  animation: bounce 0.4s ease;
}

@keyframes bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.react-count {
  font-weight: 700;
}

/* ============================================
   STATS
   ============================================ */
.site-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
}

.stat-card .big {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--violet);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  margin-top: 40px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  background: rgba(0, 0, 0, 0.25);
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
#scrollTop {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(90deg, var(--fuchsia), var(--violet));
  color: #fff;
  box-shadow: var(--shadow-glow);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all var(--transition-speed) var(--transition-ease);
}

#scrollTop.show {
  display: flex;
}

#scrollTop:hover,
#scrollTop:focus {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(185, 76, 255, 0.6);
}

/* ============================================
   404 PAGE
   ============================================ */
.huge404 {
  font-size: clamp(80px, 10vw, 170px);
  font-weight: 900;
  background: linear-gradient(90deg, var(--fuchsia), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

/* ============================================
   STARFIELD LAYERS
   ============================================ */
#hhx-stars,
#hhx-parallax {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

#hhx-parallax {
  z-index: -1;
  mix-blend-mode: screen;
  opacity: 0.25;
}

/* ============================================
   COSMOS TOGGLE
   ============================================ */
.cosmos-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  transition: all var(--transition-speed) var(--transition-ease);
}

.cosmos-toggle:hover,
.cosmos-toggle:focus {
  background: rgba(255, 255, 255, 0.12);
}

.cosmos-toggle.active {
  background: linear-gradient(90deg, var(--fuchsia), var(--violet));
  color: #fff;
  border-color: transparent;
}

/* ============================================
   PAGE TRANSITIONS
   ============================================ */
.fade-enter {
  opacity: 0;
}

.fade-enter-active {
  opacity: 1;
  transition: opacity 0.4s ease;
}

.fade-exit {
  opacity: 1;
}

.fade-exit-active {
  opacity: 0;
  transition: opacity 0.35s ease;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
  .topnav {
    display: none;
  }
  
  .hero-title {
    font-size: clamp(24px, 5vw, 40px);
  }
}

@media (max-width: 767px) {
  .container-xl {
    padding: 0 0.75rem;
  }
  
  .hero {
    min-height: 50vh;
  }
  
  .logo img {
    height: 80px;
  }
  
  .searchbar {
    max-width: 100%;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  #hhx-stars,
  #hhx-parallax,
  #preloader,
  #scrollTop,
  .cosmos-toggle {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
}

/* ============================================
   WELCOME & SEO SECTIONS - by Tora
   ============================================ */
.welcome-section,
.final-section {
  position: relative;
  background: linear-gradient(135deg, rgba(185, 76, 255, 0.08), rgba(255, 107, 241, 0.08));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* Animated background pattern - by Tora */
.welcome-section::before,
.final-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(185, 76, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255, 107, 241, 0.05) 0%, transparent 50%);
  animation: floatBackground 10s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes floatBackground {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(10px, 10px) scale(1.05);
  }
}

.welcome-section > *,
.final-section > * {
  position: relative;
  z-index: 1;
}

.welcome-section h2,
.final-section h2 {
  color: var(--text);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(90deg, var(--fuchsia), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite;
}

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

.welcome-section p,
.final-section p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 12px;
}

.welcome-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all var(--transition-speed) var(--transition-ease);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--text);
  user-select: none;
}

.welcome-toggle:hover {
  background: rgba(185, 76, 255, 0.15);
  border-color: var(--violet);
  transform: translateX(2px);
}

.welcome-toggle-icon {
  transition: transform var(--transition-speed) var(--transition-ease);
  font-size: 1.2rem;
}

.welcome-toggle.active .welcome-toggle-icon {
  transform: rotate(180deg);
}

.welcome-content {
  max-height: 0 !important;
  overflow: hidden !important;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.4s ease,
              padding-top 0.4s ease;
  opacity: 0 !important;
  padding-top: 0 !important;
  display: block;
}

.welcome-content.active {
  max-height: 2000px !important;
  padding-top: 20px !important;
  opacity: 1 !important;
  animation: slideInContent 0.5s ease-out;
}

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

/* ============================================
   ULTRA PREMIUM FEATURES v7.0
   ============================================ */

/* Reading Progress Bar */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--fuchsia), var(--violet), var(--cyan));
  z-index: 9999;
  transition: width 0.1s ease;
  box-shadow: 0 2px 10px rgba(185, 76, 255, 0.5);
}

/* Shine effect on cards - by Tora */
.cardx::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
  z-index: 1;
  pointer-events: none;
}

.cardx:hover::before {
  left: 100%;
}

/* Enhanced scroll indicator - by Tora */
.scroll-indicator {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  opacity: 0;
  animation: bounceArrow 2s infinite;
  z-index: 100;
  color: var(--violet);
  font-size: 2rem;
  pointer-events: none;
}

@keyframes bounceArrow {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* Glowing border animation for featured content - by Tora */
@keyframes glowBorder {
  0%, 100% {
    border-color: rgba(185, 76, 255, 0.3);
    box-shadow: 0 0 20px rgba(185, 76, 255, 0.2);
  }
  50% {
    border-color: rgba(255, 107, 241, 0.5);
    box-shadow: 0 0 30px rgba(255, 107, 241, 0.4);
  }
}

.hero {
  animation: glowBorder 3s ease-in-out infinite;
}

/* Dark/Light Mode Toggle */
.theme-toggle {
  position: relative;
  width: 60px;
  height: 30px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.3s;
}

.theme-toggle::before {
  content: '🌙';
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--fuchsia), var(--violet));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 12px;
}

.theme-toggle.light-mode::before {
  content: '☀️';
  left: calc(100% - 27px);
}

body.light-mode {
  --bg: #f0f0f5;
  --bg2: #e5e5ea;
  --text: #1a1a2e;
  --muted: #4a4a6a;
  --border: rgba(0, 0, 0, 0.14);
  --surface: rgba(0, 0, 0, 0.06);
}

/* Newsletter Popup */
.newsletter-popup {
  position: fixed;
  bottom: -400px;
  right: 20px;
  width: 350px;
  max-width: calc(100vw - 40px);
  background: linear-gradient(135deg, rgba(11, 9, 20, 0.98), rgba(15, 11, 31, 0.98));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  z-index: 9998;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  transition: bottom 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  backdrop-filter: blur(20px);
}

.newsletter-popup.show {
  bottom: 20px;
}

.newsletter-popup .close-popup {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s;
}

.newsletter-form input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  margin: 10px 0;
}

.newsletter-form button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(90deg, var(--fuchsia), var(--violet));
  border: none;
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

/* Enhanced Cosmic Effects */
.cosmic-pulse {
  animation: cosmicPulse 3s ease-in-out infinite;
}

@keyframes cosmicPulse {
  0%, 100% { 
    box-shadow: 0 0 20px rgba(185, 76, 255, 0.4), 0 0 40px rgba(255, 107, 241, 0.2);
  }
  50% { 
    box-shadow: 0 0 35px rgba(185, 76, 255, 0.6), 0 0 60px rgba(255, 107, 241, 0.3);
  }
}

.meteor-trail {
  position: relative;
  overflow: visible;
}

.meteor-trail::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 241, 0.3), transparent);
  animation: meteorSweep 8s linear infinite;
  pointer-events: none;
}

@keyframes meteorSweep {
  0% { transform: translateX(-200%); }
  100% { transform: translateX(200%); }
}

/* Advanced Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Load More Button */
.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--fuchsia), var(--violet));
  color: #fff;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(185, 76, 255, 0.4);
}

/* Ajax Search Results */
.search-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 400px;
  overflow-y: auto;
  background: rgba(12, 10, 22, 0.98);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-top: 10px;
  padding: 10px;
  display: none;
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  z-index: 1000;
}

.search-results-dropdown.show {
  display: block;
}

.search-result-item {
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 8px;
  display: flex;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.search-result-item:hover {
  background: rgba(185, 76, 255, 0.15);
}

/* Post Filters */
.post-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.filter-btn {
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn:hover, .filter-btn.active {
  background: linear-gradient(90deg, var(--fuchsia), var(--violet));
  color: #fff;
  border-color: transparent;
}

/* Parallax Section */
.parallax-section {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}

/* Hover Effects */
.hover-lift {
  transition: all 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px) scale(1.02);
}

.hover-glow:hover {
  box-shadow: 0 0 30px rgba(185, 76, 255, 0.6);
}

/* Responsive */
@media (max-width: 767px) {
  .newsletter-popup,
  .social-proof-notification {
    width: calc(100vw - 40px);
  }
}
