/**
 * Blog Custom Styles - Monitor LATINO
 * Estilos personalizados para el blog y entradas individuales
 */

/* ========================================
   FILTRO DE CATEGORÍAS
   ======================================== */

.blog-category-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 52px;
}

.blog-category-filters ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-category-filters li {
    margin: 0;
}

.blog-category-filters a {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #ffe10c 0%, #ff8a00 100%);
    color: #0a0a0a;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 60px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.blog-category-filters a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(253, 182, 77, 0.3);
}

.blog-category-filters .current-cat a,
.blog-category-filters li.current_page_item a {
    background: transparent;
    color: #ffe10c;
    border-color: #ffe10c;
}

.blog-category-filters .count {
    margin-left: 6px;
    opacity: 0.8;
    font-size: 12px;
}

/* ========================================
   CARDS DE PUBLICACIONES
   ======================================== */

.blog-post-card {
    transition: all 0.3s ease;
    overflow: hidden;
}

.blog-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    border-color: #ffe10c !important;
}

.blog-post-card .wp-block-post-featured-image img {
    transition: transform 0.3s ease;
}

.blog-post-card:hover .wp-block-post-featured-image img {
    transform: scale(1.05);
}

.blog-post-card .wp-block-post-title a {
    transition: color 0.3s ease;
}

.blog-post-card:hover .wp-block-post-title a {
    color: #ffe10c !important;
}

.blog-post-card .wp-block-button.is-style-outline .wp-block-button__link {
    transition: all 0.3s ease;
}

.blog-post-card .wp-block-button.is-style-outline:hover .wp-block-button__link {
    background: linear-gradient(135deg, #ffe10c 0%, #ff8a00 100%);
    color: #0a0a0a !important;
    border-color: #ffe10c !important;
}

/* ========================================
   PAGINACIÓN
   ======================================== */

.wp-block-query-pagination {
    margin-top: 52px;
}

.wp-block-query-pagination .page-numbers {
    min-width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #c4c4c4;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wp-block-query-pagination .page-numbers:hover,
.wp-block-query-pagination .page-numbers.current {
    background: linear-gradient(135deg, #ffe10c 0%, #ff8a00 100%);
    color: #0a0a0a;
    border-color: #ffe10c;
    transform: translateY(-2px);
}

/* ========================================
   ENTRADA INDIVIDUAL (SINGLE POST)
   ======================================== */

.single-post-content h2 {
    color: #f5f5f5;
    font-size: 32px;
    font-weight: 700;
    margin-top: 48px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.single-post-content h3 {
    color: #e5e5e5;
    font-size: 24px;
    font-weight: 600;
    margin-top: 36px;
    margin-bottom: 16px;
    line-height: 1.4;
}

.single-post-content p {
    margin-bottom: 20px;
}

.single-post-content a {
    color: #ffe10c;
    text-decoration: underline;
}

.single-post-content a:hover {
    color: #ff8a00;
}

.single-post-content ul,
.single-post-content ol {
    margin: 24px 0;
    padding-left: 32px;
    color: #c4c4c4;
}

.single-post-content li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.single-post-content blockquote {
    margin: 32px 0;
    padding: 24px 32px;
    border-left: 4px solid #ffe10c;
    background: rgba(253, 182, 77, 0.05);
    border-radius: 8px;
    font-style: italic;
    color: #e5e5e5;
}

.single-post-content img {
    border-radius: 12px;
    margin: 32px 0;
}

.single-post-content pre {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0;
}

.single-post-content code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
}

/* ========================================
   COMENTARIOS
   ======================================== */

.wp-block-comments .wp-block-comment-template {
    margin-top: 32px;
}

.wp-block-post-comments-form input[type="text"],
.wp-block-post-comments-form input[type="email"],
.wp-block-post-comments-form input[type="url"],
.wp-block-post-comments-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #c4c4c4;
    padding: 12px 16px;
    width: 100%;
    transition: all 0.3s ease;
}

.wp-block-post-comments-form input[type="text"]:focus,
.wp-block-post-comments-form input[type="email"]:focus,
.wp-block-post-comments-form input[type="url"]:focus,
.wp-block-post-comments-form textarea:focus {
    border-color: #ffe10c;
    outline: none;
    box-shadow: 0 0 0 3px rgba(253, 182, 77, 0.1);
}

.wp-block-post-comments-form input[type="submit"] {
    background: linear-gradient(135deg, #ffe10c 0%, #ff8a00 100%);
    color: #0a0a0a;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 60px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wp-block-post-comments-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(253, 182, 77, 0.3);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 781px) {
    .blog-category-filters {
        gap: 8px;
    }

    .blog-category-filters a {
        padding: 8px 16px;
        font-size: 12px;
    }

    .single-post-content h2 {
        font-size: 26px;
        margin-top: 32px;
    }

    .single-post-content h3 {
        font-size: 20px;
        margin-top: 24px;
    }

    .wp-block-query-pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        padding: 6px 12px;
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .blog-category-filters ul {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
    }

    .blog-category-filters li {
        flex-shrink: 0;
    }
}
