/* ===============================================
   📰 NEWS LIST PAGE - Органічний редизайн
   =============================================== */

/* 🏗️ ОСНОВНИЙ LAYOUT */
.news-main-section {
  padding: 60px 0;
}
/* 🧭 CATEGORY HERO (icon + title) */
.category-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.category-emoji {
  font-size: 4rem;
  line-height: 1;
}

@media (max-width: 768px) {
  .category-hero {
    gap: 12px;
  }
  .category-emoji {
    font-size: 2.4rem;
  }
}

@media (max-width: 480px) {
  .category-emoji {
    font-size: 2rem;
  }
}

.news-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 50px;
  align-items: start;
}

.news-content {
  min-width: 0; /* Щоб контент не переповнював */
}

/* 📰 NEWS GRID - замість карусель */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

/* 🃏 NEWS CARD - Покращений дизайн */
.news-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 25px;
  cursor: pointer;
  transition: all var(--transition-normal);
  backdrop-filter: var(--blur-medium);
  position: relative;
  overflow: hidden;
  height: fit-content;
}

.news-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(102, 255, 0, 0.1),
    transparent
  );
  transition: left var(--transition-slow);
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 25px rgba(102, 255, 0, 0.2);
  border-color: rgba(102, 255, 0, 0.4);
}

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

/* 🖼️ NEWS IMAGE */
.news-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  transition: transform var(--transition-normal);
}

.news-card:hover .news-image {
  transform: scale(1.05);
}

/* 🏷️ NEWS META */
.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.category-chip,
.top-chip,
.hot-chip {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid;
}

.category-chip {
  background: rgba(102, 255, 0, 0.1);
  border-color: rgba(102, 255, 0, 0.3);
  color: var(--accent-green);
}

.top-chip {
  background: rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.5);
  color: #FFD700;
}

.hot-chip {
  background: rgba(255, 0, 107, 0.2);
  border-color: rgba(255, 0, 107, 0.5);
  color: var(--accent-pink);
}

/* 📝 NEWS TITLE */
.news-title {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--text-white);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 📄 NEWS SUMMARY */
.news-summary {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 📊 NEWS FOOTER */
.news-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  font-size: 13px;
  color: var(--text-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
}

.news-date,
.news-views,
.news-time {
  display: flex;
  align-items: center;
  gap: 5px;
}

.news-footer i {
  width: 16px;
  height: 16px;
  opacity: 0.8;
}

.source-link {
  color: var(--accent-green);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  transition: var(--transition-fast);
}

.source-link:hover {
  text-decoration: underline;
  opacity: 0.8;
}

.read-more {
  margin-left: auto;
  opacity: 0.6;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
}

.news-card:hover .read-more {
  opacity: 1;
  transform: translateX(5px);
  color: var(--accent-green);
}

/* 📄 PAGINATION */
.pagination-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 50px;
}

.pagination-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-normal);
  font-weight: 500;
}

.pagination-btn:hover {
  background: rgba(102, 255, 0, 0.1);
  border-color: rgba(102, 255, 0, 0.3);
  color: var(--accent-green);
  transform: translateY(-2px);
}

.pagination-current {
  padding: 12px 24px;
  background: var(--accent-green);
  color: black;
  border-radius: 25px;
  font-weight: 700;
}

/* 🚫 EMPTY STATE */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-xl);
  border: 2px dashed rgba(255, 255, 255, 0.1);
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 25px;
  opacity: 0.6;
}

.empty-icon i {
  width: 80px;
  height: 80px;
  color: var(--accent-green);
}

.empty-state h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 25px;
  font-size: 1.1rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-green);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-normal);
}

.back-link:hover {
  text-decoration: underline;
  transform: translateX(-3px);
}

/* 📱 RESPONSIVE DESIGN */
@media (max-width: 1200px) {
  .news-layout {
    gap: 40px;
  }
  
  .news-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 992px) {
  .news-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .news-sidebar {
    order: 2; /* На планшетах іде після контенту */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  
  .news-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .news-main-section {
    padding: 40px 0;
  }
  
  .news-layout {
    gap: 30px;
  }
  .news-content { order: 1; }
  .news-sidebar { order: 2; }
  
  .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .news-card {
    padding: 20px;
  }
  
  .news-image {
    height: 180px;
  }
  
  .news-title {
    font-size: 1.2rem;
  }
  
  .news-footer {
    gap: 10px;
    font-size: 12px;
  }
  
  .pagination-nav {
    gap: 15px;
    margin-top: 40px;
  }
  
  .pagination-btn,
  .pagination-current {
    padding: 10px 18px;
    font-size: 14px;
  }
  
  .empty-state {
    padding: 60px 15px;
  }
  
  .empty-state h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .news-card {
    padding: 15px;
  }
  
  .news-image {
    height: 160px;
  }
  
  .news-meta {
    gap: 6px;
  }
  
  .category-chip,
  .top-chip,
  .hot-chip {
    padding: 3px 8px;
    font-size: 12px;
  }
  
  .news-title {
    font-size: 1.1rem;
  }
  
  .news-summary {
    font-size: 0.9rem;
  }
  
  .news-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .pagination-nav {
    flex-direction: column;
    gap: 10px;
  }
  
  .pagination-btn {
    width: 100%;
    max-width: 200px;
    justify-content: center;
  }
}

/* 🎨 АНІМАЦІЇ */
@keyframes newsCardFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.news-card {
  animation: newsCardFadeIn 0.6s ease-out;
}

/* Послідовне з'явлення карток */
.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.3s; }
.news-card:nth-child(4) { animation-delay: 0.4s; }
.news-card:nth-child(5) { animation-delay: 0.5s; }
.news-card:nth-child(6) { animation-delay: 0.6s; }

/* 📰 OTHER NEWS IN SIDEBAR */
.other-news-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

.other-news-item {
  display: block;
  padding: 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition-normal);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
}

.other-news-item:hover {
  background: rgba(102, 255, 0, 0.08);
  border-color: rgba(102, 255, 0, 0.2);
  color: var(--accent-green);
  transform: translateX(4px);
}

.other-news-item .news-title {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 8px;
  color: inherit;
}

.other-news-item .news-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  opacity: 0.8;
}

.other-news-item .news-category {
  font-size: 0.9rem;
}

.other-news-item .news-date {
  color: var(--text-secondary);
}

/* ✨ ДОДАТКОВІ ЕФЕКТИ */
.news-card:hover .news-title {
  color: var(--accent-green);
  transition: color var(--transition-normal);
}

.news-meta .category-chip:hover {
  background: rgba(102, 255, 0, 0.2);
  transform: translateY(-1px);
}
