/* Featured Post Component Styles */

.featured-post-container {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  transition: all 0.3s ease;
}

.featured-post-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.featured-article {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: white;
  position: relative;
}

.featured-article::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cGF0dGVybiBpZD0iZ3JpZCIgd2lkdGg9IjQwIiBoZWlnaHQ9IjQwIiBwYXR0ZXJuVW5pdHM9InVzZXJTcGFjZU9uVXNlIj48cGF0aCBkPSJNIDQwIDAgTCAwIDAgMCA0MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJyZ2JhKDI1NSwgMjU1LCAyNTUsIDAuMDMpIiBzdHJva2Utd2lkdGg9IjEiLz48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JpZCkiLz48L3N2Zz4=') repeat;
  opacity: 0.3;
  pointer-events: none;
}

.featured-article>* {
  position: relative;
  z-index: 2;
}

.featured-image-container {
  position: relative;
  overflow: hidden;
}

.featured-image-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.featured-post-container:hover .featured-image-container::after {
  transform: translateX(100%);
}

/* Text effects */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .featured-article {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(51, 65, 85, 0.95) 100%);
  }

  .featured-post-container {
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .featured-article {
    min-height: 350px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .featured-article {
    min-height: 400px;
  }
}

@media (min-width: 1025px) {
  .featured-article {
    min-height: 450px;
  }

  .featured-post-container:hover {
    transform: translateY(-4px);
  }
}

/* Loading states */
.featured-article.loading {
  opacity: 0.7;
}

.featured-article.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
  animation: shimmer 1.5s infinite;
}

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

  100% {
    transform: translateX(100%);
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {

  .featured-post-container,
  .featured-image-container img,
  .featured-image-container::after {
    transition: none;
    animation: none;
  }

  .featured-post-container:hover {
    transform: none;
  }
}

/* Print styles */
@media print {
  .featured-post-container {
    box-shadow: none;
    border: 1px solid #e5e7eb;
  }

  .featured-article {
    background: #f3f4f6 !important;
    color: #000 !important;
  }
}