/* ============================================
   HOMEPAGE PREMIUM STYLES - World-Class Design
   ============================================ */

/* Breaking News Ticker Animation */
@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-ticker {
  animation: ticker 30s linear infinite;
}

.ticker-wrapper:hover .animate-ticker {
  animation-play-state: paused;
}

/* Duplicate ticker content for seamless loop */
.ticker-content::after {
  content: attr(data-content);
}

/* Hero Section Enhancements */
.hero-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.7) 40%,
    rgba(0, 0, 0, 0.3) 70%,
    transparent 100%
  );
}

/* Featured Grid Hover Effects */
.featured-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Trending Numbers */
.trending-number {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
}

/* Newsletter Form Enhancements */
.newsletter-input {
  transition: all 0.3s ease;
}

.newsletter-input:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.2);
}

/* Social Media Buttons */
.social-btn {
  position: relative;
  overflow: hidden;
}

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

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

/* Category Section Styles */
.category-header {
  position: relative;
  padding-bottom: 1rem;
}

.category-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
  border-radius: 2px;
}

/* Card Hover Shine Effect */
.card-shine {
  position: relative;
  overflow: hidden;
}

.card-shine::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.card-shine:hover::before {
  left: 100%;
}

/* Image Zoom Container */
.image-zoom-container {
  position: relative;
  overflow: hidden;
}

.image-zoom-container img {
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-zoom-container:hover img {
  transform: scale(1.1);
}

/* Text Gradient */
.text-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Badge Styles */
.badge-live {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(
    90deg,
    #f0f0f0 25%,
    #e0e0e0 50%,
    #f0f0f0 75%
  );
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
}

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

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .animate-ticker {
    animation-duration: 20s;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem !important;
  }
  
  .animate-ticker {
    animation-duration: 15s;
  }
}

/* Dark Mode Support */
.dark .bg-white {
  background-color: #1f2937;
}

.dark .text-gray-900 {
  color: #f9fafb;
}

.dark .border-gray-200 {
  border-color: #374151;
}

/* Print Styles */
@media print {
  .breaking-news-ticker,
  .newsletter-section,
  .social-media-section {
    display: none !important;
  }
}

/* Accessibility */
.focus-visible:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Performance Optimization */
.will-change-transform {
  will-change: transform;
}

.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
}
