﻿/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   CHEVIO BEST DEAL SRL â€” Noutati / Blog
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€â”€ ASTRA RESET â”€â”€â”€ */
body.chevio-dark-blog .site-content,
body.chevio-dark-blog #primary,
body.chevio-dark-blog #content,
body.chevio-dark-blog .ast-container {
    background-color: var(--chv-bg-main) !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

/* â”€â”€â”€ WRAPPER â”€â”€â”€ */
#chevio-blog-page {
    padding-top: 0;
    min-height: 100vh;
}


/* â•â•â• HERO â•â•â• */
.chv-blog-hero {
    background: var(--chv-ink);
    padding: 160px clamp(24px, 5vw, 80px) clamp(50px, 7vw, 80px);
    position: relative;
    overflow: hidden;
}

.chv-blog-hero::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: var(--chv-v700);
    filter: blur(140px);
    opacity: .1;
    top: -100px;
    right: -50px;
}

.chv-blog-hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.chv-blog-hero .sec-h { color: #fff; }
.chv-blog-hero .sec-tag { color: var(--chv-v300); border-color: rgba(255, 174, 122, .18); }
.chv-blog-hero .sec-p { color: rgba(255, 255, 255, .35); }


/* â•â•â• BLOG SECTION â•â•â• */
.chv-blog-section {
    padding: clamp(50px, 8vw, 90px) clamp(24px, 5vw, 80px);
    background: var(--chv-bg-main);
}

.chv-blog-container {
    max-width: 1200px;
    margin: 0 auto;
}


/* â•â•â• GRID â•â•â• */
.chv-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}


/* â•â•â• CARD â•â•â• */
.chv-blog-card {
    background: var(--chv-bg-white);
    border-radius: 20px;
    border: 1.5px solid transparent;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: transform .45s cubic-bezier(.76, 0, .24, 1),
                border-color .45s cubic-bezier(.76, 0, .24, 1),
                box-shadow .45s cubic-bezier(.76, 0, .24, 1);
}

.chv-blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--chv-v200);
    box-shadow: 0 24px 60px rgba(255, 107, 53, .1);
}

.chv-blog-card-thumb {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--chv-v50);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chv-blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s cubic-bezier(.76, 0, .24, 1);
}

.chv-blog-card:hover .chv-blog-card-thumb img {
    transform: scale(1.04);
}

.chv-blog-card-thumb-fallback {
    color: var(--chv-v300);
}

.chv-blog-card-body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}


/* â”€â”€â”€ Meta â”€â”€â”€ */
.chv-blog-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: .75rem;
    font-weight: 500;
    color: var(--chv-muted);
}

.chv-blog-card-cat {
    padding: 3px 10px;
    background: var(--chv-v50);
    color: var(--chv-v600);
    border-radius: 50px;
    font-weight: 600;
    font-size: .7rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}


/* â”€â”€â”€ Title & Excerpt â”€â”€â”€ */
.chv-blog-card-title {
    font-family: var(--chv-font-main);
    font-size: 1rem;
    font-weight: 600;
    color: var(--chv-ink);
    margin: 0 0 10px;
    line-height: 1.4;
}

.chv-blog-card-excerpt {
    font-size: .84rem;
    color: var(--chv-ink2);
    line-height: 1.65;
    margin: 0;
    flex: 1;
}


/* â”€â”€â”€ Link â”€â”€â”€ */
.chv-blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--chv-v600);
    transition: color var(--chv-transition);
}

.chv-blog-card:hover .chv-blog-card-link { color: var(--chv-v500); }

.chv-blog-card-link svg {
    transition: transform var(--chv-transition);
}

.chv-blog-card:hover .chv-blog-card-link svg {
    transform: translate(3px, -3px);
}


/* â•â•â• PAGINATION â•â•â• */
.chv-blog-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 50px;
}

.chv-blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 12px;
    font-family: var(--chv-font-main);
    font-size: .88rem;
    font-weight: 500;
    color: var(--chv-ink2);
    background: var(--chv-bg-white);
    border: 1.5px solid var(--chv-v100);
    text-decoration: none;
    transition: all var(--chv-transition);
}

.chv-blog-pagination .page-numbers:hover {
    border-color: var(--chv-v400);
    color: var(--chv-v600);
}

.chv-blog-pagination .page-numbers.current {
    background: var(--chv-accent);
    color: #fff;
    border-color: var(--chv-accent);
}

.chv-blog-pagination .prev,
.chv-blog-pagination .next {
    padding: 0;
}


/* â•â•â• EMPTY STATE â•â•â• */
.chv-blog-empty {
    text-align: center;
    padding: 80px 24px;
    color: var(--chv-muted);
}

.chv-blog-empty svg {
    margin-bottom: 20px;
    color: var(--chv-v300);
}

.chv-blog-empty h2 {
    font-family: var(--chv-font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--chv-ink);
    margin: 0 0 8px;
}

.chv-blog-empty p {
    font-size: .9rem;
    margin: 0;
}


/* â•â•â• MOBILE â•â•â• */
@media (max-width: 921px) {
    .chv-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .chv-blog-hero { padding-top: 130px; }
}

@media (max-width: 540px) {
    .chv-blog-grid {
        grid-template-columns: 1fr;
    }
}

/* â•â•â• DESKTOP MARE â•â•â• */
@media (min-width: 1400px) {
    .chv-blog-container { max-width: 1320px; }
}


/* ===========================================
   ELEVATION PASS - blog cards depth + typography
   =========================================== */

/* Hero - animated accent line + grid pattern */
.chv-blog-hero {
    position: relative;
}
.chv-blog-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 107, 53, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 53, .04) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 70% 50% at 40% 50%, #000 0%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 50% at 40% 50%, #000 0%, transparent 100%);
}
.chv-blog-hero-content {
    position: relative;
    z-index: 2;
}
.chv-blog-hero .sec-h {
    background: linear-gradient(135deg, #fff 0%, #fff 60%, var(--chv-v300) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Blog card - layered depth + top accent reveal */
.chv-blog-card {
    position: relative;
    overflow: hidden;
}
.chv-blog-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--chv-v600), var(--chv-v400));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .5s cubic-bezier(.4, 0, .2, 1);
    z-index: 2;
}
.chv-blog-card:hover::after {
    transform: scaleX(1);
}
.chv-blog-card:hover {
    transform: translateY(-6px);
    border-color: var(--chv-v300);
    box-shadow: 0 28px 60px -12px rgba(255, 107, 53, .18),
                0 0 0 1px rgba(255, 107, 53, .08);
}

/* Thumbnail - radial overlay on hover */
.chv-blog-card-thumb {
    position: relative;
}
.chv-blog-card-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 50%,
        rgba(26, 26, 26, .35) 100%
    );
    opacity: 0;
    transition: opacity .45s ease;
    pointer-events: none;
}
.chv-blog-card:hover .chv-blog-card-thumb::after {
    opacity: 1;
}

/* Category badge - bg + glow */
.chv-blog-card-cat {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 107, 53, .1);
    border-radius: 50px;
    color: var(--chv-v600) !important;
    transition: all .3s ease;
}
.chv-blog-card:hover .chv-blog-card-cat {
    background: var(--chv-v600);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(255, 107, 53, .35);
}

/* Title - accent fade on hover */
.chv-blog-card-title {
    transition: color .3s ease;
}
.chv-blog-card:hover .chv-blog-card-title {
    color: var(--chv-v700);
}

/* Link arrow - more dramatic */
.chv-blog-card-link {
    transition: color .3s ease;
}
.chv-blog-card-link svg {
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}
.chv-blog-card:hover .chv-blog-card-link svg {
    transform: translateX(6px) rotate(-8deg);
}

/* Pagination - depth on hover */
.chv-blog-pagination .page-numbers {
    transition: all .25s ease;
    position: relative;
    overflow: hidden;
}
.chv-blog-pagination .page-numbers::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, .25),
        transparent
    );
    transition: left .6s cubic-bezier(.4, 0, .2, 1);
}
.chv-blog-pagination .page-numbers:hover::before {
    left: 100%;
}
.chv-blog-pagination .page-numbers:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(255, 107, 53, .35);
}
.chv-blog-pagination .page-numbers.current {
    box-shadow: 0 10px 26px -6px rgba(255, 107, 53, .45);
}

@media (prefers-reduced-motion: reduce) {
    .chv-blog-pagination .page-numbers::before {
        transition: none !important;
    }
}
