/**
 * LHD Blog Page — Styles
 * All colors use CSS custom properties (--lhd-*) set by the active style preset.
 */

/* ═══ RESET ═══ */
.lhd-blog-wrap,
.lhd-single-wrap {
    max-width: 1400px;
    margin: 0 auto;
    font-family: var(--lhd-body-font);
    line-height: 1.5;
}
.lhd-blog-wrap *, .lhd-blog-wrap *::before, .lhd-blog-wrap *::after,
.lhd-single-wrap *, .lhd-single-wrap *::before, .lhd-single-wrap *::after {
    box-sizing: border-box;
}
.lhd-blog-wrap a, .lhd-single-wrap a {
    text-decoration: none;
    color: inherit;
}
/* Beat theme link overrides on cards */
a.lhd-post-card,
a.lhd-post-card:hover,
a.lhd-post-card:focus,
a.lhd-post-card:visited,
a.lhd-featured-card,
a.lhd-featured-card:hover,
a.lhd-featured-card:focus,
a.lhd-featured-card:visited {
    text-decoration: none !important;
    color: inherit;
}
/* Only the title gets an underline on hover */
a.lhd-post-card:hover .lhd-post-body h3 {
    text-decoration: underline;
}
a.lhd-featured-card:hover .lhd-featured-body h2 {
    text-decoration: underline;
}

/* ═══ TOOLBAR ═══ */
.lhd-toolbar {
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--lhd-card-border);
    background: var(--lhd-card-bg);
}
.lhd-search-form { flex: 0 1 auto; }
.lhd-search-box {
    width: 200px;
    padding: 8px 12px 8px 34px;
    border: 1px solid var(--lhd-input-border);
    border-radius: 6px;
    font-size: 13px;
    background: var(--lhd-input-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") 11px center no-repeat;
    color: var(--lhd-text-primary);
    transition: border-color 0.15s;
}
.lhd-search-box:focus {
    outline: none;
    border-color: var(--lhd-accent);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}
.lhd-filter-label {
    font-size: 11px;
    color: var(--lhd-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.lhd-filter-pills { display: flex; gap: 6px; }
.lhd-filter-pill {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid var(--lhd-input-border);
    background: transparent;
    color: var(--lhd-text-secondary);
    cursor: pointer;
    transition: all 0.15s;
}
.lhd-filter-pill:hover {
    border-color: var(--lhd-accent);
    color: var(--lhd-accent);
}
.lhd-filter-pill.active {
    background: var(--lhd-pill-active-bg);
    color: var(--lhd-pill-active-text);
    border-color: var(--lhd-pill-active-bg);
}
.lhd-sort-form { margin-left: auto; }
.lhd-sort-select {
    padding: 7px 12px;
    border: 1px solid var(--lhd-input-border);
    border-radius: 6px;
    font-size: 12px;
    background: var(--lhd-input-bg);
    color: var(--lhd-text-secondary);
    cursor: pointer;
}

/* ═══ CONTENT AREA ═══ */
.lhd-content-area {
    padding: 28px 24px;
    background: var(--lhd-body-bg);
}

/* ═══ CATEGORY BADGES ═══ */
.lhd-cat-badge {
    display: inline-block;
    width: auto;
    align-self: flex-start;
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* ═══ FEATURED CARD ═══ */
.lhd-featured-card {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    background: var(--lhd-card-bg);
    border: 1px solid var(--lhd-card-border);
    margin-bottom: 28px;
    transition: box-shadow 0.2s;
}
.lhd-featured-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.lhd-featured-img {
    width: 50%;
    min-height: 280px;
    background: var(--lhd-thumb-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}
.lhd-feat-placeholder {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.lhd-featured-body {
    width: 50%;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.lhd-badge-featured {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--lhd-accent);
    margin-bottom: 10px;
}
.lhd-badge-featured span {
    width: 6px; height: 6px;
    background: var(--lhd-accent);
    border-radius: 50%;
}
.lhd-featured-body h2 {
    font-family: var(--lhd-heading-font);
    font-size: 22px;
    font-weight: 400;
    color: var(--lhd-text-primary);
    line-height: 1.35;
    margin: 0 0 10px;
}
.lhd-featured-body > p {
    font-size: 14px;
    color: var(--lhd-text-secondary);
    line-height: 1.6;
    margin: 0 0 14px;
}
.lhd-read-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--lhd-accent);
    margin-bottom: 16px;
    display: inline-block;
}

/* ═══ AUTHOR ELEMENTS ═══ */
.lhd-author-row { display: flex; align-items: center; gap: 10px; }
.lhd-author-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--lhd-accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 600; color: #fff;
    flex-shrink: 0;
}
.lhd-author-avatar-img {
    width: 32px; height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.lhd-author-meta { font-size: 12px; }
.lhd-author-name { color: var(--lhd-text-primary); font-weight: 600; }
.lhd-author-date { color: var(--lhd-text-muted); margin-top: 2px; }

/* ═══ SECTION LABEL ═══ */
.lhd-section-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--lhd-text-muted);
    margin-bottom: 16px;
    font-weight: 600;
}
.lhd-post-count { font-weight: 400; text-transform: none; letter-spacing: 0; }

/* ═══ POST GRID ═══ */
.lhd-posts-grid,
.lhd-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.lhd-post-card {
    background: var(--lhd-card-bg);
    border: 1px solid var(--lhd-card-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.lhd-post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}
.lhd-post-thumb {
    height: 160px;
    background: var(--lhd-thumb-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.lhd-post-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.lhd-post-body h3 {
    font-size: 21px;
    font-weight: 600;
    color: var(--lhd-text-primary);
    line-height: 1.4;
    margin: 0 0 8px;
}
.lhd-post-body > p {
    font-size: 13px;
    color: var(--lhd-text-secondary);
    line-height: 1.55;
    margin: 0 0 14px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.lhd-post-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--lhd-divider);
}
.lhd-avatar-sm, .lhd-author-avatar-sm {
    width: 24px; height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
}
.lhd-author-avatar-sm { object-fit: cover; }
.lhd-avatar-sm {
    background: var(--lhd-accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 9px; font-weight: 600; color: #fff;
}
.lhd-post-footer .lhd-author-name { font-size: 12px; color: var(--lhd-text-primary); font-weight: 500; }
.lhd-post-footer .lhd-author-date { font-size: 12px; color: var(--lhd-text-muted); margin-left: auto; }

/* ═══ NO RESULTS ═══ */
.lhd-no-results { text-align: center; padding: 48px 24px; color: var(--lhd-text-muted); font-size: 14px; }

/* ═══ PAGINATION ═══ */
.lhd-pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 28px; }
.lhd-page-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--lhd-input-border);
    background: var(--lhd-card-bg);
    color: var(--lhd-text-secondary);
    font-size: 13px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s;
}
.lhd-page-btn:hover { border-color: var(--lhd-accent); color: var(--lhd-accent); }
.lhd-page-btn.active { background: var(--lhd-accent); color: var(--lhd-accent-text); border-color: var(--lhd-accent); }
.lhd-page-ellipsis { color: var(--lhd-text-muted); font-size: 14px; padding: 0 2px; }


/* ══════════════════════════════════════════
   SINGLE POST STYLES
   ══════════════════════════════════════════ */

.lhd-single-wrap { max-width: 100%; }
.lhd-single-hero {
    min-height: 400px;
    background: var(--lhd-thumb-bg);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
}
.lhd-single-hero-overlay {
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 100%);
    padding: 60px 0 40px;
}
.lhd-single-hero-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px;
}
.lhd-single-meta-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.lhd-single-read-time {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}
.lhd-single-title {
    font-family: var(--lhd-heading-font);
    font-size: 36px;
    font-weight: 400;
    color: #fff;
    line-height: 1.25;
    margin: 0 0 20px;
}
.lhd-single-author-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.lhd-single-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.3);
}
.lhd-single-author-name { color: #fff; font-weight: 600; font-size: 14px; }
.lhd-single-date { color: rgba(255,255,255,0.65); font-size: 13px; margin-top: 2px; }

/* Content */
.lhd-single-content-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 24px 60px;
}
.lhd-single-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--lhd-text-primary);
}
.lhd-single-content p { margin: 0 0 1.5em; }
.lhd-single-content h2 {
    font-family: var(--lhd-heading-font);
    font-size: 26px;
    font-weight: 400;
    margin: 2em 0 0.75em;
    color: var(--lhd-text-primary);
}
.lhd-single-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 1.5em 0 0.5em;
    color: var(--lhd-text-primary);
}
.lhd-single-content blockquote {
    border-left: 3px solid var(--lhd-accent);
    margin: 2em 0;
    padding: 16px 24px;
    font-style: italic;
    color: var(--lhd-text-secondary);
    background: var(--lhd-body-bg);
    border-radius: 0 8px 8px 0;
}
.lhd-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5em 0;
}
.lhd-single-content a { color: var(--lhd-accent); text-decoration: underline; }
.lhd-single-content ul, .lhd-single-content ol {
    margin: 0 0 1.5em 1.5em;
}
.lhd-single-content li { margin-bottom: 0.5em; }

/* Tags */
.lhd-single-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 32px 0;
    padding-top: 24px;
    border-top: 1px solid var(--lhd-divider);
}
.lhd-tag {
    padding: 4px 14px;
    border-radius: 16px;
    font-size: 12px;
    border: 1px solid var(--lhd-card-border);
    color: var(--lhd-text-secondary);
    transition: all 0.15s;
}
.lhd-tag:hover { border-color: var(--lhd-accent); color: var(--lhd-accent); }

/* Share */
.lhd-single-share {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid var(--lhd-divider);
    border-bottom: 1px solid var(--lhd-divider);
    margin-bottom: 32px;
}
.lhd-share-label { font-size: 13px; color: var(--lhd-text-muted); font-weight: 500; }
.lhd-share-buttons { display: flex; gap: 8px; }
.lhd-share-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--lhd-card-border);
    background: var(--lhd-card-bg);
    color: var(--lhd-text-secondary);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}
.lhd-share-btn:hover { border-color: var(--lhd-accent); color: var(--lhd-accent); }

/* Author box */
.lhd-author-box {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--lhd-body-bg);
    border-radius: 12px;
    margin-bottom: 40px;
}
.lhd-author-box-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.lhd-author-box-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--lhd-text-muted); margin-bottom: 4px; }
.lhd-author-box-name { font-size: 16px; font-weight: 600; color: var(--lhd-text-primary); margin-bottom: 6px; }
.lhd-author-box-bio { font-size: 14px; color: var(--lhd-text-secondary); line-height: 1.6; margin: 0; }

/* Related */
.lhd-related { margin-top: 20px; }
.lhd-related-heading {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--lhd-text-muted);
    font-weight: 600;
    margin: 0 0 16px;
}


/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */

@media (max-width: 960px) {
    .lhd-posts-grid, .lhd-related-grid { grid-template-columns: repeat(2, 1fr); }
    .lhd-featured-card { flex-direction: column; }
    .lhd-featured-img { width: 100%; min-height: 220px; }
    .lhd-featured-body { width: 100%; }
    .lhd-single-title { font-size: 28px; }
}
@media (max-width: 600px) {
    .lhd-posts-grid, .lhd-related-grid { grid-template-columns: 1fr; }
    .lhd-toolbar { flex-direction: column; align-items: stretch; }
    .lhd-search-box { width: 100%; }
    .lhd-sort-form { margin-left: 0; }
    .lhd-filter-pills { flex-wrap: wrap; }
    .lhd-content-area { padding: 20px 16px; }
    .lhd-single-hero { min-height: 300px; }
    .lhd-single-title { font-size: 24px; }
    .lhd-single-content { font-size: 16px; }
    .lhd-author-box { flex-direction: column; align-items: center; text-align: center; }
}
