/* ═══════════════════════════════════════════════════════════════════════
 * AI-Cazare.ro — Blog / Ghid de Călătorie
 * /assets/css/pages/blog.css
 * ═══════════════════════════════════════════════════════════════════════ */

/* ── Container principal ─────────────────────────────────────── */
.blog-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 24px 64px;
}

/* ── Breadcrumb ──────────────────────────────────────────────── */
.blog-wrap .breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 18px;
}
.blog-wrap .breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color .15s;
}
.blog-wrap .breadcrumb a:hover { color: #f97316; }
.blog-wrap .breadcrumb span { color: #1e293b; font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════════════
 * HERO — articol featured
 * ═══════════════════════════════════════════════════════════════════════ */
.blog-hero {
    position: relative;
    display: block;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 32px;
    background: #1e293b;
    min-height: 320px;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    transition: transform .25s, box-shadow .25s;
}
.blog-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0,0,0,.18);
}
.blog-hero-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
    opacity: .55;
}
.blog-hero-body {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px 36px;
    background: linear-gradient(to top, rgba(15,23,42,.92) 0%, rgba(15,23,42,.45) 50%, transparent 100%);
}
.blog-hero-cat {
    display: inline-block;
    background: #f97316;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .8px;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
    width: max-content;
}
.blog-hero-title {
    font-size: clamp(22px, 3.5vw, 36px);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.blog-hero-meta {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 13px;
    color: rgba(255,255,255,.75);
    margin-bottom: 14px;
}
.blog-hero-meta span { display: inline-flex; align-items: center; gap: 5px; }
.blog-hero-meta i { color: #fbbf24; }
.blog-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    padding: 9px 20px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    width: max-content;
    transition: background .15s;
}
.blog-hero:hover .blog-hero-cta {
    background: #f97316;
    border-color: #f97316;
}

/* ═══════════════════════════════════════════════════════════════════════
 * LAYOUT 2 COLOANE (articole + sidebar)
 * ═══════════════════════════════════════════════════════════════════════ */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: start;
}

/* ── Filter chips active ─────────────────────────────────────── */
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff7ed;
    color: #c2410c;
    border: 1.5px solid #fed7aa;
    border-radius: 999px;
    padding: 5px 12px 5px 14px;
    font-size: 12.5px;
    font-weight: 600;
    margin: 0 6px 14px 0;
}
.filter-chip a {
    color: #c2410c;
    text-decoration: none;
    font-weight: 800;
    margin-left: 4px;
    padding: 0 4px;
    line-height: 1;
    transition: color .15s;
}
.filter-chip a:hover { color: #9a3412; }

/* ═══════════════════════════════════════════════════════════════════════
 * GRID ARTICOLE
 * ═══════════════════════════════════════════════════════════════════════ */
.art-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-bottom: 32px;
}

.art-card {
    display: block;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.art-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,.08);
    border-color: #fed7aa;
}

.art-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background: #f1f5f9;
    transition: transform .35s;
}
.art-card:hover .art-card-img { transform: scale(1.04); }

.art-card-img-ph {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
}

.art-card-body {
    padding: 16px 18px 18px;
}

.art-card-cat {
    display: inline-block;
    background: #f8fafc;
    color: #64748b;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .6px;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
    border: 1px solid #e2e8f0;
}

.art-card-title {
    font-size: 16px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.3;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.art-card:hover .art-card-title { color: #f97316; }

.art-card-rez {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.art-card-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 11.5px;
    color: #94a3b8;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}
.art-card-meta i { color: #94a3b8; }

/* ═══════════════════════════════════════════════════════════════════════
 * PAGINARE
 * ═══════════════════════════════════════════════════════════════════════ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.pag-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    background: #fff;
    color: #64748b;
    border: 1.5px solid #e2e8f0;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all .15s;
}
.pag-btn:hover {
    border-color: #f97316;
    color: #f97316;
}
.pag-btn.active {
    background: #f97316;
    color: #fff;
    border-color: #f97316;
    cursor: default;
}
.pag-btn.disabled {
    opacity: .4;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════════
 * SIDEBAR
 * ═══════════════════════════════════════════════════════════════════════ */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 80px;
}

.sb-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.sb-title {
    font-size: 13px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1.5px solid #f8fafc;
    text-transform: uppercase;
    letter-spacing: .4px;
}

/* ═══════════════════════════════════════════════════════════════════════
 * RESPONSIVE — TABLET ≤ 1024px
 * ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .blog-sidebar {
        position: static;
        top: auto;
    }
    .blog-hero-img { height: 380px; }
}

/* ═══════════════════════════════════════════════════════════════════════
 * RESPONSIVE — MOBILE ≤ 640px
 * ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
    .blog-wrap {
        padding: 20px 14px 48px;
    }

    /* Hero compact */
    .blog-hero { border-radius: 14px; min-height: 280px; }
    .blog-hero-img { height: 320px; }
    .blog-hero-body { padding: 24px 20px; }
    .blog-hero-cat { font-size: 10px; padding: 4px 11px; }
    .blog-hero-title { font-size: 20px; line-height: 1.2; }
    .blog-hero-meta { font-size: 12px; gap: 12px; margin-bottom: 10px; }
    .blog-hero-cta { font-size: 12px; padding: 7px 16px; }

    /* Grid 1 coloană */
    .art-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .art-card { border-radius: 12px; }
    .art-card-img,
    .art-card-img-ph { height: 180px; }
    .art-card-body { padding: 14px 16px 16px; }
    .art-card-title { font-size: 15px; }
    .art-card-rez { font-size: 12.5px; -webkit-line-clamp: 2; }

    /* Sidebar compact */
    .sb-card { padding: 16px 18px; }

    /* Paginare compactă */
    .pag-btn {
        min-width: 34px;
        height: 34px;
        font-size: 13px;
        padding: 0 9px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
 * RESPONSIVE — MOBILE FOARTE MIC ≤ 380px
 * ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 380px) {
    .blog-wrap { padding: 18px 12px 40px; }
    .blog-hero-img { height: 260px; }
    .blog-hero-title { font-size: 18px; }
}
