/* ===== VARIABLES ===== */
:root {
    --orange: #ff5100;
    --orange-hover: #e64900;
    --black: #111111;
    --text: #1a1a1a;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --bg: #f9fafb;
    --white: #ffffff;
}

/* ===== RESET POST PAGE ===== */
body { background: var(--white); color: var(--text); }

/* ===== BREADCRUMB ===== */
.breadcrumb-bar {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 5px 0;
    margin-top: 107px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--orange); }

.breadcrumb i { font-size: 10px; color: #d1d5db; }

.breadcrumb .current { color: var(--text); font-weight: 500; }

/* ===== POST HERO ===== */
.post-hero {
    padding: 52px 0 48px;
    border-bottom: 1px solid var(--border);
    background: var(--white);
}

.post-hero-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 30px;
}

.post-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 81, 0, 0.08);
    color: var(--orange);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 13px;
    border-radius: 20px;
    margin-bottom: 22px;
}

.post-hero h1 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.8px;
    color: var(--black);
    margin-bottom: 18px;
}

.post-hero-excerpt {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 28px;
}

.post-meta-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.meta-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar-sm {
    width: 36px;
    height: 36px;
    background: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 14px;
    flex-shrink: 0;
}

.author-info-sm strong {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
}

.author-info-sm span {
    font-size: 12px;
    color: var(--text-muted);
}

.meta-divider {
    width: 1px;
    height: 28px;
    background: var(--border);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.meta-item i { font-size: 13px; color: #d1d5db; }

/* ===== SIDEBAR IMAGE ===== */
.sidebar-img-wrap {
    position: relative;
    cursor: zoom-in;
}

.sidebar-cover-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border);
    transition: filter 0.2s;
}

.sidebar-img-wrap:hover .sidebar-cover-img {
    filter: brightness(0.85);
}

.sidebar-img-expand {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,0.55);
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.sidebar-img-wrap:hover .sidebar-img-expand {
    opacity: 1;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    color: white;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    background: none;
    border: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.lightbox-close:hover { opacity: 1; }

/* ===== POST BODY ===== */
.post-body-wrapper {
    padding: 52px 0 60px;
}

.post-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    align-items: start;
}

/* ===== ARTICLE CONTENT ===== */
.article-content {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    line-height: 1.85;
    color: #374151;
    min-width: 0;
}

.article-content p { margin-bottom: 1.5em; }

.article-content h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--black);
    margin: 2.2em 0 0.8em;
    letter-spacing: -0.4px;
    line-height: 1.3;
}

.article-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
    margin: 1.8em 0 0.6em;
    line-height: 1.4;
}

.article-content h4 {
    font-size: 17px;
    font-weight: 600;
    color: var(--black);
    margin: 1.5em 0 0.5em;
}

.article-content ul,
.article-content ol {
    margin: 1.2em 0;
    padding-left: 1.6em;
}

.article-content li { margin-bottom: 0.5em; }

.article-content strong { color: var(--black); font-weight: 600; }

.article-content a {
    color: var(--orange);
    text-decoration: underline;
    text-decoration-color: rgba(255, 81, 0, 0.3);
    transition: text-decoration-color 0.2s;
}

.article-content a:hover { text-decoration-color: var(--orange); }

.article-content blockquote {
    margin: 2em 0;
    padding: 20px 24px;
    border-left: 4px solid var(--orange);
    background: rgba(255, 81, 0, 0.04);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-muted);
    font-size: 16px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5em 0;
    border: 1px solid var(--border);
}

.article-content code {
    background: var(--bg);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 14px;
    color: var(--orange);
    border: 1px solid var(--border);
    font-family: 'Courier New', monospace;
}

.article-content pre {
    background: var(--black);
    padding: 20px 24px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5em 0;
}

.article-content pre code {
    background: none;
    border: none;
    color: #e2e8f0;
    padding: 0;
}

/* ===== TAGS ===== */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.tag {
    padding: 5px 13px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.2s;
}

.tag:hover { border-color: var(--orange); color: var(--orange); }

/* ===== SHARE ===== */
.share-section {
    margin-top: 32px;
    padding: 24px;
    background: var(--bg);
    border-radius: 10px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.share-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
    white-space: nowrap;
}

.share-buttons {
    display: flex;
    gap: 8px;
}

.share-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: all 0.2s;
    text-decoration: none;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text-muted);
}

.share-btn:hover { transform: translateY(-2px); }
.share-btn.facebook:hover  { border-color: #3b5998; color: #3b5998; }
.share-btn.twitter:hover   { border-color: #1da1f2; color: #1da1f2; }
.share-btn.linkedin:hover  { border-color: #0077b5; color: #0077b5; }
.share-btn.whatsapp:hover  { border-color: #25d366; color: #25d366; }

/* ===== SIDEBAR ===== */
.post-sidebar {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.sidebar-card-title {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
}

.sidebar-card-body { padding: 18px; }

.sidebar-meta-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-meta-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
}

.sidebar-meta-list li i {
    width: 16px;
    color: var(--orange);
    font-size: 13px;
    flex-shrink: 0;
}

.sidebar-meta-list li span { color: var(--text-muted); }

.sidebar-meta-list li strong { color: var(--text); font-weight: 500; }

.btn-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--black);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-back:hover {
    background: #222222;
}

/* ===== RELATED POSTS ===== */
.related-section {
    padding: 60px 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.related-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.related-header {
    margin-bottom: 32px;
}

.related-header .section-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--orange);
    display: block;
    margin-bottom: 8px;
}

.related-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--black);
    letter-spacing: -0.4px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.related-card {
    background: var(--white);
    border-radius: 10px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.2s;
    text-decoration: none;
    display: block;
}

.related-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
    transform: translateY(-2px);
}

.related-card-img {
    height: 160px;
    background: var(--bg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-card-img .no-img {
    font-size: 2.5rem;
    color: #d1d5db;
}

.related-card-body { padding: 16px; }

.related-card-cat {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--orange);
    margin-bottom: 7px;
    display: block;
}

.related-card-title {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--black);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.related-card:hover .related-card-title { color: var(--orange); }

.related-card-date {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .post-layout {
        grid-template-columns: 1fr;
    }

    .post-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .post-sidebar .sidebar-card {
        flex: 1;
        min-width: 240px;
    }
}

@media (max-width: 768px) {
    .breadcrumb-bar { margin-top: 95px; }

    .post-hero { padding: 36px 0 32px; }

    .post-hero-inner,
    .related-inner { padding: 0 20px; }

    .post-layout { padding: 0 20px; gap: 32px; }

    .post-hero-excerpt { font-size: 16px; }

    .article-content { font-size: 16px; }

    .share-section { flex-direction: column; align-items: flex-start; }

    .post-sidebar { flex-direction: column; }

    .related-grid { grid-template-columns: 1fr; }
}
