/* ═══════════════════════════════════════════
   TIMILUC SRL — Noutăți (Blog Listing)
   Hero, post grid, post cards, pagination.
   ═══════════════════════════════════════════ */


/* ─── PAGE WRAPPER ─── */
.tml-blog-page {
    background: var(--tml-bg);
    min-height: 100vh;
}


/* ─── HERO ─── */
.tml-blog-hero {
    position: relative;
    padding: clamp(140px, 20vw, 220px) 24px clamp(50px, 8vw, 80px);
    text-align: center;
    overflow: hidden;
}

.tml-blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.tml-blog-hero-content {
    position: relative;
    z-index: 1;
}

.tml-blog-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--tml-gold);
    margin-bottom: 1.25rem;
}

.tml-blog-hero-tag::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--tml-gold-dim);
}

.tml-blog-hero h1 {
    font-family: var(--tml-font-serif);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: var(--tml-white);
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.tml-blog-hero h1 em {
    font-style: italic;
    color: var(--tml-gold);
}

.tml-blog-hero p {
    font-size: clamp(0.82rem, 1.1vw, 0.95rem);
    color: var(--tml-muted);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.75;
    font-weight: 300;
}


/* ─── BLOG CONTAINER ─── */
.tml-blog-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px clamp(60px, 10vw, 120px);
}


/* ─── CATEGORY FILTER ─── */
.tml-blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.tml-blog-filter-btn {
    padding: 6px 16px;
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
    color: var(--tml-muted);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all var(--tml-transition);
    font-family: var(--tml-font-sans);
    text-decoration: none;
}

.tml-blog-filter-btn:hover {
    border-color: rgba(0, 206, 209, 0.3);
    color: var(--tml-cyan);
}

.tml-blog-filter-btn.active {
    border-color: var(--tml-cyan);
    background: var(--tml-cyan);
    color: var(--tml-bg);
}


/* ─── POST GRID ─── */
.tml-blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 540px) {
    .tml-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .tml-blog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}


/* ─── POST CARD ─── */
.tml-blog-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.tml-blog-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

/* Image */
.tml-blog-card-img {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--tml-bg2);
}

.tml-blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.tml-blog-card:hover .tml-blog-card-img img {
    transform: scale(1.05);
}

.tml-blog-card-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(1, 11, 20, 0.5) 0%, transparent 50%);
    pointer-events: none;
}

/* Category badge on image */
.tml-blog-card-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 60px;
    background: rgba(1, 11, 20, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--tml-cyan);
    text-decoration: none;
}

/* Body */
.tml-blog-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tml-blog-card-date {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--tml-muted);
    margin-bottom: 8px;
}

.tml-blog-card-title {
    font-family: var(--tml-font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tml-white);
    line-height: 1.3;
    margin-bottom: 8px;
}

.tml-blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--tml-transition);
}

.tml-blog-card-title a:hover {
    color: var(--tml-cyan);
}

.tml-blog-card-excerpt {
    font-size: 0.78rem;
    color: var(--tml-muted);
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tml-blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: auto;
}

.tml-blog-card-read {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--tml-cyan);
    text-decoration: none;
    transition: gap var(--tml-transition);
}

.tml-blog-card-read:hover {
    gap: 10px;
}

.tml-blog-card-read svg {
    width: 12px;
    height: 12px;
}

.tml-blog-card-time {
    font-size: 0.65rem;
    color: var(--tml-muted);
    font-weight: 400;
}


/* ─── PAGINATION ─── */
.tml-blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.tml-blog-pagination a,
.tml-blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
    color: var(--tml-muted);
    font-size: 0.8rem;
    font-weight: 600;
    transition: all var(--tml-transition);
    text-decoration: none;
}

.tml-blog-pagination a:hover {
    border-color: var(--tml-cyan);
    color: var(--tml-cyan);
    background: rgba(0, 206, 209, 0.05);
}

.tml-blog-pagination span.current {
    border-color: var(--tml-cyan);
    background: var(--tml-cyan);
    color: var(--tml-bg);
}

.tml-blog-pagination .prev,
.tml-blog-pagination .next {
    width: auto;
    padding: 0 16px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}


/* ─── EMPTY STATE ─── */
.tml-blog-empty {
    text-align: center;
    padding: 60px 24px;
}

.tml-blog-empty-ico {
    color: var(--tml-muted);
    opacity: 0.2;
    margin-bottom: 1.5rem;
}

.tml-blog-empty h3 {
    font-family: var(--tml-font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--tml-white);
    margin-bottom: 0.5rem;
}

.tml-blog-empty p {
    font-size: 0.85rem;
    color: var(--tml-muted);
    font-weight: 300;
}


/* ─── RESPONSIVE ─── */
@media (max-width: 767px) {
    .tml-blog-card-body {
        padding: 16px;
    }

    .tml-blog-filter-btn {
        padding: 5px 12px;
        font-size: 0.62rem;
    }
}
