/**
 * Estilos para página de Blog
 * Microdental QH Theme
 * Grid 4x2 con imágenes grandes
 */

/* ========================================
   BLOG HERO SECTION
   ======================================== */
.blog-hero {
    position: relative;
    min-height: 400px;
    background: linear-gradient(135deg, #B85170 0%, #9A3E5C 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="white" opacity="0.1"/><circle cx="80" cy="30" r="1.5" fill="white" opacity="0.08"/><circle cx="40" cy="60" r="3" fill="white" opacity="0.06"/><circle cx="70" cy="80" r="2.5" fill="white" opacity="0.09"/><path d="M10 50L30 40L50 50L70 40L90 50" stroke="white" stroke-width="0.5" opacity="0.1" fill="none"/></svg>') repeat;
    z-index: 0;
}

.blog-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.blog-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.blog-hero .hero-icon {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.blog-hero .hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.blog-hero .hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    font-weight: 300;
    margin: 0;
}

/* ========================================
   BLOG MAIN CONTENT
   ======================================== */
.blog-main {
    padding: 5rem 0;
    background: #f8f9fa;
}

/* ========================================
   BLOG STATISTICS
   ======================================== */
.blog-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 4rem;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(183, 73, 110, 0.1);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #B85170;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   BLOG POSTS GRID - 3x3 LAYOUT (9 posts)
   ======================================== */
.blog-posts-grid-3x3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.blog-post-item {
    grid-column: span 1;
}

/* ========================================
   POST CARD STYLING
   ======================================== */
article.post,
article.blog-post-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(183, 73, 110, 0.05);
    transition: all 0.4s ease;
    position: relative;
    height: fit-content;
}

article.post:hover,
article.blog-post-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(183, 73, 110, 0.15);
    border-color: rgba(183, 73, 110, 0.2);
}

/* ========================================
   POST THUMBNAIL - IMÁGENES MÁS GRANDES
   ======================================== */
.post-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

/* Imágenes para grid 3x3 - más grandes */
.blog-post-item .post-thumbnail {
    height: 240px;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    border-radius: 0;
}

.post-thumbnail:hover img {
    transform: scale(1.08);
}

/* Overlay de la imagen */
.post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(183, 73, 110, 0.8), rgba(158, 58, 92, 0.6));
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 1.5rem;
}

.post-thumbnail:hover .post-overlay {
    opacity: 1;
}

.post-category {
    background: white;
    color: #B85170;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   POST CONTENT
   ======================================== */
.post-content {
    padding: 2rem;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #888;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-meta svg {
    color: #B85170;
}

/* ========================================
   POST TITLE & CONTENT
   ======================================== */
.entry-title {
    margin: 0 0 1rem;
    font-size: 1.4rem;
    line-height: 1.4;
}

.featured-post .entry-title {
    font-size: 1.8rem;
}

.entry-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-title a:hover {
    color: #B85170;
}

.entry-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* ========================================
   READ MORE BUTTON
   ======================================== */
.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #B85170, #9A3E5C);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(183, 73, 110, 0.3);
    color: white;
}

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

.read-more-btn:hover svg {
    transform: translateX(3px);
}

/* ========================================
   BLOG PAGINATION - LIMPIA
   ======================================== */
.blog-pagination {
    text-align: center;
    margin-top: 4rem;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Eliminar puntos de lista y estilos por defecto */
.blog-pagination ul,
.blog-pagination ol {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.blog-pagination li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.blog-pagination li::before,
.blog-pagination li::after {
    display: none !important;
    content: none !important;
}

.blog-pagination a,
.blog-pagination span.current,
.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    background: white;
    color: #666;
    border: 2px solid #e0e0e0;
}

.blog-pagination a:hover {
    border-color: #B85170;
    color: #B85170;
    transform: translateY(-2px);
}

.blog-pagination span.current,
.blog-pagination .page-numbers.current {
    background: #B85170 !important;
    color: white !important;
    border: 2px solid #B85170 !important;
}

.blog-pagination .dots {
    padding: 0.8rem 0.5rem;
    color: #999;
    border: none;
    background: none;
}

/* ========================================
   NO POSTS SECTION
   ======================================== */
.no-posts-section {
    text-align: center;
    padding: 5rem 2rem;
}

.no-posts-content h2 {
    color: #333;
    font-size: 2rem;
    margin: 2rem 0 1rem;
}

.no-posts-content p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #B85170, #9A3E5C);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(183, 73, 110, 0.3);
}

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

/* Tablets */
@media (max-width: 1024px) {
    .blog-posts-grid-3x3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .blog-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .blog-hero .hero-title {
        font-size: 2.2rem;
    }
    
    .blog-hero .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .blog-posts-grid-3x3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-stats {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .post-content {
        padding: 1.5rem;
    }
    
    .blog-post-item .post-thumbnail {
        height: 200px;
    }
    
    .entry-title {
        font-size: 1.3rem;
    }
    
    .blog-pagination ul,
    .pagination-wrapper {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .blog-pagination a,
    .blog-pagination span.current,
    .blog-pagination .page-numbers {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .blog-main {
        padding: 3rem 0;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .blog-pagination ul,
    .pagination-wrapper {
        flex-direction: column;
        width: 100%;
    }
    
    .blog-pagination a,
    .blog-pagination span.current,
    .blog-pagination .page-numbers {
        width: 100%;
        justify-content: center;
        max-width: 250px;
    }
}