﻿/* ============================================================
   blogs.css  —  Página de listado de blogs
   ============================================================ */

/* ── Page header ──────────────────────────────────────────── */
.page-header-block {
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f1f3f5;
}

/* ── Filter sidebar ───────────────────────────────────────── */
.filter-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.25rem;
    position: sticky;
    top: 1.25rem;
}

.filter-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 6px;
}

.filter-sublabel {
    font-size: 11px;
    color: #adb5bd;
    margin-bottom: 4px;
}

.filter-input {
    display: block;
    width: 100%;
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
    color: #212529;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

    .filter-input:focus {
        border-color: #4299e1;
        box-shadow: 0 0 0 3px rgba(66, 153, 225, .15);
        background: #fff;
    }

.filter-select {
    display: block;
    width: 100%;
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
    color: #212529;
    background: #f8f9fa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 10px center;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

    .filter-select:focus {
        border-color: #4299e1;
        box-shadow: 0 0 0 3px rgba(66, 153, 225, .15);
        background-color: #fff;
    }

.filter-icon-left {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: #adb5bd;
    pointer-events: none;
}

.btn-clear {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    font-size: 12px;
    color: #6c757d;
    background: transparent;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: all .15s;
}

    .btn-clear:hover {
        background: #f8f9fa;
        color: #212529;
        border-color: #adb5bd;
    }

.divider-filter {
    border: none;
    border-top: 1px solid #f1f3f5;
    margin: 1rem 0;
}

/* ── Tags wrap ────────────────────────────────────────────── */
.tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}


    .tags-wrap .active {
        --tblr-bg-opacity: 0.3
    }

.tag-pill {
    cursor: pointer;
    user-select: none;
    transition: opacity .15s;
}

    .tag-pill:hover {
        opacity: .8;
    }

/* ── Results bar ──────────────────────────────────────────── */
.sort-select {
    height: 32px;
    padding: 0 10px;
    font-size: 13px;
    color: #495057;
    background: #f8f9fa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 8px center;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    transition: border-color .15s;
}

    .sort-select:focus {
        border-color: #4299e1;
    }

/* ── Skeleton ─────────────────────────────────────────────── */
.skel {
    background: linear-gradient(90deg, var(--tblr-gray-100) 25%, var(--tblr-gray-200) 50%, var(--tblr-gray-100) 75%);
    background-size: 600px 100%;
    animation: shimmer 2s infinite linear;
    border-radius: var(--tblr-border-radius);
}

@keyframes shimmer {
    0% {
        background-position: 600px 0;
    }

    100% {
        background-position: -600px 0;
    }
}

/* ── Empty state ──────────────────────────────────────────── */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    color: #adb5bd;
    text-align: center;
    gap: 8px;
}

    .empty-state i {
        font-size: 40px;
        opacity: .5;
    }

    .empty-state p {
        font-size: 14px;
        margin: 0;
    }

/* ── Pagination ───────────────────────────────────────────── */
.pagination .page-link {
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    padding: 0 8px;
    border-radius: 8px !important;
    border: 1px solid #dee2e6;
    color: #495057;
    background: #fff;
    transition: all .15s;
}

    .pagination .page-link:hover {
        background: #f8f9fa;
        border-color: #adb5bd;
        color: #212529;
    }

.pagination .page-item.active .page-link {
    background: #4299e1;
    border-color: #4299e1;
    color: #fff;
    font-weight: 600;
}

.pagination .page-item.disabled .page-link {
    opacity: .45;
    pointer-events: none;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 992px) {
    .filter-card {
        position: static;
    }
}
