/* NEWS PAGE STYLES */

/* HERO SECTION */
.news-hero {
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  background: linear-gradient(180deg, rgba(180, 22, 22, 0.08) 0%, rgba(0, 0, 0, 0) 100%);
}

.news-hero-content {
  max-width: 800px;
}

.news-hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
  letter-spacing: -1px;
}

.news-hero-subtitle {
  font-size: 1.2rem;
  color: #aaa;
  line-height: 1.6;
}

/* FEATURED ARTICLE SECTION */
.featured-section {
  padding: 4rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.featured-article {
  position: relative;
  background: linear-gradient(135deg, rgba(180, 22, 22, 0.05) 0%, rgba(0, 0, 0, 0.3) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s ease;
}

.featured-article:hover {
  transform: translateY(-5px);
  border-color: rgba(180, 22, 22, 0.4);
  box-shadow: 0 20px 60px rgba(180, 22, 22, 0.3);
}

.featured-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 450px;
}

.featured-image {
  position: relative;
  overflow: hidden;
}

.featured-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(180, 22, 22, 0.2) 0%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 1;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.featured-article:hover .featured-image img {
  transform: scale(1.05);
}

.featured-badge {
  position: absolute;
  top: 2rem;
  left: 2rem;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, #b41616, #d11a1a);
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(180, 22, 22, 0.4);
}

.featured-text {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-category {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(180, 22, 22, 0.15);
  border: 1px solid rgba(180, 22, 22, 0.3);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #b41616;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
  width: fit-content;
}

.featured-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.featured-excerpt {
  font-size: 1.1rem;
  color: #bbb;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.featured-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.featured-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #b41616, #d11a1a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.featured-author-name {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 600;
}

.featured-date {
  font-size: 0.9rem;
  color: #888;
}

.featured-read-time {
  font-size: 0.9rem;
  color: #888;
}

/* CATEGORIES SECTION */
.categories-section {
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.01);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.news-container {
  max-width: 1400px;
  margin: 0 auto;
}

.categories-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.category-btn {
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  color: #aaa;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.category-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: translateY(-2px);
}

.category-btn.active {
  background: linear-gradient(135deg, #b41616 0%, #d11a1a 100%);
  border-color: #b41616;
  color: #fff;
  box-shadow: 0 4px 15px rgba(180, 22, 22, 0.3);
}

/* NEWS GRID SECTION */
.news-grid-section {
  padding: 4rem 2rem;
  min-height: 60vh;
}

.loading-state,
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #aaa;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: #b41616;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.empty-state svg {
  color: #666;
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.empty-state p {
  font-size: 1rem;
  color: #888;
}

/* NEWS GRID */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 2.5rem;
}

.news-article {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.news-article:hover {
  transform: translateY(-5px);
  border-color: rgba(180, 22, 22, 0.3);
  box-shadow: 0 15px 40px rgba(180, 22, 22, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.article-image-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(180, 22, 22, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.article-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-article:hover .article-image-wrapper img {
  transform: scale(1.1);
}

.article-category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.4rem 0.9rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #b41616;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 1;
}

.article-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-excerpt {
  font-size: 0.95rem;
  color: #aaa;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.article-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.article-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #b41616, #d11a1a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

.article-author-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.article-author-name {
  font-size: 0.85rem;
  color: #fff;
  font-weight: 600;
}

.article-date {
  font-size: 0.75rem;
  color: #888;
}

.article-read-time {
  font-size: 0.85rem;
  color: #888;
  white-space: nowrap;
}

/* LOAD MORE SECTION */
.load-more-section {
  text-align: center;
  padding: 3rem 0;
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: rgba(180, 22, 22, 0.1);
  border: 2px solid rgba(180, 22, 22, 0.3);
  border-radius: 30px;
  color: #b41616;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.load-more-btn:hover {
  background: linear-gradient(135deg, #b41616, #d11a1a);
  border-color: #b41616;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(180, 22, 22, 0.3);
}

.load-more-btn svg {
  transition: transform 0.3s ease;
}

.load-more-btn:hover svg {
  transform: translateY(3px);
}

/* MODAL */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
}

.modal-container {
  position: relative;
  max-width: 900px;
  width: 100%;
  max-height: 85vh;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow-y: auto;
  z-index: 1;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: sticky;
  top: 1.5rem;
  left: calc(100% - 1.5rem);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
  margin-bottom: -40px;
}

.modal-close:hover {
  background: rgba(237, 66, 69, 0.2);
  border-color: #ed4245;
  transform: rotate(90deg);
}

.modal-close svg {
  color: #aaa;
  transition: color 0.3s ease;
}

.modal-close:hover svg {
  color: #ed4245;
}

.modal-content {
  padding: 3rem;
  color: #ddd;
}

.modal-article-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.modal-article-category {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(180, 22, 22, 0.15);
  border: 1px solid rgba(180, 22, 22, 0.3);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #b41616;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
}

.modal-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.modal-article-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #b41616, #d11a1a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.modal-author-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.modal-author-name {
  font-size: 1rem;
  color: #fff;
  font-weight: 600;
}

.modal-article-date {
  font-size: 0.85rem;
  color: #888;
}

.modal-article-read-time {
  font-size: 0.9rem;
  color: #888;
}

.modal-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin: 2.5rem 0 1rem;
}

.modal-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  margin: 2rem 0 1rem;
}

.modal-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #bbb;
  margin-bottom: 1.5rem;
}

.modal-content ul,
.modal-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.modal-content li {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #bbb;
  margin-bottom: 0.75rem;
}

.modal-content strong {
  color: #fff;
  font-weight: 600;
}

.modal-content a {
  color: #b41616;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.modal-content a:hover {
  color: #d11a1a;
}

.modal-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  color: #aaa;
}

/* SCROLLBAR */
.modal-container::-webkit-scrollbar {
  width: 8px;
}

.modal-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

.modal-container::-webkit-scrollbar-thumb {
  background: rgba(180, 22, 22, 0.5);
  border-radius: 4px;
}

.modal-container::-webkit-scrollbar-thumb:hover {
  background: rgba(180, 22, 22, 0.7);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .featured-content-wrapper {
    grid-template-columns: 1fr;
  }

  .featured-image {
    min-height: 350px;
  }

  .news-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

@media (max-width: 768px) {
  .news-hero {
    padding: 6rem 1.5rem 3rem;
    min-height: 35vh;
  }

  .news-hero-title {
    font-size: 2.5rem;
  }

  .news-hero-subtitle {
    font-size: 1rem;
  }

  .featured-section {
    padding: 3rem 1.5rem;
  }

  .featured-text {
    padding: 2rem;
  }

  .featured-title {
    font-size: 1.75rem;
  }

  .featured-excerpt {
    font-size: 1rem;
  }

  .categories-section {
    padding: 2rem 1.5rem;
  }

  .category-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .news-grid-section {
    padding: 3rem 1.5rem;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .modal {
    padding: 1rem;
  }

  .modal-container {
    max-height: 90vh;
    border-radius: 16px;
  }

  .modal-close {
    top: 1rem;
    left: calc(100% - 1rem);
  }

  .modal-content {
    padding: 2rem 1.5rem;
  }

  .modal-article-image {
    height: 250px;
  }

  .modal-content h1 {
    font-size: 2rem;
  }

  .modal-content h2 {
    font-size: 1.5rem;
  }

  .modal-content h3 {
    font-size: 1.25rem;
  }

  .modal-content p,
  .modal-content li {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .news-hero-title {
    font-size: 2rem;
  }

  .featured-badge {
    top: 1rem;
    left: 1rem;
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
  }

  .featured-text {
    padding: 1.5rem;
  }

  .featured-title {
    font-size: 1.5rem;
  }

  .featured-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .category-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .article-content {
    padding: 1.5rem;
  }

  .article-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .modal-content {
    padding: 1.5rem 1rem;
  }

  .modal-article-image {
    height: 200px;
  }

  .modal-content h1 {
    font-size: 1.75rem;
  }
}