/**
 * Wild News Styles
 * Camping Journey Equipaments MX
 * Premium cinematic styling for the Wild News section
 */

/* Hero Section */
.wild-news-hero {
  position: relative;
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)), url('../images/wild-news/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--color-white);
  padding: 8rem 0 6rem;
  text-align: center;
  margin-bottom: 4rem;
}

.wild-news-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to top, var(--bg-color), transparent);
}

.wild-news-hero .page-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.wild-news-hero .page-subtitle {
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.wild-news-hero .page-description {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.8;
}

/* Featured Article */
.featured-article {
  margin-bottom: 5rem;
}

.featured-article-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-article-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.featured-article-image {
  height: 100%;
  overflow: hidden;
}

.featured-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-article-content:hover .featured-article-image img {
  transform: scale(1.05);
}

.featured-article-text {
  padding: 3rem;
}

.article-category {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.1rem;
}

.featured-article-text .article-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.3;
  color: var(--text-color);
}

.featured-article-text .article-excerpt {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: var(--text-color-secondary);
}

.article-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--text-color-tertiary);
}

/* Latest Articles */
.latest-articles {
  margin-bottom: 5rem;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
  color: var(--text-color);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--color-accent);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.article-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.article-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.article-image .article-category {
  position: absolute;
  bottom: 15px;
  left: 15px;
  margin-bottom: 0;
}

.article-content {
  padding: 1.5rem;
}

.article-content .article-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.4;
  color: var(--text-color);
}

.article-content .article-excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: var(--text-color-secondary);
}

.article-content .article-meta {
  margin-bottom: 1rem;
}

.read-more {
  display: inline-block;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.read-more::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.read-more:hover::after {
  width: 100%;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 4rem;
}

.pagination-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-btn.next {
  width: auto;
  padding: 0 1.5rem;
}

.pagination-btn.active {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.pagination-btn:hover:not(.active) {
  background: var(--bg-color-secondary);
}

/* Categories Section */
.categories-section {
  margin-bottom: 5rem;
  padding: 4rem 0;
  background: var(--bg-color-secondary);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.category-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.category-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
}

/* Newsletter Section */
.newsletter-section {
  padding: 5rem 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/wild-news/newsletter-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--color-white);
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 0.1rem;
}

.newsletter-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  border: none;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-form .btn {
  padding: 0 2rem;
  border-radius: 50px;
}

.privacy-note {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .featured-article-content {
    grid-template-columns: 1fr;
  }
  
  .featured-article-image {
    height: 400px;
  }
  
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .wild-news-hero {
    padding: 6rem 0 4rem;
  }
  
  .wild-news-hero .page-title {
    font-size: 2.5rem;
  }
  
  .wild-news-hero .page-subtitle {
    font-size: 1.5rem;
  }
  
  .featured-article-text {
    padding: 2rem;
  }
  
  .featured-article-text .article-title {
    font-size: 1.8rem;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input,
  .newsletter-form .btn {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
  
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .section-title {
    font-size: 1.8rem;
  }
}

/* Animation Effects */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wild-news-hero .page-title,
.wild-news-hero .page-subtitle,
.wild-news-hero .page-description {
  animation: fadeIn 0.8s ease forwards;
}

.wild-news-hero .page-subtitle {
  animation-delay: 0.2s;
}

.wild-news-hero .page-description {
  animation-delay: 0.4s;
}

.featured-article-content,
.article-card {
  opacity: 0;
  transform: translateY(20px);
}

.featured-article-content.visible,
.article-card.visible {
  animation: fadeIn 0.8s ease forwards;
}
