/* ===== News Header ===== */
.news-header {
  text-align: center;
  margin-bottom: 50px;
}

.news-header h1 {
  font-size: 3.2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 15px 0;
  background: linear-gradient(135deg, #9d7dff 0%, #5f3cff 100%);
  -webkit-background-clip: text;
  color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.news-subtitle {
  font-size: 1.1rem;
  color: #aaa;
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* ===== Filter Buttons ===== */
.news-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 22px;
  border: 1px solid rgba(157, 125, 255, 0.3);
  background: rgba(157, 125, 255, 0.05);
  color: #aaa;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-family: "Poppins", sans-serif;
}

.filter-btn:hover {
  background: rgba(157, 125, 255, 0.15);
  color: #9d7dff;
  border-color: rgba(157, 125, 255, 0.6);
}

.filter-btn.active {
  background: linear-gradient(135deg, #9d7dff 0%, #5f3cff 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 25px rgba(157, 125, 255, 0.3);
}

/* ===== News Grid ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

/* ===== News Cards ===== */
.news-card {
  background: rgba(20, 20, 35, 0.8);
  border: 1px solid rgba(157, 125, 255, 0.15);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.news-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(157, 125, 255, 0.1), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}

.news-card:hover {
  transform: translateY(-8px);
  border-color: rgba(157, 125, 255, 0.4);
  box-shadow: 0 15px 40px rgba(157, 125, 255, 0.2), 0 0 1px rgba(157, 125, 255, 0.3);
}

.news-card:hover::before {
  left: 100%;
}

.news-card.featured {
  grid-column: span 1;
  border: 1px solid rgba(157, 125, 255, 0.35);
  background: linear-gradient(135deg, rgba(157, 125, 255, 0.08) 0%, rgba(95, 60, 255, 0.05) 100%);
}

.news-card.featured:hover {
  box-shadow: 0 20px 50px rgba(157, 125, 255, 0.25);
}

/* ===== Card Header ===== */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  gap: 15px;
}

/* ===== News Tags ===== */
.news-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(157, 125, 255, 0.15);
  color: #9d7dff;
  border: 1px solid rgba(157, 125, 255, 0.25);
}

.news-tag.eredivisie-tag {
  background: rgba(0, 200, 109, 0.15);
  color: #00c86d;
  border-color: rgba(0, 200, 109, 0.3);
}

.news-tag.champions-tag {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
  border-color: rgba(255, 193, 7, 0.3);
}

.news-tag.transfer-tag {
  background: rgba(244, 67, 54, 0.15);
  color: #ff6b6b;
  border-color: rgba(244, 67, 54, 0.3);
}

.news-tag.international-tag {
  background: rgba(63, 81, 181, 0.15);
  color: #5fa3ff;
  border-color: rgba(63, 81, 181, 0.3);
}

/* ===== News Date ===== */
.news-date {
  font-size: 0.85rem;
  color: #888;
  white-space: nowrap;
}

/* ===== Card Content ===== */
.news-card h3 {
  color: #fff;
  font-size: 1.25rem;
  margin: 15px 0 12px 0;
  line-height: 1.4;
  font-weight: 600;
  transition: color 0.3s ease;
}

.news-card:hover h3 {
  color: #9d7dff;
}

.news-card p {
  color: #ccc;
  line-height: 1.6;
  margin: 0 0 15px 0;
  font-size: 0.95rem;
}

/* ===== Read More Button ===== */
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, rgba(157, 125, 255, 0.15) 0%, rgba(95, 60, 255, 0.1) 100%);
  border: 1.5px solid rgba(157, 125, 255, 0.4);
  color: #9d7dff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  font-family: "Poppins", sans-serif;
  margin-top: 5px;
}

.read-more::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}

.read-more:hover {
  background: linear-gradient(135deg, rgba(157, 125, 255, 0.3) 0%, rgba(95, 60, 255, 0.2) 100%);
  border-color: rgba(157, 125, 255, 0.7);
  color: #fff;
  transform: translateX(4px);
  box-shadow: 0 8px 20px rgba(157, 125, 255, 0.25);
}

.read-more:hover::before {
  left: 100%;
}

.read-more:active {
  transform: translateX(2px) scale(0.98);
}

/* ===== Fade-in Animation ===== */
.fade-in-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.news-card {
  opacity: 0;
  transform: translateY(40px);
  animation: slideUp 0.6s ease-out forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.news-card[style*="animation-delay"] {
  animation-delay: inherit;
}

/* ===== Modal Popup ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: linear-gradient(135deg, rgba(30, 30, 50, 0.95) 0%, rgba(20, 20, 40, 0.95) 100%);
  border: 1px solid rgba(157, 125, 255, 0.3);
  border-radius: 20px;
  padding: 40px;
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 25px 60px rgba(157, 125, 255, 0.2), 0 0 1px rgba(157, 125, 255, 0.3);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(157, 125, 255, 0.1);
  border: 1px solid rgba(157, 125, 255, 0.3);
  color: #9d7dff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(157, 125, 255, 0.2);
  color: #fff;
  transform: rotate(90deg);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.modal-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(157, 125, 255, 0.15);
  color: #9d7dff;
  border: 1px solid rgba(157, 125, 255, 0.25);
  white-space: nowrap;
}

.modal-date {
  font-size: 0.9rem;
  color: #888;
}

.modal-content h2 {
  font-size: 1.8rem;
  color: #fff;
  margin: 0 0 20px 0;
  line-height: 1.4;
}

.modal-content p {
  color: #ccc;
  line-height: 1.8;
  font-size: 0.95rem;
  margin: 0;
}

.modal-footer {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(157, 125, 255, 0.15);
}

.modal-meta {
  font-size: 0.85rem;
  color: #888;
  margin: 0;
}

/* ===== Thumbnails & Author ===== */
.news-thumb {
  width: 100%;
  height: 140px;
  border-radius: 12px;
  margin-bottom: 14px;
  background-size: cover;
  background-position: center;
  display: block;
}

.card-author {
  font-size: 0.85rem;
  color: #9aa;
  margin-bottom: 8px;
}

.modal-top {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.modal-image {
  width: 110px;
  height: 70px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,0.03);
}

.modal-meta-block { flex: 1; }

.modal-author {
  color: #bfbfbf;
  font-size: 0.95rem;
  margin-top: 6px;
}

/* Load more */
.load-more-wrap { text-align: center; margin: 36px 0 80px; }
#loadMoreBtn { padding: 12px 26px; border-radius: 28px; }

/* Scrollbar styling for modal */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: rgba(157, 125, 255, 0.05);
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: rgba(157, 125, 255, 0.3);
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(157, 125, 255, 0.5);
}

/* ===== Responsive Design ===== */
@media (max-width: 1000px) {
  .news-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
  }

  .news-card {
    padding: 24px;
  }

  .news-header h1 {
    font-size: 2.4rem;
  }

  .news-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .news-filters {
    gap: 8px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .news-card {
    padding: 20px;
  }

  .news-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
  }

  .news-subtitle {
    font-size: 0.95rem;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-date {
    width: 100%;
  }

  .news-card h3 {
    font-size: 1.1rem;
  }
}
