/* =====================================================
   TPLC Blog Plugin — tplc-blog.css
   ===================================================== */

*, *::before, *::after { box-sizing: border-box; }

.tplc-blog-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #fafaf8;
    color: #1a1a1a;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

.tplc-blg-main { padding-bottom: 80px; }

.tplc-blg-container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ── Hero ── */
.tplc-blg-hero {
    background: #1a1a1a;
    padding: 100px 24px 84px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.tplc-blg-hero-deco { position: absolute; inset: 0; pointer-events: none; }

.tplc-blg-blob {
    position: absolute; border-radius: 50%;
    filter: blur(80px); opacity: .1;
}
.tplc-blg-blob1 { width: 420px; height: 420px; background: #fff; top: -120px; right: -100px; }
.tplc-blg-blob2 { width: 260px; height: 260px; background: #aaa; bottom: -80px; left: -60px; }

.tplc-blg-hero-inner { position: relative; z-index: 2; max-width: 680px; margin: 0 auto; }

.tplc-blg-eyebrow {
    display: inline-block;
    font-size: 11px; font-weight: 600;
    letter-spacing: 2.5px; text-transform: uppercase;
    color: #888; margin-bottom: 16px;
}

.tplc-blg-hero-title {
    font-size: clamp(32px, 5vw, 58px);
    font-weight: 800; color: #fff;
    letter-spacing: -2px; line-height: 1.05;
    margin: 0 0 18px;
}

.tplc-blg-hero-sub {
    font-size: 16px; color: #999;
    line-height: 1.6; margin: 0 0 36px;
}

/* Search */
.tplc-blg-search {
    display: flex; align-items: center;
    max-width: 460px; margin: 0 auto;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 50px;
    padding: 6px 6px 6px 20px;
    gap: 10px;
}

.tplc-blg-search svg { color: #666; flex-shrink: 0; }

.tplc-blg-search input {
    flex: 1; background: none; border: none; outline: none;
    color: #fff; font-size: 15px; font-family: inherit; min-width: 0;
}
.tplc-blg-search input::placeholder { color: #666; }

.tplc-blg-search button {
    background: #fff; color: #1a1a1a;
    border: none; border-radius: 50px;
    padding: 9px 20px; font-size: 13.5px; font-weight: 600;
    cursor: pointer; font-family: inherit;
    transition: background .18s;
    flex-shrink: 0;
}
.tplc-blg-search button:hover { background: #f0f0f0; }

/* ── Featured ── */
.tplc-blg-featured-wrap { padding: 64px 24px 0; }

.tplc-blg-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #ebebeb;
    text-decoration: none; color: inherit;
    max-width: 1160px; margin: 0 auto;
    transition: transform .28s, box-shadow .28s;
}
.tplc-blg-featured:hover { transform: translateY(-4px); box-shadow: 0 24px 64px rgba(0,0,0,.09); }

.tplc-blg-featured-img {
    aspect-ratio: 4/3;
    background: #e8e7e1;
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.tplc-blg-featured-img img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s;
}
.tplc-blg-featured:hover .tplc-blg-featured-img img { transform: scale(1.04); }

.tplc-blg-featured-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,.2) 0%, transparent 60%);
    z-index: 1;
}

.tplc-blg-cat {
    position: absolute; top: 16px; left: 16px; z-index: 2;
    background: #1a1a1a; color: #fff;
    font-size: 10px; font-weight: 700; letter-spacing: .8px;
    text-transform: uppercase; padding: 5px 11px; border-radius: 4px;
}

.tplc-blg-badge {
    position: absolute; bottom: 16px; left: 16px; z-index: 2;
    background: rgba(255,255,255,.18); color: #fff;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; padding: 5px 13px; border-radius: 4px;
    border: 1px solid rgba(255,255,255,.3);
}

.tplc-blg-featured-body {
    padding: 48px;
    display: flex; flex-direction: column; justify-content: center;
}

.tplc-blg-meta {
    display: flex; align-items: center; gap: 16px;
    flex-wrap: wrap; margin-bottom: 16px;
}
.tplc-blg-meta span {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12px; color: #999; font-weight: 500;
}

.tplc-blg-meta-sm { margin-bottom: 10px; gap: 12px; }

.tplc-blg-featured-title {
    font-size: clamp(22px, 2.5vw, 34px);
    font-weight: 800; color: #1a1a1a;
    letter-spacing: -1px; line-height: 1.2;
    margin: 0 0 16px;
}

.tplc-blg-featured-excerpt {
    font-size: 15px; line-height: 1.7; color: #666;
    margin: 0 0 28px;
}

.tplc-blg-cta {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 700; color: #1a1a1a;
    border-bottom: 2px solid #1a1a1a; padding-bottom: 2px;
    transition: gap .2s; align-self: flex-start;
}
.tplc-blg-featured:hover .tplc-blg-cta { gap: 14px; }

/* ── Grid ── */
.tplc-blg-grid-wrap { padding: 56px 24px 0; }

.tplc-blg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 56px;
}

.tplc-blg-card {
    background: #fff;
    border-radius: 12px; overflow: hidden;
    border: 1px solid #ebebeb;
    display: flex; flex-direction: column;
    transition: transform .25s, box-shadow .25s;
}
.tplc-blg-card:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(0,0,0,.09); }

.tplc-blg-card-img-wrap {
    display: block; aspect-ratio: 16/10;
    background: #e8e7e1; position: relative; overflow: hidden;
    flex-shrink: 0;
}
.tplc-blg-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tplc-blg-card:hover .tplc-blg-card-img-wrap img { transform: scale(1.05); }

.tplc-blg-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }

.tplc-blg-card-title {
    font-size: 17px; font-weight: 700; color: #1a1a1a;
    letter-spacing: -.3px; line-height: 1.35; margin: 0 0 10px;
}
.tplc-blg-card-title a { text-decoration: none; color: inherit; transition: color .18s; }
.tplc-blg-card-title a:hover { color: #555; }

.tplc-blg-card-excerpt { font-size: 14px; line-height: 1.65; color: #888; margin: 0 0 auto; padding-bottom: 14px; }

.tplc-blg-card-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 700; color: #1a1a1a;
    text-decoration: none;
    border-top: 1px solid #f0f0f0; padding-top: 14px; margin-top: 4px;
    transition: gap .18s;
}
.tplc-blg-card:hover .tplc-blg-card-link { gap: 10px; }

/* No image placeholder */
.tplc-blg-no-img { width:100%; height:100%; background:#eee; display:flex; align-items:center; justify-content:center; }
.tplc-blg-no-img-sm { background: #f0f0f0; }

/* ── Pagination ── */
.tplc-blg-pagination { display: flex; justify-content: center; margin-top: 0; }

.tplc-blg-pagination ul { list-style:none; margin:0; padding:0; display:flex; gap:8px; align-items:center; }

.tplc-blg-pagination li a,
.tplc-blg-pagination li span {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 8px 16px; min-width: 40px;
    border-radius: 6px; font-size: 14px; font-weight: 500;
    border: 1px solid #e0e0e0; background: #fff; color: #1a1a1a;
    text-decoration: none; transition: background .18s, border-color .18s;
}
.tplc-blg-pagination li span.current { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
.tplc-blg-pagination li a:hover { background: #f5f5f5; border-color: #ccc; }

/* ── Empty ── */
.tplc-blg-empty { padding: 80px 24px; }
.tplc-blg-empty-inner { max-width: 460px; margin: 0 auto; text-align: center; }
.tplc-blg-empty-inner svg { margin-bottom: 24px; }
.tplc-blg-empty-inner h2 { font-size: 24px; font-weight: 700; color: #1a1a1a; margin: 0 0 12px; letter-spacing: -.5px; }
.tplc-blg-empty-inner p  { font-size: 15px; color: #888; line-height: 1.6; margin: 0 0 28px; }

.tplc-blg-btn {
    display: inline-flex; align-items: center;
    padding: 11px 24px; background: #1a1a1a; color: #fff;
    font-size: 14px; font-weight: 600; text-decoration: none; border-radius: 6px;
    transition: background .18s;
}
.tplc-blg-btn:hover { background: #333; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .tplc-blg-featured { grid-template-columns: 1fr; }
    .tplc-blg-featured-img { aspect-ratio: 16/9; }
    .tplc-blg-featured-body { padding: 36px; }
    .tplc-blg-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 640px) {
    .tplc-blg-hero { padding: 72px 20px 56px; }
    .tplc-blg-hero-title { letter-spacing: -1px; }
    .tplc-blg-search { flex-direction: column; border-radius: 12px; padding: 16px; gap: 12px; }
    .tplc-blg-search button { width: 100%; border-radius: 6px; }
    .tplc-blg-featured-wrap { padding: 36px 20px 0; }
    .tplc-blg-featured-body { padding: 24px; }
    .tplc-blg-grid { grid-template-columns: 1fr; gap: 20px; }
    .tplc-blg-grid-wrap { padding: 32px 20px 0; }
}
