/* ==========================================================================
   Blog – list & article
   Theme: "valeriu"
   ========================================================================== */

/* ------------------------------
   Blog index (lista de articole)
   ------------------------------ */

.bp-page {
    max-width: var(--vp-container-width, 1348px);
    margin: 0 auto;
    padding: 3rem var(--vp-page-padding-x, 1.5rem) 4rem;
}

.bp-hero {
    margin-bottom: 2.4rem;
}

.bp-hero-inner {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.bp-eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.95);
    margin: 0;
}

.bp-title {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.5rem);
    line-height: 1.2;
}

.bp-intro {
    margin: 0;
    max-width: 40rem;
    color: rgba(148, 163, 184, 0.98);
}

/* Empty state */
.bp-empty {
    border-radius: 1.2rem;
    padding: 1.4rem 1.25rem;
    background: radial-gradient(circle at top left,
        rgba(15, 23, 42, 0.98),
        rgba(15, 23, 42, 1));
    border: 1px solid rgba(15, 23, 42, 1);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.7);
    color: rgba(203, 213, 225, 0.98);
}

/* Grid */
.bp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

/* Card */
.bp-card {
    position: relative;
    border-radius: 1.2rem;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 1);
    background: radial-gradient(circle at top left,
        rgba(15, 23, 42, 0.96),
        rgba(15, 23, 42, 1));
    box-shadow:
        0 22px 55px rgba(15, 23, 42, 0.82),
        inset 0 0 0 1px rgba(148, 163, 184, 0.08);
    display: flex;
    flex-direction: column;
    transition:
        transform 160ms ease-out,
        box-shadow 160ms ease-out,
        border-color 160ms ease-out,
        background 160ms ease-out;
}

/* Card media */
.bp-card-media {
    display: block;
    position: relative;
    overflow: hidden;
}

.bp-card-media-inner {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.bp-card-media-inner img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.03);
    transition: transform 230ms ease-out;
}

.bp-card:hover .bp-card-media-inner img {
    transform: scale(1.07);
}

/* Card body */
.bp-card-body {
    padding: 1.1rem 1.1rem 1rem;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

/* Meta */
.bp-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.8rem;
    align-items: center;
    margin-bottom: 0.45rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.bp-meta-item {
    color: rgba(148, 163, 184, 0.9);
}

.bp-meta-cat {
    text-decoration: none;
    border-radius: 999px;
    padding: 0.15rem 0.7rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.7);
    transition:
        background-color 160ms ease-out,
        border-color 160ms ease-out,
        color 160ms ease-out;
}

.bp-meta-cat:hover {
    background: rgba(30, 64, 175, 0.85);
    border-color: rgba(129, 140, 248, 0.7);
    color: #e5e7eb;
}

/* Card title */
.bp-card-title {
    margin: 0 0 0.45rem;
    font-size: 1.05rem;
    line-height: 1.35;
}

.bp-card-title a {
    color: #e5e7eb;
    text-decoration: none;
    display: inline-block;
    transition:
        color 180ms ease-out,
        transform 150ms ease-out;
}

.bp-card:hover .bp-card-title a {
    color: #c7d2fe;
    transform: translateY(-1px);
}

/* Excerpt */
.bp-card-excerpt {
    margin: 0 0 0.8rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(203, 213, 225, 0.98);
}

/* Card footer */
.bp-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: flex-start;
}

.bp-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    text-decoration: none;
    color: rgba(191, 219, 254, 0.96);
    padding: 0.35rem 0.6rem 0.4rem;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.6);
    background: radial-gradient(circle at top,
        rgba(30, 64, 175, 0.9),
        rgba(15, 23, 42, 1));
    box-shadow:
        0 10px 30px rgba(30, 64, 175, 0.65),
        inset 0 0 0 1px rgba(191, 219, 254, 0.16);
    transition:
        background 170ms ease-out,
        box-shadow 170ms ease-out,
        transform 130ms ease-out,
        border-color 170ms ease-out;
}

.bp-read-more-icon {
    font-size: 0.9rem;
    transform: translateY(-0.5px);
    transition: transform 170ms ease-out;
}

.bp-read-more:hover {
    transform: translateY(-1px);
    border-color: rgba(191, 219, 254, 0.9);
    box-shadow:
        0 16px 40px rgba(30, 64, 175, 0.85),
        inset 0 0 0 1px rgba(219, 234, 254, 0.25);
}

.bp-read-more:hover .bp-read-more-icon {
    transform: translate(2px, -1px);
}

/* Pagination */
.bp-pagination {
    margin-top: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.bp-page-list {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.bp-page-link {
    min-width: 2.2rem;
    height: 2.2rem;
    padding-inline: 0.45rem;
    border-radius: 999px;
    border: 1px solid rgba(51, 65, 85, 1);
    background: rgba(15, 23, 42, 0.96);
    color: rgba(148, 163, 184, 0.98);
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition:
        background-color 150ms ease-out,
        color 150ms ease-out,
        border-color 150ms ease-out,
        transform 120ms ease-out;
}

.bp-page-link:hover {
    background: rgba(51, 65, 85, 1);
    color: #e5e7eb;
    transform: translateY(-1px);
}

.bp-page-link--current {
    border-color: rgba(96, 165, 250, 1);
    background: radial-gradient(circle at top,
        rgba(37, 99, 235, 0.95),
        rgba(15, 23, 42, 1));
    color: #e5e7eb;
    box-shadow:
        0 12px 30px rgba(30, 64, 175, 0.8),
        inset 0 0 0 1px rgba(191, 219, 254, 0.25);
}

.bp-page-link--nav {
    padding-inline: 0.9rem;
    min-width: auto;
}

/* ------------------------------
   Blog article (pagina show)
   ------------------------------ */

/* Wrapper: combină stilul general cu ajustări pentru articol */
.ba-page {
    padding-top: 2.75rem;
}

/* Back link sus */
.ba-hero-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 1.2rem;
}

.ba-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    padding: 0.3rem 0.8rem 0.35rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    color: rgba(156, 163, 175, 0.98);
    text-decoration: none;
    background: radial-gradient(circle at top,
        rgba(15, 23, 42, 0.96),
        rgba(15, 23, 42, 1));
    box-shadow:
        0 10px 28px rgba(15, 23, 42, 0.8),
        inset 0 0 0 1px rgba(15, 23, 42, 0.9);
    transition:
        border-color 160ms ease-out,
        box-shadow 160ms ease-out,
        transform 130ms ease-out,
        color 160ms ease-out,
        background 160ms ease-out;
}

.ba-back-icon {
    font-size: 0.95rem;
}

.ba-back-link:hover {
    transform: translateY(-1px);
    border-color: rgba(251, 191, 36, 0.8);
    color: #e5e7eb;
    background: radial-gradient(circle at top,
        rgba(251, 191, 36, 0.25),
        rgba(15, 23, 42, 1));
    box-shadow:
        0 14px 36px rgba(15, 23, 42, 0.95),
        inset 0 0 0 1px rgba(251, 191, 36, 0.35);
}

/* Hero articol */
.ba-hero-inner {
    gap: 1.1rem;
}

.ba-hero-text {
    max-width: 760px;
}

/* Categoria */
.ba-category {
    margin-bottom: 0.6rem;
}

.ba-category-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    border: 1px solid rgba(129, 140, 248, 0.7);
    color: #c7d2fe;
    background: radial-gradient(circle at top,
        rgba(31, 41, 55, 0.95),
        rgba(15, 23, 42, 1));
    text-decoration: none;
    transition:
        border-color 150ms ease-out,
        background 150ms ease-out,
        transform 120ms ease-out,
        color 150ms ease-out;
}

.ba-category-pill:hover {
    transform: translateY(-1px);
    border-color: rgba(191, 219, 254, 0.85);
    background: radial-gradient(circle at top,
        rgba(37, 99, 235, 0.9),
        rgba(15, 23, 42, 1));
    color: #e5e7eb;
}

/* Titlu articol */
.ba-title {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: clamp(2.1rem, 3.3vw, 2.9rem);
    line-height: 1.15;
}

/* Meta row: data, reading time, updated */
.ba-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1.4rem;
    align-items: center;
    font-size: 0.82rem;
    color: rgba(148, 163, 184, 0.96);
    margin-bottom: 0.9rem;
}

.ba-meta-item {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
}

.ba-meta-label {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    color: rgba(148, 163, 184, 0.9);
}

/* Intro scurt (excerpt) */
.ba-intro {
    margin: 0.3rem 0 0.4rem;
    max-width: 52rem;
    font-size: 0.98rem;
    line-height: 1.8;
    color: rgba(209, 213, 219, 0.98);
}

/* Cover image */
.ba-cover {
    margin: 2rem auto 1.8rem;
    border-radius: 1.4rem;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 1);
    max-width: var(--vp-container-width, 1348px);
    box-shadow:
        0 26px 70px rgba(15, 23, 42, 0.95),
        inset 0 0 0 1px rgba(148, 163, 184, 0.15);
    background: radial-gradient(circle at top left,
        rgba(15, 23, 42, 0.96),
        rgba(15, 23, 42, 1));
}

.ba-cover img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 220ms ease-out;
}

.ba-cover:hover img {
    transform: scale(1.05);
}

/* Conținut articol */
.ba-article {
    max-width: 760px;
    margin: 0 auto 2.8rem;
    font-size: 0.98rem;
    line-height: 1.8;
    color: rgba(229, 231, 235, 0.98);
}

/* Tipografie de bază pentru HTML din content */
.ba-article p {
    margin: 0 0 1.1rem;
}

.ba-article h2,
.ba-article h3,
.ba-article h4 {
    margin-top: 1.8rem;
    margin-bottom: 0.7rem;
    line-height: 1.35;
    color: #f9fafb;
}

.ba-article h2 {
    font-size: 1.5rem;
}

.ba-article h3 {
    font-size: 1.25rem;
}

.ba-article h4 {
    font-size: 1.05rem;
}

.ba-article ul,
.ba-article ol {
    margin: 0 0 1.2rem 1.3rem;
    padding: 0;
}

.ba-article li {
    margin-bottom: 0.4rem;
}

.ba-article blockquote {
    margin: 1.4rem 0;
    padding: 0.9rem 1.1rem;
    border-radius: 0.75rem;
    border-left: 3px solid rgba(251, 191, 36, 0.9);
    background: radial-gradient(circle at top left,
        rgba(15, 23, 42, 0.96),
        rgba(15, 23, 42, 1));
    color: rgba(209, 213, 219, 0.98);
    font-style: italic;
}

/* Links din articol (dacă există) */
.ba-article a {
    color: #93c5fd;
    text-decoration: underline;
    text-decoration-color: rgba(129, 140, 248, 0.8);
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition:
        color 150ms ease-out,
        text-decoration-color 150ms ease-out;
}

.ba-article a:hover {
    color: #bfdbfe;
    text-decoration-color: rgba(251, 191, 36, 0.9);
}

/* Prev / Next navigation */
.ba-nav {
    max-width: 760px;
    margin: 0 auto 2.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    justify-content: space-between;
}

.ba-nav-link {
    flex: 1 1 0;
    min-width: 0;
    border-radius: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(31, 41, 55, 1);
    background: radial-gradient(circle at top left,
        rgba(15, 23, 42, 1),
        rgba(15, 23, 42, 0.98));
    color: rgba(209, 213, 219, 0.98);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    box-shadow:
        0 16px 40px rgba(15, 23, 42, 0.9),
        inset 0 0 0 1px rgba(15, 23, 42, 0.9);
    transition:
        border-color 150ms ease-out,
        box-shadow 150ms ease-out,
        transform 120ms ease-out,
        background 150ms ease-out;
}

.ba-nav-prev {
    justify-content: flex-start;
}

.ba-nav-next {
    justify-content: flex-end;
    text-align: right;
}

.ba-nav-label {
    font-size: 1rem;
    opacity: 0.8;
}

.ba-nav-text {
    font-size: 0.9rem;
    line-height: 1.5;
}

.ba-nav-link:hover {
    transform: translateY(-1px);
    border-color: rgba(251, 191, 36, 0.85);
    background: radial-gradient(circle at top left,
        rgba(251, 191, 36, 0.22),
        rgba(15, 23, 42, 1));
    box-shadow:
        0 20px 48px rgba(15, 23, 42, 0.98),
        inset 0 0 0 1px rgba(251, 191, 36, 0.4);
}

/* Related posts */
.ba-related {
    max-width: var(--vp-container-width, 1348px);
    margin: 0 auto 4rem;
}

.ba-related-header {
    margin-bottom: 1.6rem;
}

.ba-related-title {
    margin: 0;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ba-related-empty {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(148, 163, 184, 0.98);
}

/* Grid-ul de related folosește .bp-grid, dar îl mai strângem un pic */
.ba-related-grid {
    gap: 1.3rem;
}

/* Variante ușor mai compacte pentru card-urile related */
.ba-related-card .bp-card-body {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

/* ------------------------------
   Responsive
   ------------------------------ */

@media (max-width: 900px) {
    .bp-page {
        padding-inline: var(--vp-page-padding-x-sm, 1.1rem);
    }

    .bp-grid {
        gap: 1.2rem;
    }

    .ba-cover {
        margin-inline: var(--vp-page-padding-x-sm, 1.1rem);
    }

    .ba-nav {
        padding-inline: var(--vp-page-padding-x-sm, 1.1rem);
    }

    .ba-related {
        padding-inline: var(--vp-page-padding-x-sm, 1.1rem);
    }
}

@media (max-width: 600px) {
    .bp-page {
        padding-inline: var(--vp-page-padding-x-xs, 1rem);
        padding-top: 2.5rem;
    }

    .bp-card-body {
        padding-inline: 1rem;
        padding-bottom: 0.95rem;
    }

    .bp-title {
        font-size: 1.85rem;
    }

    .ba-title {
        font-size: 1.9rem;
    }

    .ba-meta-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .ba-cover {
        margin-inline: var(--vp-page-padding-x-xs, 1rem);
        border-radius: 1.1rem;
    }

    .ba-nav {
        flex-direction: column;
        gap: 0.6rem;
        padding-inline: var(--vp-page-padding-x-xs, 1rem);
    }

    .ba-related {
        padding-inline: var(--vp-page-padding-x-xs, 1rem);
    }
}
