/* ==========================================================================
   LINA ARCHITECTURE - BLOG POST TEMPLATE CSS
   ========================================================================== */

/* ============================================
   POST HEADER
   ============================================ */
.post-header {
    background: #0a192f;
    padding: 140px 0 60px;
}

.post-header .breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 0.875rem;
}

.post-header .breadcrumb-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-header .breadcrumb-link:hover {
    color: #c4a77d;
}

.post-header .breadcrumb-separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.625rem;
}

.post-header .breadcrumb-current {
    color: rgba(255, 255, 255, 0.9);
}

.post-header-content {
    max-width: 800px;
}

.post-category {
    display: inline-block;
    background: rgba(196, 167, 125, 0.2);
    color: #c4a77d;
    padding: 8px 16px;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 16px;
}

.post-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 600;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 24px;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.post-author-name {
    display: block;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9375rem;
}

.post-author-role {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8125rem;
}

.post-meta-details {
    display: flex;
    align-items: center;
    gap: 20px;
}

.post-date,
.post-read-time {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.post-date i,
.post-read-time i {
    margin-right: 6px;
    color: #c4a77d;
}

/* ============================================
   FEATURED IMAGE
   ============================================ */
.post-featured-image {
    max-width: 1000px;
    margin: -40px auto 0;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* ============================================
   POST LAYOUT (Content + Sidebar)
   ============================================ */
.post-layout {
    padding: 60px 0;
    background: #ffffff;
}

.post-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: start;
}

/* ============================================
   POST CONTENT
   ============================================ */
.post-content {
    max-width: 720px;
}

.post-intro {
    font-size: 1.1875rem;
    color: #0a192f;
    line-height: 1.8;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e8e8e8;
}

.post-content h2 {
    font-family: var(--font-heading);
    font-size: 1.625rem;
    font-weight: 600;
    color: #0a192f;
    margin: 40px 0 16px;
    line-height: 1.3;
}

.post-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: #0a192f;
    margin: 32px 0 12px;
    line-height: 1.4;
}

.post-content p {
    font-size: 1.0625rem;
    color: #5a6a7a;
    line-height: 1.8;
    margin-bottom: 20px;
}

.post-content ul,
.post-content ol {
    margin: 20px 0 24px 24px;
    color: #5a6a7a;
}

.post-content li {
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 10px;
    padding-left: 8px;
}

.post-content ul li::marker {
    color: #c4a77d;
}

.post-content ol li::marker {
    color: #c4a77d;
    font-weight: 600;
}

.post-content strong {
    color: #0a192f;
    font-weight: 600;
}

/* Post Callout */
.post-callout {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: #fff8f0;
    border-radius: 12px;
    border-left: 4px solid #c4a77d;
    margin: 32px 0;
}

.post-callout-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: rgba(196, 167, 125, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c4a77d;
    font-size: 1rem;
}

.post-callout-content h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: #0a192f;
    margin-bottom: 6px;
}

.post-callout-content p {
    font-size: 0.9375rem;
    margin: 0;
}

.post-callout-success {
    background: #f0fdf4;
    border-left-color: #22c55e;
}

.post-callout-success .post-callout-icon {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

/* Post Image */
.post-image {
    margin: 32px 0;
}

.post-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.post-image figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: #5a6a7a;
    margin-top: 12px;
    font-style: italic;
}

/* ============================================
   SHARE BUTTONS
   ============================================ */
.post-share {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 0;
    margin-top: 40px;
    border-top: 1px solid #e8e8e8;
}

.post-share-label {
    font-weight: 500;
    color: #0a192f;
    font-size: 0.9375rem;
}

.post-share-buttons {
    display: flex;
    gap: 8px;
}

.post-share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.post-share-facebook {
    background: #1877f2;
    color: #ffffff;
}

.post-share-twitter {
    background: #000000;
    color: #ffffff;
}

.post-share-linkedin {
    background: #0077b5;
    color: #ffffff;
}

.post-share-whatsapp {
    background: #25d366;
    color: #ffffff;
}

.post-share-copy {
    background: #f1f1f1;
    color: #5a6a7a;
}

.post-share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* ============================================
   AUTHOR BIO
   ============================================ */
.post-author-bio {
    display: flex;
    gap: 24px;
    padding: 32px;
    background: #f8f5f0;
    border-radius: 16px;
    margin-top: 40px;
}

.post-author-bio-avatar {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.post-author-bio-name {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: #0a192f;
    margin-bottom: 4px;
}

.post-author-bio-role {
    font-size: 0.875rem;
    color: #c4a77d;
    font-weight: 500;
    margin-bottom: 12px;
}

.post-author-bio-text {
    font-size: 0.9375rem;
    color: #5a6a7a;
    line-height: 1.6;
    margin-bottom: 16px;
}

.post-author-bio-social {
    display: flex;
    gap: 12px;
}

.post-author-bio-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 8px;
    color: #5a6a7a;
    transition: all 0.3s ease;
}

.post-author-bio-social a:hover {
    background: #c4a77d;
    color: #0a192f;
}

/* ============================================
   SIDEBAR
   ============================================ */
.post-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Sidebar CTA */
.sidebar-cta {
    background: linear-gradient(135deg, #0a192f 0%, #1a3a5c 100%);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
}

.sidebar-cta-icon {
    width: 56px;
    height: 56px;
    background: rgba(196, 167, 125, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
    color: #c4a77d;
}

.sidebar-cta-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.sidebar-cta-text {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin-bottom: 20px;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Table of Contents */
.sidebar-toc {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 24px;
}

.sidebar-toc-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: #0a192f;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8e8e8;
}

.sidebar-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-toc-list li {
    margin-bottom: 10px;
}

.sidebar-toc-list a {
    display: block;
    font-size: 0.875rem;
    color: #5a6a7a;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sidebar-toc-list a:hover {
    background: #f8f5f0;
    color: #c4a77d;
}

/* Related Posts Sidebar */
.sidebar-related {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 24px;
}

.sidebar-related-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: #0a192f;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8e8e8;
}

.sidebar-related-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-related-post {
    display: flex;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.sidebar-related-post:hover {
    transform: translateX(4px);
}

.sidebar-related-post img {
    width: 72px;
    height: 56px;
    min-width: 72px;
    object-fit: cover;
    border-radius: 8px;
}

.sidebar-related-post-category {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #c4a77d;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 4px;
}

.sidebar-related-post h5 {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 500;
    color: #0a192f;
    line-height: 1.4;
    margin: 0;
    transition: color 0.3s ease;
}

.sidebar-related-post:hover h5 {
    color: #c4a77d;
}

/* ============================================
   RELATED POSTS GRID (Bottom)
   ============================================ */
.related-posts-section {
    padding: 60px 0;
}

.related-posts-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.related-posts-section .section-label {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #c4a77d;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.related-posts-section .section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: #0a192f;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1024px) {
    .post-grid {
        grid-template-columns: 1fr;
    }
    
    .post-content {
        max-width: 100%;
    }
    
    .post-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .sidebar-cta {
        grid-column: 1 / -1;
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .post-header {
        padding: 120px 0 40px;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .post-featured-image {
        margin-top: -20px;
        padding: 0 16px;
    }
    
    .post-sidebar {
        grid-template-columns: 1fr;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .post-author-bio-avatar {
        margin: 0 auto;
    }
    
    .post-author-bio-social {
        justify-content: center;
    }
    
    .post-share {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .post-content h2 {
        font-size: 1.375rem;
    }
    
    .post-callout {
        flex-direction: column;
    }
}
