/* Herparcadan — Blog (Listing + Single Post) — Modern, light theme */

.blog-page-wrapper {
    background: #fff;
    color: #111;
    min-height: 100vh;
}
.blog-main-content {
    padding: 140px 0 100px;
    max-width: 1280px;
    margin: 0 auto;
}
.blog-main-content .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── LISTING HEADER ───────────────────────────────────────── */
.listing-header {
    text-align: center;
    margin-bottom: 60px;
}
.listing-header .section-title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
    color: #0a0a0a;
}
.listing-header .lead {
    color: #666;
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ─── LISTING GRID ─────────────────────────────────────────── */
.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.blog-entry-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.blog-entry-card:hover {
    transform: translateY(-6px);
    border-color: #E02424;
    box-shadow: 0 20px 50px rgba(0,0,0,.08);
}

.entry-image {
    aspect-ratio: 16/10;
    background: #f3f3f5;
    overflow: hidden;
    position: relative;
}
.entry-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.blog-entry-card:hover .entry-image img { transform: scale(1.06); }
.entry-image:empty::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #f4f4f7 0%, #e8e8ed 100%);
}

.entry-details {
    padding: 22px 22px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.entry-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 12px;
}
.entry-meta .cat {
    font-weight: 700;
    color: #E02424;
}
.entry-meta .date { color: #888; }

.entry-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 10px;
    color: #0a0a0a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.entry-excerpt {
    color: #5c5c62;
    font-size: .94rem;
    line-height: 1.6;
    margin: 0 0 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.entry-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
    font-size: .84rem;
}
.entry-footer .read { color: #888; }
.entry-footer .more { color: #E02424; font-weight: 600; }

/* ─── EMPTY / ALERT ────────────────────────────────────────── */
.alert {
    grid-column: 1 / -1;
    padding: 28px;
    border-radius: 16px;
    text-align: center;
}
.alert-info {
    background: #f6f6f9;
    color: #555;
    border: 1px dashed #dcdce0;
}

/* ─── PAGINATION ───────────────────────────────────────────── */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 60px;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid #e5e5e8;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    background: #fff;
    transition: .2s;
}
.pagination a:hover { border-color: #E02424; color: #E02424; }
.pagination .current,
.pagination .active {
    background: #E02424;
    color: #fff;
    border-color: #E02424;
}

/* ─── SINGLE POST — PREMIUM ────────────────────────────────── */
.post-detail-premium {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
}
.post-header-hero {
    text-align: center;
    margin-bottom: 50px;
}
.post-meta-top {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    font-size: .88rem;
    color: #6a6a6a;
}
.post-meta-top .badge {
    padding: 6px 14px;
    border-radius: 100px;
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    font-size: .72rem;
    letter-spacing: .06em;
    background: #E02424;
}
.post-meta-top time,
.post-meta-top .read-time { color: #6a6a6a; }

.post-detail-title {
    font-size: clamp(1.9rem, 4.2vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0;
    color: #0a0a0a;
}

.post-featured-media {
    margin: 0 auto 60px;
    border-radius: 20px;
    overflow: hidden;
    max-width: 1000px;
    box-shadow: 0 20px 50px rgba(0,0,0,.08);
}
.post-featured-media img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content-body {
    font-size: 1.08rem;
    line-height: 1.85;
    color: #2a2a2a;
}
.post-article-text p { margin: 0 0 22px; }
.post-article-text h2 {
    font-size: 1.7rem;
    font-weight: 800;
    margin: 48px 0 18px;
    color: #0a0a0a;
    letter-spacing: -0.01em;
}
.post-article-text h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 36px 0 14px;
    color: #0a0a0a;
}
.post-article-text ul,
.post-article-text ol { margin: 0 0 22px; padding-left: 24px; }
.post-article-text li { margin-bottom: 8px; }
.post-article-text a { color: #E02424; text-decoration: underline; }
.post-article-text strong { color: #0a0a0a; }
.post-article-text img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    margin: 24px 0;
}
.post-article-text blockquote {
    border-left: 4px solid #E02424;
    background: #fafafa;
    padding: 22px 28px;
    margin: 32px 0;
    font-style: italic;
    color: #333;
    border-radius: 0 12px 12px 0;
}

/* ─── SHARE ────────────────────────────────────────────────── */
.post-footer-social {
    margin-top: 80px;
    padding-top: 36px;
    border-top: 1px solid #eee;
    text-align: center;
}
.post-footer-social h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0a0a0a;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: 0 0 16px;
}
.share-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.share-btn {
    padding: 10px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: .88rem;
    transition: transform .2s, opacity .2s;
}
.share-btn:hover { transform: translateY(-2px); opacity: .92; }
.share-btn.twitter  { background: #000;     color: #fff; }
.share-btn.linkedin { background: #0077b5;  color: #fff; }
.share-btn.facebook { background: #1877f2;  color: #fff; }

/* ─── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .blog-main-content { padding: 100px 0 60px; }
    .listing-grid { gap: 18px; }
    .post-detail-premium { padding: 0 16px; }
    .post-footer-social { margin-top: 56px; }
}
