/* Blog Enhanced Styles - Estilos mejorados para el blog de PadelMi */

/* Estilos para el contenido del blog */
.blog-content {
  line-height: 1.7;
  color: #374151;
}

/* Títulos principales */
.blog-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f2937;
  margin: 2rem 0 1.5rem 0;
  line-height: 1.2;
  border-bottom: 3px solid #10b981;
  padding-bottom: 0.5rem;
}

.blog-content h2 {
  font-size: 2rem;
  font-weight: 600;
  color: #1f2937;
  margin: 2.5rem 0 1rem 0;
  line-height: 1.3;
  position: relative;
  padding-left: 1rem;
}

.blog-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 4px;
  height: 2rem;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 2px;
}

.blog-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #374151;
  margin: 2rem 0 1rem 0;
  line-height: 1.4;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border-left: 4px solid #10b981;
  border-radius: 0 8px 8px 0;
}

.blog-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #4b5563;
  margin: 1.5rem 0 0.75rem 0;
  line-height: 1.4;
}

/* Párrafos */
.blog-content p {
  margin: 1rem 0;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #4b5563;
}

/* Listas */
.blog-content ul,
.blog-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.blog-content li {
  margin: 0.75rem 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #4b5563;
  position: relative;
}

.blog-content ul li::marker {
  color: #10b981;
  font-weight: bold;
}

.blog-content ul li::before {
  content: "🏓";
  position: absolute;
  left: -1.5rem;
  top: 0;
  font-size: 0.8rem;
}

/* Listas especiales para características */
.blog-content ul li strong {
  color: #1f2937;
  font-weight: 600;
}

/* Cajas destacadas para niveles */
.level-card {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.level-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
  border-color: #10b981;
}

.level-card h3 {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  margin: -1.5rem -1.5rem 1rem -1.5rem;
  padding: 1rem 1.5rem;
  border-radius: 12px 12px 0 0;
  border: none;
}

/* Cajas de consejos */
.tip-box {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #f59e0b;
  border-radius: 8px;
  padding: 1rem;
  margin: 1.5rem 0;
  border-left: 4px solid #f59e0b;
}

.tip-box::before {
  content: "💡";
  font-size: 1.2rem;
  margin-right: 0.5rem;
}

/* Cajas de advertencia */
.warning-box {
  background: linear-gradient(135deg, #fef2f2, #fecaca);
  border: 1px solid #ef4444;
  border-radius: 8px;
  padding: 1rem;
  margin: 1.5rem 0;
  border-left: 4px solid #ef4444;
}

.warning-box::before {
  content: "⚠️";
  font-size: 1.2rem;
  margin-right: 0.5rem;
}

/* Cajas de información */
.info-box {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1px solid #3b82f6;
  border-radius: 8px;
  padding: 1rem;
  margin: 1.5rem 0;
  border-left: 4px solid #3b82f6;
}

.info-box::before {
  content: "ℹ️";
  font-size: 1.2rem;
  margin-right: 0.5rem;
}

/* Estilos para tablas */
.blog-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.blog-content th {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 1.1rem;
}

.blog-content td {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  color: #4b5563;
}

.blog-content tr:hover {
  background-color: #f9fafb;
}

/* Estilos para código */
.blog-content code {
  background: #f3f4f6;
  color: #dc2626;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: 0.9rem;
}

/* Estilos para bloques de código */
.blog-content pre {
  background: #1f2937;
  color: #f9fafb;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid #374151;
}

.blog-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

/* Estilos para enlaces */
.blog-content a {
  color: #10b981;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.blog-content a:hover {
  color: #059669;
  border-bottom-color: #10b981;
}

/* Estilos para citas */
.blog-content blockquote {
  border-left: 4px solid #10b981;
  background: #f9fafb;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #4b5563;
}

/* Estilos para imágenes */
.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  margin: 1.5rem 0;
}

/* Estilos para separadores */
.blog-content hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, #10b981, transparent);
  margin: 3rem 0;
}

/* Estilos para elementos destacados */
.highlight {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
}

/* Estilos para badges de nivel */
.level-badge {
  display: inline-block;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0.25rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Estilos para progreso */
.progress-bar {
  background: #e5e7eb;
  border-radius: 10px;
  height: 8px;
  margin: 0.5rem 0;
  overflow: hidden;
}

.progress-fill {
  background: linear-gradient(90deg, #10b981, #059669);
  height: 100%;
  border-radius: 10px;
  transition: width 0.3s ease;
}

/* Estilos responsivos */
@media (max-width: 768px) {
  .blog-content h1 {
    font-size: 2rem;
  }

  .blog-content h2 {
    font-size: 1.5rem;
  }

  .blog-content h3 {
    font-size: 1.25rem;
  }

  .level-card {
    padding: 1rem;
  }

  .blog-content table {
    font-size: 0.9rem;
  }

  .blog-content th,
  .blog-content td {
    padding: 0.75rem;
  }
}

/* Animaciones suaves */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.blog-content > * {
  animation: fadeInUp 0.6s ease-out;
}

/* Estilos para el índice de contenidos */
.table-of-contents {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.table-of-contents h3 {
  background: none;
  border: none;
  padding: 0;
  margin: 0 0 1rem 0;
  color: #1f2937;
  font-size: 1.25rem;
}

.table-of-contents ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.table-of-contents li {
  margin: 0.5rem 0;
  padding: 0;
}

.table-of-contents a {
  color: #4b5563;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  display: block;
  transition: all 0.3s ease;
}

.table-of-contents a:hover {
  background: #10b981;
  color: white;
  transform: translateX(4px);
}

/* Estilos para estadísticas */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.stat-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #10b981;
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: #6b7280;
  margin-top: 0.5rem;
}
