/* =============================================================
   Leveredge Media — blog.css
   Loaded on the blog posts index page (home.php).
   post-cat-chip is shared with single.css but defined here
   since blog loads independently of the single template.
   v1.0.0
============================================================= */


/* ── SECTION BACKGROUNDS ────────────────────────────────────── */

#blog-hero  { background: var(--ink-2); border-bottom: 1px solid var(--border); }
#blog-posts { background: var(--ink); padding: 72px 24px 96px; }


/* ============================================================
   BLOG HERO
============================================================= */

#blog-hero { padding: 148px 24px 64px; position: relative; overflow: hidden; }

#blog-hero::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 70% 55% at 50% -5%, rgba(255, 95, 31, 0.07) 0%, transparent 65%);
    pointer-events: none;
}

.blog-hero-inner {
    position: relative; z-index: 1;
    max-width: var(--max);
    margin: 0 auto;
}

.blog-hero-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 68px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.07;
    color: var(--white);
    margin-bottom: 16px;
    max-width: 700px;
}

.blog-hero-sub {
    font-size: 18px;
    color: var(--muted);
    line-height: 1.7;
    max-width: 580px;
}


/* ============================================================
   BLOG GRID
============================================================= */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: var(--max);
    margin: 0 auto 56px;
}


/* ── BLOG CARD ───────────────────────────────────────────────── */

.blog-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.28s, transform 0.28s;
}
.blog-card:hover { border-color: var(--orange-border); transform: translateY(-4px); }

/* Thumbnail */
.blog-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex-shrink: 0;
}
.blog-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    border-radius: 0;
}
.blog-card:hover .blog-thumb img { transform: scale(1.04); }

/* Card body */
.blog-card-body {
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Category chip */
.post-cat-chip {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--orange);
    background: var(--orange-soft);
    border: 1px solid var(--orange-border);
    padding: 4px 11px;
    border-radius: 100px;
    margin-bottom: 12px;
    transition: background 0.2s;
    align-self: flex-start;
}
.post-cat-chip:hover { background: rgba(255, 95, 31, 0.18); }

/* Card title */
.blog-card-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.3;
    color: var(--white);
    margin-bottom: 10px;
}
.blog-card-title a { color: inherit; }
.blog-card-title a:hover { color: var(--orange); }

/* Excerpt */
.blog-card-excerpt {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 18px;
    flex: 1;
}

/* Meta bar */
.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.blog-card-date,
.blog-card-read {
    font-family: var(--font-display);
    font-size: 12px;
    color: var(--muted-2);
    font-weight: 500;
}
.blog-card-sep {
    width: 3px; height: 3px;
    background: var(--muted-2);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Read more link */
.blog-read-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--orange);
    letter-spacing: -0.01em;
    transition: gap 0.2s;
    align-self: flex-start;
}
.blog-read-link:hover { gap: 9px; }


/* ============================================================
   PAGINATION
============================================================= */

.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    max-width: var(--max);
    margin: 0 auto;
}

.blog-pagination a,
.blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    background: var(--card);
    border: 1px solid var(--border-2);
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    text-decoration: none;
}
.blog-pagination a:hover { background: var(--card-2); color: var(--white); border-color: var(--border-2); }
.blog-pagination .current {
    background: var(--orange-soft);
    border-color: var(--orange-border);
    color: var(--orange);
}
.blog-pagination .dots {
    background: transparent;
    border-color: transparent;
    color: var(--muted-2);
    cursor: default;
}


/* ============================================================
   EMPTY STATE
============================================================= */

.blog-empty {
    text-align: center;
    padding: 80px 24px;
    max-width: 480px;
    margin: 0 auto;
}
.blog-empty h2 {
    font-family: var(--font-display);
    font-size: 26px; font-weight: 700;
    color: var(--white); margin-bottom: 12px;
}
.blog-empty p { font-size: 16px; color: var(--muted); line-height: 1.65; }
.blog-empty a { color: var(--orange); }


/* ============================================================
   RESPONSIVE
============================================================= */

@media (max-width: 960px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    #blog-hero  { padding: 112px 24px 48px; }
    #blog-posts { padding: 48px 24px 64px; }
    .blog-hero-title { font-size: clamp(30px, 7vw, 48px); }
}

@media (max-width: 580px) {
    #blog-hero  { padding-top: 108px; }
    .blog-grid  { grid-template-columns: 1fr; }
    .blog-hero-title { font-size: clamp(28px, 9vw, 44px); }
    .blog-card-title { font-size: 18px; }
}

@media (max-width: 480px) {
    #blog-hero  { padding: 96px 16px 40px; }
    #blog-posts { padding: 36px 16px 48px; }
    .blog-grid  { gap: 16px; }
}
