/* ========================================
   BLOG PAGE STYLES
   Página de blog moderna e responsiva
   Paleta: #0A192F, #00AEEF, #00FFAF
   ======================================== */

/* ===========================
   HERO SECTION
   =========================== */

.blog-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0A192F 0%, #1a2f4a 50%, #0A192F 100%);
  overflow: hidden;
  padding: 4rem 2rem;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0, 174, 239, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 255, 175, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.blog-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(0,174,239,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.blog-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  animation: fadeInUp 0.8s ease-out;
}

.blog-hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.title-highlight {
  display: block;
  background: linear-gradient(135deg, #00AEEF, #00FFAF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.title-main {
  display: block;
  color: var(--neutral-white);
}

.blog-hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--neutral-gray-300);
  font-weight: 300;
  letter-spacing: 0.5px;
}

/* ===========================
   SECTIONS CONTAINER
   =========================== */

.featured-section,
.posts-section,
.newsletter-section {
  padding: 4rem 2rem;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--neutral-gray-900);
  margin-bottom: 2.5rem;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #00AEEF, #00FFAF);
  border-radius: 2px;
}

/* ===========================
   FEATURED POST
   =========================== */

.featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-post:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 20px 40px rgba(0, 174, 239, 0.15),
    0 0 0 1px rgba(0, 174, 239, 0.1);
}

.featured-post-image {
  position: relative;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

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

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

.featured-post-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--neutral-gray-600);
}

.post-category {
  background: linear-gradient(135deg, #00AEEF, #00FFAF);
  color: var(--primary-blue);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-date,
.post-reading-time,
.post-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(10, 25, 47, 0.9);
  color: #00FFAF;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 175, 0.3);
}

.featured-badge {
  background: linear-gradient(135deg, #00AEEF, #00FFAF);
  color: var(--primary-blue);
  border: none;
}

.image-credit {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background: rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.6);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.3px;
  backdrop-filter: blur(5px);
  opacity: 0.2;
  transition: opacity 0.5s ease;
  pointer-events: none;
  user-select: none;
  z-index: 3;
}

.featured-post-image:hover .image-credit,
.post-card-image:hover .image-credit,
.article-hero:hover .image-credit {
  opacity: 0.9;
}

.featured-post-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--neutral-gray-900);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.featured-post-excerpt {
  font-size: 1.05rem;
  color: var(--neutral-gray-600);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.post-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #00AEEF, #00FFAF);
  color: #0A192F;
  padding: 0.875rem 1.75rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 174, 239, 0.3);
}

.btn-read-more:hover {
  background: linear-gradient(135deg, #00FFAF, #00AEEF);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 174, 239, 0.4);
  color: #0A192F;
}

.btn-read-more i {
  transition: transform 0.3s ease;
}

.btn-read-more:hover i {
  transform: translateX(5px);
}

/* ===========================
   SHARE BUTTONS
   =========================== */

.share-buttons {
  display: flex;
  gap: 0.5rem;
}

.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--neutral-gray-300);
  background: white;
  color: var(--neutral-gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.875rem;
}

.share-btn:hover {
  background: linear-gradient(135deg, #00AEEF, #00FFAF);
  color: var(--primary-blue);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 174, 239, 0.3);
}

/* ===========================
   POSTS GRID
   =========================== */

.posts-section {
  background: var(--neutral-gray-100);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.blog-post-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.blog-post-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
}

.blog-post-card-link:hover .blog-post-card {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 174, 239, 0.2);
}

.post-card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

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

.blog-post-card-link:hover .post-card-image img {
  transform: scale(1.1);
}

.post-card-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--neutral-gray-900);
  margin-bottom: 1rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-excerpt {
  font-size: 0.95rem;
  color: var(--neutral-gray-600);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--neutral-gray-200);
}

.btn-read-post {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #00AEEF;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  pointer-events: none;
}

.blog-post-card-link:hover .btn-read-post {
  color: #0A192F;
  gap: 0.75rem;
}

.share-buttons-compact {
  display: flex;
  gap: 0.5rem;
}

.share-btn-compact {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: var(--neutral-gray-100);
  color: var(--neutral-gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.875rem;
  position: relative;
  z-index: 10;
}

.share-btn-compact:hover {
  background: linear-gradient(135deg, #00AEEF, #00FFAF);
  color: #0A192F;
  transform: scale(1.1);
}

/* ===========================
   LOAD MORE BUTTON
   =========================== */

.load-more-section {
  text-align: center;
}

.btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: white;
  color: var(--neutral-gray-700);
  padding: 1rem 2.5rem;
  border: 2px solid var(--neutral-gray-300);
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-load-more:hover {
  background: linear-gradient(135deg, #00AEEF, #00FFAF);
  color: #0A192F;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 174, 239, 0.3);
}

/* ===========================
   NEWSLETTER SECTION
   =========================== */

.newsletter-section {
  background: linear-gradient(135deg, #0A192F 0%, #1a2f4a 100%);
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 50%, rgba(0, 174, 239, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(0, 255, 175, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.newsletter-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 3rem;
}

.newsletter-icon {
  font-size: 3.5rem;
  color: #00FFAF;
}

.newsletter-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.newsletter-text p {
  font-size: 1rem;
  color: var(--neutral-gray-300);
  line-height: 1.6;
}

.newsletter-form {
  min-width: 350px;
}

.input-group {
  display: flex;
  gap: 0.5rem;
}

.input-group input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.input-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.input-group input:focus {
  outline: none;
  border-color: #00FFAF;
  background: rgba(255, 255, 255, 0.15);
}

.btn-subscribe {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #00AEEF, #00FFAF);
  color: #0A192F;
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-subscribe:hover {
  background: linear-gradient(135deg, #00FFAF, #00AEEF);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 255, 175, 0.4);
  color: #0A192F;
}

/* ===========================
   ANIMATIONS
   =========================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 1024px) {
  .featured-post {
    grid-template-columns: 1fr;
  }

  .featured-post-image {
    height: 350px;
  }

  .newsletter-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .newsletter-icon {
    margin: 0 auto;
  }

  .newsletter-form {
    min-width: auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .blog-hero {
    min-height: 40vh;
    padding: 3rem 1.5rem;
  }

  .featured-section,
  .posts-section,
  .newsletter-section {
    padding: 3rem 1.5rem;
  }

  .posts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section-title {
    margin-bottom: 2rem;
  }

  .featured-post-content {
    padding: 2rem;
  }

  .post-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .share-buttons {
    width: 100%;
    justify-content: flex-start;
  }

  .newsletter-content {
    padding: 2rem;
    gap: 1.5rem;
  }

  .input-group {
    flex-direction: column;
  }

  .btn-subscribe {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .blog-hero {
    padding: 2rem 1rem;
  }

  .featured-section,
  .posts-section,
  .newsletter-section {
    padding: 2rem 1rem;
  }

  .featured-post-content {
    padding: 1.5rem;
  }

  .post-card-content {
    padding: 1.5rem;
  }

  .newsletter-content {
    padding: 1.5rem;
  }

  .newsletter-icon {
    font-size: 2.5rem;
  }
}
