/* ============================================
   PAGE: Single Post
   Page-specific styles – Premium Normalized
   Depends on: global.css
   ============================================ */

/* ----- Single Post Shell ----- */
.lh-single-post {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

/* ----- Hero Section ----- */
.lh-post-hero {
    background: linear-gradient(145deg, var(--lh-navy) 0%, var(--lh-navy-2) 50%, var(--lh-navy-3) 100%);
    color: var(--lh-white);
    text-align: center;
    padding: 64px 0 48px;
    position: relative;
    overflow: hidden;
}

.lh-post-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(45, 212, 191, .06) 0%, transparent 70%);
    pointer-events: none;
}

/* Featured Image */
.lh-hero-img {
    position: relative;
    max-width: var(--lh-container);
    margin: 0 auto 32px;
    border-radius: var(--lh-radius-lg);
    overflow: hidden;
    box-shadow: var(--lh-shadow-md);
}

.lh-hero-img img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
}

.lh-hero-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(to top, rgba(11, 30, 51, .85) 0%, transparent 100%);
    color: var(--lh-white);
}

.lh-post-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: var(--lh-radius-pill);
    background: var(--lh-orange);
    color: var(--lh-navy);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.lh-post-category a {
    color: var(--lh-navy);
    text-decoration: none;
}

.lh-post-reading-time {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .85);
    background: rgba(255, 255, 255, .10);
    padding: 6px 14px;
    border-radius: var(--lh-radius-pill);
    border: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Title */
.lh-post-title {
    color: var(--lh-white);
    font-family: var(--lh-font-heading);
    font-size: var(--lh-h1);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.015em;
    max-width: var(--lh-container-narrow);
    margin: 0 auto 20px;
    padding: 0 20px;
    position: relative;
}

/* Meta */
.lh-post-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 24px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, .75);
    position: relative;
}

.lh-post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lh-post-author {
    font-weight: 600;
    color: var(--lh-white);
}

.lh-post-author::before {
    content: '✍️';
    font-size: 0.85rem;
}

.lh-post-date::before {
    content: '📅';
    font-size: 0.85rem;
}

/* ----- Main Content ----- */
.lh-post-content {
    width: min(var(--lh-container-narrow), calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0 64px;
    color: var(--lh-text-soft);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Headings inside content */
.lh-post-content h2 {
    color: var(--lh-navy);
    font-family: var(--lh-font-heading);
    font-size: var(--lh-h2);
    font-weight: 700;
    line-height: 1.2;
    margin: 48px 0 16px;
    text-align: left;
}

.lh-post-content h3 {
    color: var(--lh-navy);
    font-family: var(--lh-font-heading);
    font-size: var(--lh-h3);
    font-weight: 600;
    line-height: 1.25;
    margin: 36px 0 14px;
    text-align: left;
}

.lh-post-content h4 {
    color: var(--lh-navy);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 28px 0 12px;
}

/* Paragraphs & text */
.lh-post-content p {
    margin: 0 0 22px;
    max-width: 78ch;
    color: var(--lh-text-soft);
}

.lh-post-content strong {
    color: var(--lh-navy);
    font-weight: 600;
}

.lh-post-content em {
    font-style: italic;
}

.lh-post-content a {
    color: var(--lh-teal-dark);
    text-decoration: underline;
    text-decoration-color: rgba(45, 212, 191, .4);
    text-underline-offset: 3px;
    transition: color .2s ease, text-decoration-color .2s ease;
}

.lh-post-content a:hover {
    color: var(--lh-orange-dark);
    text-decoration-color: var(--lh-orange);
}

/* Lists */
.lh-post-content ul,
.lh-post-content ol {
    margin: 0 0 24px;
    padding-left: 26px;
    max-width: 78ch;
}

.lh-post-content ul li,
.lh-post-content ol li {
    margin-bottom: 10px;
    line-height: 1.7;
    color: var(--lh-text-soft);
}

.lh-post-content ul li::marker {
    color: var(--lh-teal);
}

.lh-post-content ol li::marker {
    color: var(--lh-teal);
    font-weight: 600;
}

/* Blockquote */
.lh-post-content blockquote {
    margin: 32px 0;
    padding: 24px 28px;
    background: var(--lh-surface);
    border-left: 4px solid var(--lh-teal);
    border-radius: var(--lh-radius-sm);
    color: var(--lh-navy);
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.7;
}

.lh-post-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Code */
.lh-post-content code {
    background: var(--lh-surface-2);
    color: var(--lh-navy);
    padding: 2px 8px;
    border-radius: var(--lh-radius-xs);
    font-size: 0.9em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.lh-post-content pre {
    background: var(--lh-navy);
    color: var(--lh-white);
    padding: 20px 24px;
    border-radius: var(--lh-radius-md);
    overflow-x: auto;
    margin: 0 0 24px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.lh-post-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    font-size: inherit;
}

/* Images */
.lh-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--lh-radius-md);
    margin: 24px auto;
    display: block;
}

.lh-post-content figure {
    margin: 28px 0;
}

.lh-post-content figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--lh-muted);
    margin-top: 10px;
    font-style: italic;
}

/* Tables */
.lh-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    font-size: 0.95rem;
    border: 1px solid var(--lh-border);
    border-radius: var(--lh-radius-md);
    overflow: hidden;
}

.lh-post-content table th {
    background: var(--lh-navy);
    color: var(--lh-white);
    font-weight: 600;
    text-align: left;
    padding: 14px 18px;
    font-size: 0.9rem;
}

.lh-post-content table td {
    padding: 14px 18px;
    border-top: 1px solid var(--lh-border);
    color: var(--lh-text-soft);
}

.lh-post-content table tr:nth-child(even) td {
    background: var(--lh-surface);
}

/* Horizontal rule */
.lh-post-content hr {
    border: none;
    height: 1px;
    background: var(--lh-border);
    margin: 40px 0;
}

/* ----- Responsive ----- */
@media (max-width: 1100px) {
    .lh-post-hero {
        padding: 48px 0 40px;
    }
    .lh-hero-img {
        border-radius: var(--lh-radius-md);
    }
    .lh-hero-img img {
        max-height: 420px;
    }
    .lh-post-content {
        padding: 40px 0 56px;
    }
}

@media (max-width: 767px) {
    .lh-post-hero {
        padding: 40px 0 32px;
    }
    .lh-hero-img {
        margin: 0 16px 24px;
        border-radius: var(--lh-radius-sm);
    }
    .lh-hero-img img {
        max-height: 300px;
    }
    .lh-hero-overlay {
        padding: 14px 16px;
        gap: 8px;
    }
    .lh-post-category {
        padding: 5px 12px;
        font-size: 0.72rem;
    }
    .lh-post-reading-time {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    .lh-post-title {
        font-size: clamp(1.65rem, 7vw, 2.05rem);
        padding: 0 16px;
        margin-bottom: 16px;
    }
    .lh-post-meta {
        gap: 8px 16px;
        font-size: 0.82rem;
    }
    .lh-post-content {
        width: calc(100% - 32px);
        padding: 32px 0 48px;
        font-size: 1rem;
        line-height: 1.75;
    }
    .lh-post-content h2 {
        font-size: clamp(1.4rem, 6vw, 1.7rem);
        margin: 36px 0 14px;
    }
    .lh-post-content h3 {
        font-size: 1.2rem;
        margin: 28px 0 12px;
    }
    .lh-post-content blockquote {
        padding: 18px 20px;
        font-size: 1rem;
        margin: 24px 0;
    }
    .lh-post-content pre {
        padding: 16px;
        font-size: 0.82rem;
        border-radius: var(--lh-radius-sm);
    }
    .lh-post-content table {
        font-size: 0.85rem;
    }
    .lh-post-content table th,
    .lh-post-content table td {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .lh-post-title {
        font-size: 1.55rem;
    }
    .lh-post-content {
        width: calc(100% - 28px);
        font-size: 0.97rem;
    }
    .lh-post-content blockquote {
        padding: 16px 18px;
        font-size: 0.95rem;
    }
    .lh-post-content ul,
    .lh-post-content ol {
        padding-left: 22px;
    }
}