/* ═══════════════════════════════════════
   VexpoCMS — Blog Front
   Prefisso: vxbf-
═══════════════════════════════════════ */

.vxbf-container { max-width: 960px; margin: 0 auto; padding: 0 16px; }

/* ── Header ── */
.vxbf-header { text-align: center; padding: 32px 0 24px; }
.vxbf-title { font-size: 28px; font-weight: 700; color: var(--vx-text); margin-bottom: 6px; }
.vxbf-subtitle { font-size: 14px; color: var(--vx-text-3); }

/* ── Filters ── */
.vxbf-filters { margin-bottom: 24px; }

.vxbf-search-wrap {
    position: relative;
    margin-bottom: 12px;
}
.vxbf-search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--vx-text-3); pointer-events: none; }
.vxbf-search {
    width: 100%;
    padding: 10px 12px 10px 36px;
    font-size: 14px;
    font-family: inherit;
    background: var(--vx-bg-card);
    border: 1px solid var(--vx-border);
    border-radius: 8px;
    color: var(--vx-text);
    outline: none;
    transition: border .15s;
}
.vxbf-search:focus { border-color: var(--vx-primary); }

.vxbf-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.vxbf-cat-btn {
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid var(--vx-border);
    border-radius: 99px;
    background: transparent;
    color: var(--vx-text-2);
    cursor: pointer;
    font-family: inherit;
    transition: all .15s;
}
.vxbf-cat-btn span { opacity: .5; margin-left: 2px; }
.vxbf-cat-btn:hover { background: var(--vx-bg-hover); }
.vxbf-cat-btn.active {
    background: var(--cat-c, var(--vx-primary));
    color: #fff;
    border-color: var(--cat-c, var(--vx-primary));
}

/* ── Grid ── */
.vxbf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.vxbf-card {
    background: var(--vx-bg-card);
    border: 1px solid var(--vx-border);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}
.vxbf-card:hover { transform: translateY(-3px); box-shadow: var(--vx-shadow-lg); }

.vxbf-card-big { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
.vxbf-card-big .vxbf-card-img { min-height: 280px; }

.vxbf-card-img {
    position: relative;
    min-height: 180px;
    background: var(--vx-bg-input);
    overflow: hidden;
}
.vxbf-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; transition: transform .3s; }
.vxbf-card:hover .vxbf-card-img img { transform: scale(1.04); }
.vxbf-card-noimg { background: linear-gradient(135deg, var(--vx-bg-input), var(--vx-bg-hover)); }

.vxbf-card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; }

.vxbf-card-badges { display: flex; gap: 6px; flex-wrap: wrap; }

.vxbf-card-cat {
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 4px;
    background: var(--cc, var(--vx-primary));
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.vxbf-card-hype {
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    color: #fff;
}
.vxbf-hype-breaking { background: #ff2d2d; }
.vxbf-hype-hot { background: #ff8c00; }
.vxbf-hype-warm { background: #f5c542; color: #333; }
.vxbf-hype-cooling { background: #5bc0de; }

.vxbf-card-featured {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 600;
    color: var(--vx-warning);
}

.vxbf-card-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--vx-text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vxbf-card-excerpt {
    font-size: 13px;
    color: var(--vx-text-2);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vxbf-card-footer {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: var(--vx-text-3);
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--vx-border);
}

/* ── Pagination ── */
.vxbf-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 24px 0;
}
.vxbf-page {
    width: 36px;
    height: 36px;
    border: 1px solid var(--vx-border);
    border-radius: 6px;
    background: transparent;
    color: var(--vx-text-2);
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s;
}
.vxbf-page.active { background: var(--vx-primary); color: #fff; border-color: var(--vx-primary); }
.vxbf-page:hover:not(.active) { background: var(--vx-bg-hover); }

/* ── Loading / Empty ── */
.vxbf-loading { text-align: center; padding: 60px 20px; color: var(--vx-text-3); font-size: 14px; }
.vxbf-empty { text-align: center; padding: 60px 20px; color: var(--vx-text-3); }
.vxbf-empty p { margin-top: 12px; font-size: 14px; }

/* ── Breadcrumb ── */
.vxbf-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    font-size: 13px;
    color: var(--vx-text-3);
}
.vxbf-breadcrumb a { display: flex; align-items: center; gap: 4px; color: var(--vx-primary); }
.vxbf-bc-sep { opacity: .4; }

/* ── Hero Detail ── */
.vxbf-hero {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    margin-bottom: 24px;
}
.vxbf-hero-overlay { position: absolute; inset: 0; }
.vxbf-hero-body { position: relative; z-index: 1; }

.vxbf-hero-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 12px;
    color: rgba(255,255,255,.7);
}
.vxbf-hero-cat {
    padding: 3px 10px;
    border-radius: 4px;
    background: var(--cc, var(--vx-primary));
    color: #fff;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
}
.vxbf-source-badge {
    padding: 2px 8px;
    background: rgba(255,255,255,.15);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
}

.vxbf-hero-title { font-weight: 700; line-height: 1.15; margin-bottom: 12px; }
.vxbf-hero-desc { line-height: 1.5; margin-bottom: 16px; opacity: .85; }

.vxbf-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity .15s;
}
.vxbf-hero-btn:hover { opacity: .85; }

/* ── Countdown ── */
.vxbf-countdown {
    text-align: center;
    padding: 20px;
    background: var(--vx-bg-card);
    border: 1px solid var(--vx-border);
    border-radius: 10px;
    margin-bottom: 24px;
}
.vxbf-cd-label { font-size: 14px; font-weight: 500; color: var(--vx-text-2); margin-bottom: 8px; }
.vxbf-cd-timer { font-size: 32px; font-weight: 700; color: var(--vx-text); font-variant-numeric: tabular-nums; letter-spacing: 2px; }

/* ── Article ── */
.vxbf-article { margin-bottom: 24px; }

.vxbf-article-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--vx-text-3);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--vx-border);
}

.vxbf-article-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--vx-text);
}
.vxbf-article-content h2 { font-size: 22px; font-weight: 700; margin: 28px 0 12px; color: var(--vx-text); }
.vxbf-article-content h3 { font-size: 18px; font-weight: 600; margin: 24px 0 8px; color: var(--vx-text); }
.vxbf-article-content p { margin-bottom: 16px; }
.vxbf-article-content img { border-radius: 8px; margin: 16px 0; }
.vxbf-article-content blockquote {
    border-left: 3px solid var(--vx-primary);
    padding: 12px 20px;
    margin: 16px 0;
    background: var(--vx-bg-input);
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: var(--vx-text-2);
}
.vxbf-article-content a { color: var(--vx-primary); text-decoration: underline; }
.vxbf-article-content ul, .vxbf-article-content ol { margin: 12px 0; padding-left: 24px; }
.vxbf-article-content li { margin-bottom: 6px; }
.vxbf-article-content pre {
    background: var(--vx-bg-input);
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 13px;
    margin: 16px 0;
}

.vxbf-source-link { margin-top: 20px; }
.vxbf-source-link a { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }

/* ── Video ── */
.vxbf-video { margin-bottom: 24px; }
.vxbf-video-embed {
    position: relative;
    padding-bottom: 56.25%;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}
.vxbf-video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

/* ── Gallery ── */
.vxbf-gallery { margin-bottom: 24px; }
.vxbf-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}
.vxbf-gallery-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}
.vxbf-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.vxbf-gallery-item:hover img { transform: scale(1.06); }

/* ── Lightbox ── */
.vxbf-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vxbf-lb-img { max-width: 90vw; max-height: 85vh; border-radius: 6px; object-fit: contain; }
.vxbf-lb-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    opacity: .7;
}
.vxbf-lb-close:hover { opacity: 1; }
.vxbf-lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.1);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s;
}
.vxbf-lb-nav:hover { background: rgba(255,255,255,.2); }
.vxbf-lb-prev { left: 16px; }
.vxbf-lb-next { right: 16px; }

/* ── Tags ── */
.vxbf-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
}
.vxbf-tag {
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    background: var(--vx-bg-input);
    border: 1px solid var(--vx-border);
    border-radius: 99px;
    color: var(--vx-text-2);
    transition: all .15s;
}
.vxbf-tag:hover { background: var(--vx-primary-light); color: var(--vx-primary); border-color: var(--vx-primary); }

/* ── Social bar ── */
.vxbf-social-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-top: 1px solid var(--vx-border);
    border-bottom: 1px solid var(--vx-border);
    margin-bottom: 24px;
}

.vxbf-share-btns { display: flex; gap: 6px; }

.vxbf-share-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--vx-border);
    background: transparent;
    color: var(--vx-text-2);
    cursor: pointer;
    transition: all .15s;
    text-decoration: none;
}
.vxbf-share-btn:hover { background: var(--vx-bg-hover); color: var(--vx-text); }
.vxbf-share-fb:hover { color: #1877f2; border-color: #1877f2; }
.vxbf-share-tw:hover { color: #000; border-color: #000; }
.vxbf-share-wa:hover { color: #25d366; border-color: #25d366; }
.vxbf-share-tg:hover { color: #0088cc; border-color: #0088cc; }

.vxbf-recommend-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--vx-border);
    border-radius: 99px;
    background: transparent;
    color: var(--vx-text-2);
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    transition: all .15s;
}
.vxbf-recommend-btn:hover { background: var(--vx-bg-hover); }
.vxbf-recommend-btn.active { color: var(--vx-primary); border-color: var(--vx-primary); background: var(--vx-primary-light); }
.vxbf-recommend-btn.active svg { fill: var(--vx-primary); }

/* ── Reviews ── */
.vxbf-reviews-section { margin-bottom: 32px; }
.vxbf-section-title { font-size: 18px; font-weight: 600; color: var(--vx-text); margin-bottom: 16px; }

.vxbf-rev-avg {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.vxbf-rev-num { font-size: 28px; font-weight: 700; color: var(--vx-text); }
.vxbf-rev-total { font-size: 13px; color: var(--vx-text-3); }
.vxbf-no-reviews { color: var(--vx-text-3); font-size: 13px; }

.vxbf-review {
    padding: 16px;
    border: 1px solid var(--vx-border);
    border-radius: 8px;
    margin-bottom: 10px;
    background: var(--vx-bg-card);
}
.vxbf-review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; font-size: 13px; }
.vxbf-review-header strong { color: var(--vx-text); }
.vxbf-review-header span { color: var(--vx-text-3); font-size: 11px; }
.vxbf-review-stars { margin-bottom: 6px; }
.vxbf-review-title { font-weight: 600; font-size: 14px; margin-bottom: 4px; color: var(--vx-text); }
.vxbf-review-text { font-size: 13px; color: var(--vx-text-2); line-height: 1.5; margin-bottom: 6px; }
.vxbf-review-pro { font-size: 12px; color: var(--vx-success); }
.vxbf-review-con { font-size: 12px; color: var(--vx-danger); }
.vxbf-review-reply {
    margin-top: 8px;
    padding: 10px 12px;
    background: var(--vx-bg-input);
    border-radius: 6px;
    font-size: 12px;
    color: var(--vx-text-2);
}
.vxbf-review-reply small { color: var(--vx-text-3); }

/* Review form */
.vxbf-review-form {
    margin-top: 20px;
    padding: 20px;
    background: var(--vx-bg-card);
    border: 1px solid var(--vx-border);
    border-radius: 10px;
}
.vxbf-form-title { font-size: 15px; font-weight: 600; color: var(--vx-text); margin-bottom: 12px; }

.vxbf-stars-input {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}
.vxbf-star { cursor: pointer; }

.vxbf-form-row { display: flex; gap: 10px; margin-bottom: 10px; }

.vxbf-input, .vxbf-textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    background: var(--vx-bg-input);
    border: 1px solid var(--vx-border);
    border-radius: 6px;
    color: var(--vx-text);
    outline: none;
    transition: border .15s;
    margin-bottom: 10px;
}
.vxbf-input:focus, .vxbf-textarea:focus { border-color: var(--vx-primary); }

.vxbf-btn-submit {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    background: var(--vx-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
}
.vxbf-btn-submit:hover { background: var(--vx-primary-hover); }

/* ── Related ── */
.vxbf-related { margin-bottom: 32px; }
.vxbf-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.vxbf-related-card {
    border: 1px solid var(--vx-border);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    background: var(--vx-bg-card);
}
.vxbf-related-card:hover { transform: translateY(-2px); box-shadow: var(--vx-shadow-lg); }
.vxbf-related-img { height: 120px; background: var(--vx-bg-input); overflow: hidden; }
.vxbf-related-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vxbf-related-info { padding: 12px; }
.vxbf-related-info h4 { font-size: 13px; font-weight: 600; color: var(--vx-text); line-height: 1.3; margin-bottom: 4px; }
.vxbf-related-info span { font-size: 11px; color: var(--vx-text-3); }

/* ── Toast ── */
.vxbf-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    color: #fff;
    z-index: 9999;
    opacity: 0;
    transition: all .25s;
    pointer-events: none;
}
.vxbf-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.vxbf-toast-success { background: var(--vx-success); }
.vxbf-toast-error { background: var(--vx-danger); }
.vxbf-toast-info { background: var(--vx-info); }

/* ── Responsive ── */
@media (max-width: 640px) {
    .vxbf-title { font-size: 22px; }
    .vxbf-grid { grid-template-columns: 1fr; }
    .vxbf-card-big { grid-template-columns: 1fr; }
    .vxbf-card-big .vxbf-card-img { min-height: 200px; }
    .vxbf-hero { border-radius: 0; margin-left: -16px; margin-right: -16px; }
    .vxbf-hero-title { font-size: 1.6rem !important; }
    .vxbf-cd-timer { font-size: 24px; }
    .vxbf-form-row { flex-direction: column; gap: 0; }
    .vxbf-social-bar { flex-direction: column; gap: 12px; }
    .vxbf-related-grid { grid-template-columns: 1fr; }
    .vxbf-gallery-grid { grid-template-columns: repeat(3, 1fr); }
}