/**
 * [EASYBLOG]
 *
 * @author    Achegatec S.L. (Rekire.com) <info@rekire.com>
 * @copyright 2006-2026 Achegatec S.L. - CIF B27340801
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
 */
.footer-blog-block {
    background-color: var(--eb-bg-card);
    border: 1px solid var(--eb-border);
    border-radius: var(--eb-radius);
    box-shadow: var(--eb-shadow);
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    margin-bottom: 30px;
    margin-top: 30px;
    padding: 15px;
}

.footer-blog-section {
    display: flex;
    flex-direction: column;
}

.footer-blog-title {
    margin-top: 0;
    line-height: 1.2;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--eb-heading);
}

.footer-blog-title a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.footer-blog-title a:hover {
    color: var(--eb-primary);
}

.footer-blog-desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--eb-heading);
    margin-bottom: 15px;
}

.x-logo {
  fill: currentColor;
  width: 20px;
  height: 20px;
}

.footer-blog-link {
    color: var(--eb-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}

.footer-blog-link:hover {
    color: var(--eb-heading);
    text-decoration: underline;
}

.footer-section-title {
    margin-top: 0;
    line-height: 1.2;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--eb-text);
}

/* Últimos posts */
.footer-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-post-item {
    margin-bottom: 12px;
}

.footer-post-item:last-child {
    margin-bottom: 0;
}

.footer-post-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: rgba(255,255,255,0.8);
    transition: color 0.3s;
}

.footer-post-link:hover {
    color: #fff;
}

.footer-post-image {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 12px;
}

.footer-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-post-content {
    display: flex;
    flex-direction: column;
}

.footer-post-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 4px;
    color: var(--eb-text);
}

.footer-post-title:hover {
    color: var(--eb-primary);
}
.footer-post-date {
    font-size: 12px;
    color: var(--eb-text);
}

/* Categorías */
.footer-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-categories-list li {
    margin-bottom: 8px;
}

.footer-category-link {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--eb-primary) !important;
    /* El color de enlace del tema de la tienda lo pisaba: texto oscuro sobre
       el color principal, ilegible. Mismo color que el texto de los botones. */
    color: var(--eb-btn-text, #fff) !important;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.3s;
}

.footer-category-link:hover {
    background-color: var(--eb-secondary) !important;
    opacity: 0.9;
    color: var(--eb-btn-text, #fff) !important;
    transform: translateY(-2px);
}

/* Redes sociales */
.footer-social-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--eb-primary);
    border-radius: 50%;
    color: var(--eb-btn-text);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-social-link:hover {
    background-color: var(--eb-btn-text);
    color: var(--eb-primary);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .footer-blog-block {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-blog-section {
        text-align: center;
    }
    
    .footer-blog-title a {
        justify-content: center;
    }
    
    .footer-social-icons {
        justify-content: center;
    }
}
