/**
 * Blog Page Styles - LPG Brasil
 * Estilos específicos da página de blog
 */

/* ========== BLOG HERO ========== */

.blog-hero {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
  text-align: center;
}

.blog-hero__background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background: var(--bg-primary);
  overflow: hidden;
}

/* Vídeo de background */
.blog-hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

/* Overlay escuro sobre o vídeo para garantir legibilidade do texto */
.blog-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 15, 0.7);
  background-image: radial-gradient(
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at top right,
      rgba(59, 130, 246, 0.15),
      transparent 50%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(139, 92, 246, 0.15),
      transparent 50%
    );
  background-size: 20px 20px, 100% 100%, 100% 100%;
  background-position: 0 0, 0 0, 0 0;
  z-index: 1;
}

.blog-hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.blog-hero__title {
  font-size: var(--font-size-h1);
  margin-bottom: var(--space-md);
  line-height: var(--line-height-tight);
}

.blog-hero__description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

/* ========== BLOG LISTING ========== */

.blog-listing {
  position: relative;
  background: var(--bg-secondary);
  padding: var(--space-4xl) 0;
}

.blog-listing::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-primary) 50%,
    transparent 100%
  );
}

/* ========== PAGINATION ========== */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-3xl);
}

.pagination__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 var(--space-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-normal);
  cursor: pointer;
  text-decoration: none;
}

.pagination__item:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.pagination__item--active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--text-primary);
  cursor: default;
}

.pagination__item--active:hover {
  transform: none;
}

.pagination__item--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 640px) {
  .blog-hero {
    min-height: 35vh;
  }

  /* Otimizar vídeo para mobile */
  .blog-hero__video {
    will-change: transform;
  }

  /* Ajustar overlay para melhor contraste em telas pequenas */
  .blog-hero__overlay {
    background: rgba(10, 10, 15, 0.75);
  }

  .blog-hero__title {
    font-size: 2.5rem;
  }

  .blog-hero__description {
    font-size: 1rem;
  }

  .blog-listing {
    padding: var(--space-3xl) 0;
  }

  .pagination {
    gap: var(--space-xs);
    flex-wrap: wrap;
  }

  .pagination__item {
    min-width: 40px;
    height: 40px;
    padding: 0 var(--space-sm);
    font-size: var(--font-size-small);
  }
}
