/* ========================================
   BLOG POST SHARED STYLES
   ======================================== */

/* Post Layout */
.blog-post {
    padding-top: 80px;
}
.post-hero {
    position: relative;
    height: 50vh;
    min-height: 360px;
    max-height: 520px;
    overflow: hidden;
}
.post-hero img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(250,252,250,1) 100%);
}

.post-header {
    max-width: 760px;
    margin: -60px auto 0;
    position: relative;
    z-index: 2;
    padding: 0 24px;
}
.back-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.88rem;
    font-weight: 600;
    color: #00b894;
    margin-bottom: 24px;
    transition: gap 0.3s;
}
.back-link:hover { color: #0a8f6f; }
.post-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #00b894;
    background: #e8f8f0;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
}
.post-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #1a3c34;
    line-height: 1.2;
    margin-bottom: 20px;
}
.post-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.88rem;
    color: #b2bec3;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e8f5e9;
}

/* Post Content */
.post-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px 60px;
}
.post-content p {
    font-size: 1.08rem;
    color: #444;
    line-height: 1.9;
    margin-bottom: 24px;
}
.post-content p.lead {
    font-size: 1.22rem;
    color: #2d3436;
    font-weight: 500;
    line-height: 1.8;
    border-left: 4px solid #00b894;
    padding-left: 20px;
    margin-bottom: 40px;
}
.post-content h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a3c34;
    margin-top: 48px;
    margin-bottom: 20px;
    line-height: 1.3;
}
.post-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a3c34;
    margin-top: 36px;
    margin-bottom: 14px;
}
.post-content ul, .post-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
    list-style: none;
}
.post-content ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: #444;
    line-height: 1.8;
}
.post-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00b894;
}
.post-content ol {
    counter-reset: list-counter;
}
.post-content ol li {
    counter-increment: list-counter;
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: #444;
    line-height: 1.8;
}
.post-content ol li::before {
    content: counter(list-counter);
    position: absolute;
    left: 0;
    top: 2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e8f8f0;
    color: #00b894;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.post-content blockquote {
    background: linear-gradient(135deg, #f0faf5, #e8f8f0);
    border-left: 4px solid #00b894;
    border-radius: 0 16px 16px 0;
    padding: 28px 32px;
    margin: 36px 0;
    font-size: 1.15rem;
    font-style: italic;
    color: #1a3c34;
    line-height: 1.7;
}
.post-content a {
    color: #00b894;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s;
}
.post-content a:hover { color: #0a8f6f; }
.post-content strong {
    color: #1a3c34;
    font-weight: 700;
}

/* Tip boxes */
.post-content .tip-box {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 16px;
    padding: 24px 28px;
    margin: 32px 0;
}
.post-content .tip-box .tip-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #d4a017;
    margin-bottom: 8px;
}
.post-content .tip-box p {
    font-size: 0.98rem;
    margin-bottom: 0;
}

/* Post Share */
.post-share {
    max-width: 760px;
    margin: 0 auto;
    padding: 32px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-top: 1px solid #e8f5e9;
    border-bottom: 1px solid #e8f5e9;
}
.post-share span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #636e72;
}
.share-btn {
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    background: #f0faf5;
    color: #1a3c34;
    border: 1px solid #e8f5e9;
    transition: all 0.3s;
}
.share-btn:hover {
    background: #00b894;
    color: #fff;
    border-color: #00b894;
}

/* Post Navigation */
.post-nav {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 24px 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.post-nav-link {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #e8f5e9;
    transition: all 0.3s;
}
.post-nav-link:hover {
    border-color: #00b894;
    box-shadow: 0 8px 24px rgba(0,184,148,0.1);
}
.post-nav-link.next { text-align: right; }
.post-nav-link .direction {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #00b894;
}
.post-nav-link .title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a3c34;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .post-hero { height: 40vh; min-height: 280px; }
    .post-header h1 { font-size: 1.6rem; }
    .post-content h2 { font-size: 1.35rem; }
    .post-nav { grid-template-columns: 1fr; }
    .post-share { flex-wrap: wrap; }
    .post-content p.lead { font-size: 1.1rem; }
}
