/* =====================================================
   SORTEIEAQUI - BLOG PREMIUM STYLES
   ===================================================== */

/* Paginação Premium */
.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 60px 0 30px;
}

.pagination a {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pagination a.active {
  background: var(--premium-gradient);
  border-color: var(--accent);
  box-shadow: 0 5px 15px rgba(227, 6, 19, 0.3);
}

.pagination a:hover:not(.active) {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* Blog List Card Premium */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.blog-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 32px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(227, 6, 19, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.blog-card-link {
  display: grid;
  grid-template-columns: 320px 1fr;
  text-decoration: none;
  color: #fff;
}

@media (max-width: 800px) {
  .blog-card-link {
    grid-template-columns: 1fr;
  }
}

.blog-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9; /* Standard widescreen aspect ratio */
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-card:hover .blog-thumb img {
  transform: scale(1.05);
}

.blog-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.blog-date {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.blog-content h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 0;
  line-height: 1.3;
  transition: color 0.3s;
}

.blog-card:hover h2 {
  color: var(--accent);
}

.blog-content p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  margin-top: auto;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Interna de Artigo (Premium Post Layout) */
.blog-article {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 40px;
  padding: 60px;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .blog-article {
    padding: 30px 20px;
    border-radius: 24px;
  }
}

.blog-article h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blog-article .post-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.post-cover {
  width: 100%;
  margin: 0 0 50px 0; /* Reset browser figure margins */
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}

.post-cover img {
  width: 100%;
  aspect-ratio: 16/9; /* Mantém proporção padrão no cover também */
  object-fit: cover;
  display: block;
}

.blog-article h2 {
  font-size: 28px;
  font-weight: 800;
  margin: 50px 0 24px;
  color: #fff;
}

.blog-article h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 40px 0 20px;
  color: #fff;
}

.blog-article p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 24px;
}

.blog-article ul, .blog-article ol {
  margin: 0 0 30px 25px;
}

.blog-article li {
  font-size: 17px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 12px;
}

.blog-article a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 700;
}

/* Comparison Table Premium */
.table-wrapper {
  margin: 40px 0;
  border-radius: 20px;
  border: 1px solid var(--card-border);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  text-align: left;
  font-weight: 800;
  color: #fff;
  border-bottom: 1px solid var(--card-border);
}

.comparison-table td {
  padding: 20px;
  border-bottom: 1px solid var(--card-border);
  color: var(--muted);
  font-size: 15px;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}