/* ========================================
   CARDS DE ARTÍCULOS - ESTILO GAMING
   ======================================== */

.discover-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.discover-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
  border-color: #667eea;
}

.discover-link {
  display: flex;
  gap: 20px;
  text-decoration: none;
  color: inherit;
  padding: 16px;
}

/* ========================================
   IMAGEN
   ======================================== */

.discover-image {
  position: relative;
  flex-shrink: 0;
  width: 240px;
  height: 140px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.discover-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.discover-card:hover .discover-image img {
  transform: scale(1.05);
}

/* ========================================
   CONTENIDO
   ======================================== */

.discover-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.discover-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 12px 0;
  color: #1f2937;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.discover-card:hover .discover-title {
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   META INFO
   ======================================== */

.discover-meta {
  display: flex;
  gap: 12px;
  flex-direction: column;
  font-size: 0.85rem;
  color: #6b7280;
}

.discover-author {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.author-logo {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #667eea;
}

.discover-time {
  color: #9ca3af;
  font-weight: 500;
}

/* ========================================
   BADGE (NEW/UPDATED)
   ======================================== */

.new-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.new-badge.new {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: #fff;
}

.new-badge.updated {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
}

/* ========================================
   PAGINACIÓN
   ======================================== */

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 50px 0 30px 0;
}

.pagination a {
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  color: #374151;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.pagination a:hover {
  background: #f3f4f6;
  border-color: #667eea;
  color: #667eea;
}

.pagination a.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* ========================================
   CONTADOR DE ARTÍCULOS
   ======================================== */

.articles-count {
  display: inline-block;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 25px;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  .discover-link {
    flex-direction: column;
    padding: 12px;
  }

  .discover-image {
    width: 100%;
    height: 180px;
  }

  .discover-title {
    font-size: 1.05rem;
  }

  .discover-meta {
    font-size: 0.8rem;
  }

  .pagination a {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .discover-card {
    margin-bottom: 16px;
  }

  .discover-image {
    height: 160px;
  }

  .new-badge {
    font-size: 9px;
    padding: 3px 8px;
  }
}