/**
 * Home Page - Shared Styles
 * Common styles used across all home page layouts
 */

/* ========================================
   HERO SECTION - CUSTOM SLEEK DESIGN
   ======================================== */

.hero-section {
    position: relative;
    width: 100%;
    min-height: 80vh;
    background: linear-gradient(135deg, 
        var(--dark-900, #0f0f23) 0%, 
        var(--dark-800, #1a1a2e) 50%, 
        var(--primary-900, #16213e) 100%);
    overflow: hidden;
    margin-bottom: var(--spacing-8);
}

.hero-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 5%;
}

/* Floating Content Card */
.hero-content-wrapper {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 70vh;
}

/* Left Side - Content */
.hero-main-content {
    position: relative;
    z-index: 3;
    color: white;
    padding: 40px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero-main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 50%, 
        rgba(0, 0, 0, 0.1) 100%);
    border-radius: 24px;
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(45deg, var(--primary-600), var(--primary-500));
    color: white;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px var(--primary-600);
    opacity: 0.9;
}

.hero-main-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin: 0 0 20px 0;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-meta-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    font-size: 1rem;
}

.hero-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: linear-gradient(45deg, var(--secondary, #f59e0b), var(--accent, #f97316));
    border-radius: 20px;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 15px var(--secondary);
    opacity: 0.9;
}

.hero-year, .hero-genre {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.hero-main-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 35px 0;
    max-width: 500px;
}

.hero-action-buttons {
    display: flex;
    gap: 16px;
}

.hero-btn {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-btn-primary {
    background: linear-gradient(45deg, var(--primary-600), var(--primary-500));
    color: white;
    box-shadow: 0 8px 25px var(--primary-600);
    opacity: 0.9;
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(45deg, var(--primary-700), var(--primary-600));
    box-shadow: 0 12px 35px var(--primary-600);
    opacity: 1;
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* Right Side - Visual Showcase */
.hero-visual-showcase {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-media-stack {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 100%;
}

.hero-main-poster {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-3deg);
    width: 300px;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.1);
    z-index: 3;
    transition: transform 0.5s ease;
}

.hero-main-poster:hover {
    transform: translate(-50%, -50%) rotate(0deg) scale(1.05);
}

.hero-poster-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-floating-cards {
    position: absolute;
    inset: 0;
    pointer-events: none; /* Allow clicks to pass through to main content */
}

.floating-card {
    position: absolute;
    width: 120px;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.6s ease;
    cursor: pointer;
    pointer-events: auto; /* Re-enable clicks for cards */
}

.floating-card:hover {
    transform: scale(1.1);
    z-index: 4;
}

/* Position cards relative to the hero visual section, not viewport */
.floating-card.card-1 {
    top: 5%;
    left: 5%;
    animation: float 6s ease-in-out infinite;
}

.floating-card.card-2 {
    top: 15%;
    right: 10%;
    animation: float 6s ease-in-out infinite 2s;
}

.floating-card.card-3 {
    bottom: 20%;
    left: 0%;
    animation: float 6s ease-in-out infinite 4s;
}

.floating-card.card-4 {
    bottom: 30%;
    right: 5%;
    animation: float 6s ease-in-out infinite 1s;
}

.floating-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

/* Animated Background Elements */
.hero-bg-elements {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-600) 0%, var(--secondary) 50%, transparent 70%);
    opacity: 0.1;
    filter: blur(80px);
    animation: drift 20s ease-in-out infinite;
}

.bg-orb-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.bg-orb-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    right: -150px;
    animation-delay: 10s;
}

.bg-orb-3 {
    width: 500px;
    height: 500px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 5s;
}

@keyframes drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -30px) scale(1.1); }
    50% { transform: translate(-30px, 50px) scale(0.9); }
    75% { transform: translate(30px, 30px) scale(1.05); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-visual-showcase {
        height: 50vh;
    }
    
    .hero-main-poster {
        width: 250px;
        height: 375px;
    }
}

@media (max-width: 768px) {
    .hero-container {
        padding: 0 20px;
    }
    
    .hero-main-content {
        padding: 30px 25px;
    }
    
    .hero-main-title {
        font-size: 2.5rem;
    }
    
    .hero-action-buttons {
        flex-direction: column;
    }
    
    .hero-btn {
        justify-content: center;
    }
    
    .hero-visual-showcase {
        height: 40vh;
    }
    
    .floating-card {
        width: 80px;
        height: 120px;
    }
}

/* ========================================
   RECENTLY ADDED SECTION  
   ======================================== */

.hero-slide:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--primary-500);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(var(--primary-rgb), 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.dark .hero-slide {
  background: var(--dark-900);
  border-color: rgba(255, 255, 255, 0.05);
}

/* Backdrop Image */
.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: all 0.6s ease;
  filter: brightness(0.7) contrast(1.1);
}

.hero-slide:hover .hero-backdrop {
  filter: brightness(0.9) contrast(1.2);
  transform: scale(1.05);
}

/* Card Overlay */
.hero-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.4) 40%,
    rgba(0, 0, 0, 0.8) 100%
  );
  backdrop-filter: blur(1px);
}

/* Content Container */
.hero-content {
  position: absolute;
  inset: 0;
  padding: var(--spacing-6);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 3;
  color: white;
}

@media (max-width: 768px) {
  .hero-content {
    padding: var(--spacing-4);
  }
}

.hero-info {
  width: 100%;
  color: white;
}

/* Simplified Meta Design */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-2);
  margin-bottom: var(--spacing-3);
  align-items: center;
}

.hero-meta .content-type-badge,
.hero-meta .rating-badge,
.hero-meta .year-badge,
.hero-meta .genre-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--spacing-2);
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  gap: 2px;
  transition: all 0.2s ease;
}

.hero-meta .content-type-badge {
  background: var(--primary-600);
  color: white;
}

.hero-meta .rating-badge {
  background: linear-gradient(45deg, #ff6b35, #f7931e);
  color: white;
}

.hero-meta .year-badge,
.hero-meta .genre-badge {
  background: rgba(255, 255, 255, 0.15);
  color: var(--gray-200);
  backdrop-filter: blur(10px);
}

/* Card Title */
.hero-title {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 800;
  color: white;
  margin-bottom: var(--spacing-2);
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Description */
.hero-description {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
  margin-bottom: var(--spacing-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .hero-description {
    font-size: 13px;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
}

@media (min-width: 768px) {
  .hero-description {
    font-size: var(--font-size-lg);
  }
}

/* Simple Card Actions */
.hero-actions {
  display: flex;
  gap: var(--spacing-2);
  align-items: center;
}

.hero-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-2) var(--spacing-3);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 11px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  min-width: 60px;
}

.hero-actions .btn-primary {
  background: var(--primary-600);
  color: white;
  box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.3);
}

.hero-actions .btn-primary:hover {
  background: var(--primary-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.4);
}

.hero-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  backdrop-filter: blur(10px);
}

.hero-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.hero-actions .btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
}

/* Remove dots navigation for card layout */
.hero-dots {
  display: none;
}

/* Loading state for card layout */
.hero-slider.loading .hero-slide {
  background: linear-gradient(135deg, var(--dark-700), var(--dark-600));
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Modern Navigation Dots */
.hero-dots {
  position: absolute;
  bottom: var(--spacing-4);
  left: var(--spacing-8);
  display: flex;
  gap: var(--spacing-2);
  z-index: 4;
}

@media (max-width: 768px) {
  .hero-dots {
    left: 50%;
    transform: translateX(-50%);
    bottom: var(--spacing-3);
  }
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.hero-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px solid transparent;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.hero-dot.active {
  background: white;
  transform: scale(1.2);
}

.hero-dot.active::before {
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.1);
}

/* Loading States */
.hero-slider.loading {
  background: linear-gradient(135deg, var(--dark-800), var(--primary-900));
}

.hero-slider.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 50%,
    transparent 100%
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Unique Floating Elements */
.hero-slide::before {
  content: '';
  position: absolute;
  top: 10%;
  right: 10%;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, var(--primary-500) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
  z-index: 1;
}

.hero-slide::after {
  content: '';
  position: absolute;
  bottom: 15%;
  left: 5%;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, var(--secondary-500) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0.08;
  animation: float 8s ease-in-out infinite reverse;
  z-index: 1;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

/* Dark Mode Adjustments */
.dark .hero-content {
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.8) 50%,
    rgba(0, 0, 0, 0.95) 100%
  );
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-content {
    padding: var(--spacing-4);
  }
  
  .hero-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-2);
  }
  
  .hero-description {
    font-size: var(--font-size-xs);
    margin-bottom: var(--spacing-3);
  }
  
  .hero-meta {
    gap: var(--spacing-1);
    margin-bottom: var(--spacing-3);
  }
}

/* Hero Loading State */
.hero-slider.loading {
  position: relative;
  background: linear-gradient(135deg, var(--primary-100), var(--secondary-100));
}

.dark .hero-slider.loading {
  background: linear-gradient(135deg, var(--dark-700), var(--dark-600));
}

.hero-slider.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: heroShimmer 1.5s infinite;
}

@keyframes heroShimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Hero Responsive Enhancements */
@media (max-width: 640px) {
  .hero-content {
    text-align: center;
  }
  
  .hero-info {
    max-width: 100%;
  }
  
  .hero-meta {
    justify-content: center;
  }
  
  .hero-actions {
    justify-content: center;
    flex-direction: column;
  }
  
  .hero-actions .btn {
    width: 100%;
    max-width: 200px;
  }
}

/* Dark mode enhancements for hero */
.dark .hero-title {
  background: linear-gradient(135deg, #ffffff, #e0e0e0);
  background-clip: text;
  -webkit-background-clip: text;
}

.dark .hero-description {
  color: rgba(255, 255, 255, 0.9);
}
.hero-dots {
  position: absolute;
  bottom: var(--spacing-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: var(--spacing-3);
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot.active {
  background: white;
  transform: scale(1.2);
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

/* Hero Loading State */
.hero-slider.loading {
  opacity: 0.5;
  pointer-events: none;
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: var(--spacing-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* Section Headers */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-6);
  padding: 0 var(--spacing-2);
}

.section-title {
  font-size: var(--font-size-2xl);
  font-weight: 600;
  color: rgb(17, 24, 39);
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
}

.dark .section-title {
  color: white;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 2rem;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
}

.section-subtitle {
  font-size: var(--font-size-sm);
  color: rgb(107, 114, 128);
  margin-top: var(--spacing-1);
}

.dark .section-subtitle {
  color: rgb(156, 163, 175);
}

.section-actions {
  display: flex;
  gap: var(--spacing-2);
  align-items: center;
}

/* Content Cards */
.content-row {
  display: flex;
  gap: var(--spacing-4);
  overflow-x: auto;
  padding: var(--spacing-2) 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.content-row::-webkit-scrollbar {
  display: none;
}

/* Scrollbar Hide Utility */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.content-card {
  flex: none;
  width: 200px;
  scroll-snap-align: start;
  transition: all var(--transition);
  cursor: pointer;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: white;
  box-shadow: var(--shadow);
}

.dark .content-card {
  background-color: var(--dark-50);
}

.content-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
  z-index: 10;
}

.content-card-image-wrapper {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

.content-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all var(--transition);
}

.content-card:hover .content-card-image {
  transform: scale(1.1);
}

.content-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--spacing-4);
}

.content-card:hover .content-card-overlay {
  opacity: 1;
}

.content-card-actions {
  position: absolute;
  top: var(--spacing-2);
  right: var(--spacing-2);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-1);
  opacity: 0;
  transition: all var(--transition);
}

.content-card:hover .content-card-actions {
  opacity: 1;
}

.content-card-action {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--primary);
}

.content-card-action:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

.content-card-info {
  padding: var(--spacing-4);
}

.content-card-title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: rgb(17, 24, 39);
  margin-bottom: var(--spacing-1);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dark .content-card-title {
  color: white;
}

.content-card-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  font-size: var(--font-size-xs);
  color: rgb(107, 114, 128);
}

.dark .content-card-meta {
  color: rgb(156, 163, 175);
}

.content-card-rating {
  display: flex;
  align-items: center;
  gap: var(--spacing-1);
}

.content-card-rating .star {
  color: #fbbf24;
}

/* Featured Content */
.featured-content {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  height: 400px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.featured-background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}

.featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    45deg,
    rgba(0, 0, 0, 0.7),
    rgba(var(--primary), 0.3)
  );
}

.featured-content-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  padding: var(--spacing-8);
}

.featured-info {
  color: white;
  max-width: 50%;
}

.featured-title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  margin-bottom: var(--spacing-3);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.featured-description {
  font-size: var(--font-size-base);
  line-height: 1.6;
  margin-bottom: var(--spacing-6);
  opacity: 0.9;
}

.featured-actions {
  display: flex;
  gap: var(--spacing-3);
}

/* Category Sections */
.category-section {
  margin-bottom: var(--spacing-12);
}

.category-tabs {
  display: flex;
  gap: var(--spacing-1);
  margin-bottom: var(--spacing-6);
  background: rgb(243, 244, 246);
  padding: var(--spacing-1);
  border-radius: var(--radius-lg);
  overflow-x: auto;
}

.dark .category-tabs {
  background: var(--dark-50);
}

.category-tab {
  padding: var(--spacing-2) var(--spacing-4);
  border: none;
  background: transparent;
  color: rgb(107, 114, 128);
  font-size: var(--font-size-sm);
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.dark .category-tab {
  color: rgb(156, 163, 175);
}

.category-tab:hover {
  color: var(--primary);
  background: rgba(var(--primary), 0.1);
}

.category-tab.active {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.dark .category-tab.active {
  background: var(--dark-100);
}

/* Loading States */
.loading-card {
  width: 200px;
  height: 300px;
  background: rgb(243, 244, 246);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.dark .loading-card {
  background: var(--dark-50);
}

.loading-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transform: translateX(-100%);
  animation: loading-shimmer 1.5s infinite;
}

.dark .loading-card::after {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
}

@keyframes loading-shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.loading-text {
  height: 1rem;
  background: rgb(229, 231, 235);
  border-radius: var(--radius);
  margin-bottom: var(--spacing-2);
}

.dark .loading-text {
  background: var(--dark-200);
}

.loading-text.short {
  width: 60%;
}

.loading-text.medium {
  width: 80%;
}

.loading-text.long {
  width: 100%;
}

/* Quick Actions */
.quick-actions {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3);
}

.quick-action {
  width: 3rem;
  height: 3rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition);
}

.quick-action:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

.quick-action.secondary {
  background: var(--secondary);
}

.quick-action.accent {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
}

/* Responsive Adjustments */
@media (max-width: 767px) {
  .hero-content {
    padding: var(--spacing-8) var(--spacing-4);
  }
  
  .hero-title {
    font-size: var(--font-size-2xl);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-base);
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-3);
  }
  
  .section-title {
    font-size: var(--font-size-xl);
  }
  
  .content-card {
    width: 160px;
  }
  
  .featured-content {
    height: 300px;
  }
  
  .featured-content-inner {
    padding: var(--spacing-4);
  }
  
  .featured-info {
    max-width: 100%;
  }
  
  .featured-title {
    font-size: var(--font-size-xl);
  }
  
  .quick-actions {
    bottom: 1rem;
    right: 1rem;
  }
  
  .quick-action {
    width: 2.5rem;
    height: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .content-card {
    width: 220px;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .featured-title {
    font-size: 2.5rem;
  }
}

/* Print Styles */
@media print {
  .quick-actions,
  .content-card-actions,
  .hero-actions,
  .featured-actions,
  .section-actions {
    display: none;
  }
}

/* Filter Button Styles */
.filter-btn {
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  user-select: none;
}

.filter-btn:hover {
  color: var(--text-primary);
  background: rgba(var(--primary), 0.1);
}

.filter-btn.active {
  color: var(--primary);
  background: rgba(var(--primary), 0.1);
  font-weight: 600;
}

.dark .filter-btn {
  color: var(--gray-400);
}

.dark .filter-btn:hover {
  color: var(--gray-200);
  background: rgba(var(--primary), 0.15);
}

.dark .filter-btn.active {
  color: var(--primary);
  background: rgba(var(--primary), 0.15);
}

/* Section Header Styles */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-6);
}

.section-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--text-primary);
}

.section-title i {
  color: var(--primary);
  margin-right: var(--spacing-3);
}

.section-controls {
  display: flex;
  align-items: center;
  gap: var(--spacing-4);
}

.section-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--font-size-sm);
  transition: color 0.2s ease;
}

.section-link:hover {
  color: var(--primary-dark);
}

.section-link i {
  margin-left: var(--spacing-1);
  font-size: 0.875em;
  transition: transform 0.2s ease;
}

.section-link:hover i {
  transform: translateX(2px);
}

/* Responsive Filter Controls */
@media (max-width: 768px) {
  .section-header {
    flex-direction: column;
    align-items: stretch;
    gap: var(--spacing-4);
  }
  
  .section-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-btn {
    flex: 1;
    padding: var(--spacing-3) var(--spacing-4);
    text-align: center;
  }
}

/* ========================================
   FEATURED SECTION  
   ======================================== */

.featured-section {
    padding: var(--spacing-8) 5%;
    background: linear-gradient(
        180deg, 
        var(--dark-900, #0a0a0a) 0%, 
        var(--dark-800, #1a1a1a) 100%
    );
}

.featured-container {
    max-width: 1400px;
    margin: 0 auto;
}

.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-6);
    flex-wrap: wrap;
    gap: var(--spacing-4);
}

.featured-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--text-primary, white);
    margin: 0;
    background: linear-gradient(135deg, var(--primary-400), var(--primary-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.featured-subtitle {
    font-size: 1rem;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    margin: var(--spacing-2) 0 0 0;
}

.featured-filters {
    display: flex;
    gap: var(--spacing-2);
    background: rgba(255, 255, 255, 0.05);
    padding: var(--spacing-1);
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.featured-filter-btn {
    padding: var(--spacing-2) var(--spacing-4);
    border: none;
    background: transparent;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-filter-btn:hover {
    color: var(--text-primary, white);
    background: rgba(255, 255, 255, 0.1);
}

.featured-filter-btn.active {
    background: var(--primary-600);
    color: white;
    box-shadow: 0 4px 15px var(--primary-600);
    opacity: 0.9;
}

/* Featured Grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-6);
    margin-top: var(--spacing-6);
}

.featured-card {
    position: relative;
    background: var(--dark-800, #1a1a1a);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.featured-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary-500);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px var(--primary-600);
    opacity: 0.9;
}

.featured-card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.featured-card-backdrop {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-card:hover .featured-card-backdrop {
    transform: scale(1.1);
}

.featured-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 60%,
        rgba(0, 0, 0, 0.8) 100%
    );
}

.featured-card-badges {
    position: absolute;
    top: var(--spacing-3);
    left: var(--spacing-3);
    right: var(--spacing-3);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 2;
}

.featured-type-badge {
    padding: 4px 12px;
    background: var(--primary-600);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.featured-rating-badge {
    padding: 4px 10px;
    background: linear-gradient(45deg, var(--secondary, #f59e0b), var(--accent, #f97316));
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 4px;
}

.featured-card-content {
    padding: var(--spacing-4);
    position: relative;
    z-index: 2;
}

.featured-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary, white);
    margin: 0 0 var(--spacing-2) 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-card-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    margin-bottom: var(--spacing-2);
    font-size: 0.875rem;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
}

.featured-card-description {
    font-size: 0.875rem;
    color: var(--text-secondary, rgba(255, 255, 255, 0.8));
    line-height: 1.5;
    margin: 0 0 var(--spacing-4) 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-card-actions {
    display: flex;
    gap: var(--spacing-2);
}

.featured-card-btn {
    flex: 1;
    padding: var(--spacing-2) var(--spacing-3);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-1);
}

.featured-btn-primary {
    background: var(--primary-600);
    color: white;
}

.featured-btn-primary:hover {
    background: var(--primary-700);
    transform: translateY(-1px);
}

.featured-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary, white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.featured-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Loading States */
.featured-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    flex-direction: column;
    gap: var(--spacing-4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .featured-section {
        padding: var(--spacing-6) 4%;
    }
    
    .featured-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .featured-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: var(--spacing-4);
    }
    
    .featured-filters {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .featured-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-4);
    }
    
    .featured-filters {
        flex-direction: column;
        border-radius: 12px;
        padding: var(--spacing-2);
    }
    
    .featured-filter-btn {
        border-radius: 8px;
        text-align: center;
    }
}
