/*
 * Featured News Section Styles
 * Rich bullet-point style news display section
 */

/* ===== FEATURED NEWS SECTION CONTAINER ===== */
.featured-news-section {
  padding: var(--space-16) var(--space-4);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  position: relative;
}


.featured-news-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ===== SECTION HEADER ===== */
.featured-news-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.featured-news-title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-gray-900);
  margin: 0 0 var(--space-4) 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, var(--color-gray-900) 0%, var(--color-gray-700) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.featured-news-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--color-primary-gradient);
  border-radius: var(--radius-full);
}

.featured-news-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-gray-600);
  margin: 0;
  font-weight: var(--font-weight-medium);
}

/* ===== NEWS LIST ===== */
.featured-news-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

/* ===== INDIVIDUAL NEWS ITEM ===== */
.news-item {
  display: flex;
  align-items: center;
  padding: var(--space-6) var(--space-8);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(15px) saturate(150%);
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.news-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: var(--radius-2xl);
}

.news-item:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.08),
    inset 0 2px 0 rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  color: inherit;
}

.news-item:hover::before {
  opacity: 1;
}

/* ===== NEWS ITEM ELEMENTS ===== */
.news-badge {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  background: var(--color-primary-gradient);
  border-radius: 50%;
  margin-right: var(--space-6);
  position: relative;
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.4);
}

.news-badge::before {
  content: '';
  position: absolute;
  inset: -4px;
  background: var(--color-primary-gradient);
  border-radius: 50%;
  opacity: 0.3;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.1;
  }
}

.news-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.news-text {
  flex: 1;
}

.news-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray-900);
  margin: 0 0 var(--space-1) 0;
  line-height: var(--line-height-snug);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.news-description {
  font-size: var(--font-size-sm);
  color: var(--color-gray-600);
  margin: 0;
  line-height: var(--line-height-relaxed);
  font-weight: var(--font-weight-medium);
}

.news-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.news-category {
  padding: var(--space-1) var(--space-3);
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  color: var(--color-white);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-full);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 2px 8px rgba(108, 92, 231, 0.3);
}

.news-date {
  font-size: var(--font-size-xs);
  color: var(--color-gray-500);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.025em;
}

.news-arrow {
  width: 20px;
  height: 20px;
  color: var(--color-gray-400);
  transition: all 0.3s ease;
}

.news-item:hover .news-arrow {
  color: var(--color-primary);
  transform: translateX(4px);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet styles */
@media (max-width: 1024px) {
  .featured-news-section {
    padding: var(--space-12) var(--space-4);
  }

  .featured-news-header {
    margin-bottom: var(--space-10);
  }

  .news-item {
    padding: var(--space-5) var(--space-6);
  }

  .news-badge {
    margin-right: var(--space-4);
  }

  .news-content {
    gap: var(--space-3);
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  .featured-news-section {
    padding: var(--space-10) var(--space-3);
  }

  .featured-news-header {
    margin-bottom: var(--space-8);
  }

  .featured-news-title {
    font-size: var(--font-size-2xl);
  }

  .featured-news-subtitle {
    font-size: var(--font-size-base);
  }

  .news-item {
    padding: var(--space-4) var(--space-5);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .news-badge {
    margin-right: 0;
    margin-bottom: var(--space-2);
  }

  .news-content {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  .news-meta {
    width: 100%;
    justify-content: space-between;
  }

  .news-title {
    font-size: var(--font-size-base);
  }

  .news-description {
    font-size: var(--font-size-xs);
  }

  .news-item:hover {
    transform: translateY(-2px) scale(1.005);
  }
}

/* Small mobile styles */
@media (max-width: 480px) {
  .featured-news-section {
    padding: var(--space-8) var(--space-2);
  }

  .news-item {
    padding: var(--space-3) var(--space-4);
  }

  .news-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
}

/* ===== ACCESSIBILITY ===== */

/* High contrast mode */
@media (prefers-contrast: high) {
  .news-item {
    border: 2px solid var(--color-gray-900);
    background: var(--color-white);
  }

  .news-badge {
    background: var(--color-gray-900);
  }

  .news-category {
    background: var(--color-gray-900);
    color: var(--color-white);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .news-item {
    transition: none;
  }

  .news-item:hover {
    transform: none;
  }

  .news-badge::before {
    animation: none;
  }

  .news-arrow {
    transition: none;
  }

  .news-item:hover .news-arrow {
    transform: none;
  }
}

/* Focus styles for accessibility */
.news-item:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
  .featured-news-section {
    background: var(--color-white);
    padding: var(--space-4);
  }

  .news-item {
    background: var(--color-white);
    border: 1px solid var(--color-gray-300);
    box-shadow: none;
    break-inside: avoid;
    margin-bottom: var(--space-2);
  }

  .news-badge {
    background: var(--color-gray-600);
    box-shadow: none;
  }

  .news-category {
    background: var(--color-gray-600);
    box-shadow: none;
  }

  .news-arrow {
    display: none;
  }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */

/* GPU acceleration for smooth interactions */
.news-item {
  will-change: transform;
  transform: translateZ(0);
}

/* Contain layout for better performance */
.featured-news-section {
  contain: layout style paint;
}
