/* ============================================
   마중물 ESG 협동조합 - Blog Post Styles
   ============================================ */

/* ===== Post Hero ===== */
.post-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.post-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.post-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        0deg,
        rgba(10, 20, 15, 0.85) 0%,
        rgba(10, 20, 15, 0.4) 60%,
        rgba(10, 20, 15, 0.2) 100%
    );
}

.post-hero-content {
    position: relative;
    z-index: 1;
    padding-bottom: 48px;
    padding-top: 120px;
    color: #fff;
}

.post-category-badge {
    display: inline-block;
    padding: 6px 18px;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    margin-bottom: 20px;
}

.post-hero-content h1 {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    max-width: 800px;
}

.post-meta-bar {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.post-meta-bar span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

/* ===== Post Layout ===== */
.post-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 60px;
    padding: 60px 0 80px;
    align-items: start;
}

/* ===== Sidebar TOC ===== */
.post-sidebar {
    position: sticky;
    top: 90px;
}

.toc-widget {
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    padding: 24px;
    border-left: 3px solid var(--color-primary);
}

.toc-widget h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc-widget h4 i {
    color: var(--color-primary);
    font-size: 0.8rem;
}

.toc-list {
    display: grid;
    gap: 6px;
}

.toc-list ul {
    padding-left: 16px;
    margin-top: 6px;
    display: grid;
    gap: 4px;
}

.toc-link {
    font-size: 0.82rem;
    color: var(--color-text-light);
    padding: 4px 8px;
    border-radius: 4px;
    transition: all var(--transition-fast);
    display: block;
    line-height: 1.5;
}

.toc-link:hover {
    color: var(--color-primary);
    background: rgba(31, 111, 92, 0.06);
}

.toc-link.active {
    color: var(--color-primary);
    font-weight: 600;
    background: rgba(31, 111, 92, 0.08);
}

/* ===== Post Content ===== */
.post-content {
    max-width: 760px;
}

.post-content h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 20px;
    margin-top: 48px;
    line-height: 1.4;
    letter-spacing: -0.3px;
}

.post-content h2:first-child,
.post-content section:first-child h2 {
    margin-top: 0;
}

.post-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-top: 36px;
    margin-bottom: 16px;
    line-height: 1.4;
}

.post-content p {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--color-text);
    margin-bottom: 18px;
}

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

.post-content mark {
    background: linear-gradient(180deg, transparent 60%, rgba(39, 174, 96, 0.2) 60%);
    color: inherit;
    padding: 0 2px;
}

.post-content blockquote {
    margin: 28px 0;
    padding: 24px 28px;
    background: var(--color-bg-light);
    border-left: 4px solid var(--color-primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.post-content blockquote p {
    margin-bottom: 0;
    font-size: 1.02rem;
    color: var(--color-text);
    font-style: italic;
}

.quote-final {
    border-left-color: var(--color-accent) !important;
    background: var(--color-bg-warm) !important;
}

/* Post Images */
.post-image {
    margin: 32px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.post-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-image-caption {
    display: block;
    padding: 12px 16px;
    background: var(--color-bg-light);
    font-size: 0.82rem;
    color: var(--color-text-lighter);
    text-align: center;
}

/* Highlight Box */
.highlight-box {
    display: flex;
    gap: 16px;
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(31, 111, 92, 0.05), rgba(40, 145, 122, 0.08));
    border: 1px solid rgba(31, 111, 92, 0.15);
    border-radius: var(--radius-md);
    margin: 28px 0;
}

.highlight-icon {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.highlight-box strong {
    display: block;
    margin-bottom: 6px;
    color: var(--color-primary-dark);
    font-size: 0.9rem;
}

.highlight-box p {
    font-size: 0.92rem;
    margin-bottom: 0;
}

/* ESG Pillars */
.esg-pillars {
    display: grid;
    gap: 16px;
    margin: 28px 0;
}

.pillar {
    padding: 24px 28px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: all var(--transition-fast);
}

.pillar:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.env-pillar { border-left: 4px solid var(--color-env); }
.soc-pillar { border-left: 4px solid var(--color-soc); }
.gov-pillar { border-left: 4px solid var(--color-gov); }

.pillar h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pillar-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 800;
    color: #fff;
}

.pillar-badge.env { background: var(--color-env); }
.pillar-badge.soc { background: var(--color-soc); }
.pillar-badge.gov { background: var(--color-gov); }

.pillar p {
    font-size: 0.92rem;
    margin-bottom: 0;
}

/* Strategy List */
.strategy-list {
    margin: 28px 0;
    display: grid;
    gap: 24px;
}

.strategy-item {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: box-shadow var(--transition-fast);
}

.strategy-item:hover {
    box-shadow: var(--shadow-sm);
}

.strategy-number {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--color-primary-light);
    opacity: 0.4;
    line-height: 1;
    flex-shrink: 0;
}

.strategy-item h4 {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.strategy-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.strategy-item ul {
    margin-top: 10px;
    display: grid;
    gap: 8px;
}

.strategy-item li {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.7;
    padding-left: 16px;
    position: relative;
}

.strategy-item li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 600;
}

/* Post Divider */
.post-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border), transparent);
    margin: 48px 0;
}

/* Post Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 48px 0 36px;
    padding-top: 28px;
    border-top: 1px solid var(--color-border);
}

.post-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    font-size: 0.82rem;
    color: var(--color-text-light);
    transition: all var(--transition-fast);
}

.post-tag:hover {
    background: var(--color-primary-50);
    color: var(--color-primary);
    border-color: var(--color-primary-100);
}

/* Post CTA */
.post-cta {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    margin-bottom: 20px;
}

.post-cta h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.post-cta h3 i {
    margin-right: 6px;
}

.post-cta p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 24px;
    line-height: 1.7;
}

.post-cta-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-outline-dark {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline-dark:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    transform: translateY(-2px);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .post-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .post-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 40px;
    }

    .toc-widget {
        display: none;
    }
}

@media (max-width: 768px) {
    .post-hero {
        min-height: 360px;
    }

    .post-hero-content {
        padding-top: 100px;
        padding-bottom: 32px;
    }

    .post-hero-content h1 {
        font-size: 1.4rem;
    }

    .post-meta-bar {
        gap: 16px;
    }

    .post-layout {
        padding: 40px 0 60px;
    }

    .post-content h2 {
        font-size: 1.3rem;
    }

    .post-content h3 {
        font-size: 1.1rem;
    }

    .highlight-box {
        flex-direction: column;
        gap: 12px;
    }

    .strategy-item {
        flex-direction: column;
        gap: 12px;
    }

    .post-cta {
        padding: 28px 24px;
    }

    .post-cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .post-cta-actions .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}
