﻿/* ===== Blog Post Detail - Professional Law Firm ===== */

html, body { overflow-x: hidden; max-width: 100%; }

/* Post Hero */
.post-hero {
    background: linear-gradient(135deg, #0c1f3f 0%, #162d54 100%);
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.post-hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(184,150,78,0.08) 0%, transparent 50%);
}

.post-hero .breadcrumb-item a { color: rgba(255,255,255,0.7); text-decoration: none; }
.post-hero .breadcrumb-item a:hover { color: var(--gold, #b8964e); }
.post-hero .breadcrumb-item.active { color: rgba(255,255,255,0.5); }
.post-hero .breadcrumb-divider { color: rgba(255,255,255,0.4); }

.post-hero-category {
    display: inline-block;
    background: rgba(184,150,78,0.15);
    color: var(--gold, #b8964e);
    padding: 0.4rem 1.2rem;
    border-radius: var(--radius, 8px);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.post-hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.post-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.post-hero-meta span { display: flex; align-items: center; gap: 0.5rem; }
.post-hero-meta i { color: var(--gold, #b8964e); }

/* Featured Image */
.post-featured-image {
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

.post-featured-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg, 16px);
    box-shadow: var(--shadow-xl, 0 20px 60px rgba(12,31,63,0.18));
}

/* Post Body */
.post-body {
    background: var(--bg-warm, #f8f7f4);
    padding: 4rem 0;
}

.post-content {
    background: white;
    border-radius: var(--radius-lg, 16px);
    padding: 3rem;
    box-shadow: var(--shadow, 0 4px 20px rgba(12,31,63,0.08));
    border: 1px solid var(--border, #e2e4e9);
}

.post-content h1, .post-content h2, .post-content h3,
.post-content h4, .post-content h5, .post-content h6 {
    color: var(--primary, #0c1f3f);
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

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

.post-content p {
    font-size: 1.05rem;
    line-height: 2;
    color: var(--text, #3a3f4b);
    margin-bottom: 1.5rem;
}

.post-content ul, .post-content ol {
    padding-right: 1.5rem;
    margin-bottom: 1.5rem;
}

.post-content li { line-height: 2; color: var(--text, #3a3f4b); margin-bottom: 0.5rem; }

.post-content blockquote {
    border-right: 4px solid var(--gold, #b8964e);
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: var(--bg-warm, #f8f7f4);
    border-radius: 0 var(--radius, 8px) var(--radius, 8px) 0;
    font-style: italic;
    color: var(--primary, #0c1f3f);
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius, 8px);
    margin: 1.5rem 0;
}

.post-content a { color: var(--gold, #b8964e); text-decoration: none; font-weight: 600; }
.post-content a:hover { color: var(--primary, #0c1f3f); }

/* Tags */
.post-tags { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border, #e2e4e9); }

.post-tags .badge {
    background: var(--bg-warm, #f8f7f4);
    color: var(--text, #3a3f4b);
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius, 8px);
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border, #e2e4e9);
}

.post-tags .badge:hover {
    background: var(--primary, #0c1f3f);
    color: white;
    border-color: var(--primary, #0c1f3f);
}

/* Share Buttons */
.share-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border, #e2e4e9);
}

.share-section h5 {
    font-weight: 700;
    color: var(--primary, #0c1f3f);
    margin-bottom: 1rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px; height: 45px;
    border-radius: var(--radius, 8px);
    background: var(--bg-warm, #f8f7f4);
    color: var(--text, #3a3f4b);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border, #e2e4e9);
    font-size: 1.1rem;
}

.share-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow, 0 4px 20px rgba(12,31,63,0.08)); }
.share-btn.twitter:hover { background: #1DA1F2; color: white; border-color: #1DA1F2; }
.share-btn.facebook:hover { background: #1877F2; color: white; border-color: #1877F2; }
.share-btn.linkedin:hover { background: #0A66C2; color: white; border-color: #0A66C2; }
.share-btn.whatsapp:hover { background: #25D366; color: white; border-color: #25D366; }
.share-btn.copy:hover { background: var(--primary, #0c1f3f); color: white; border-color: var(--primary, #0c1f3f); }

/* Author Bio */
.author-bio {
    background: white;
    border-radius: var(--radius-lg, 16px);
    padding: 2rem;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(12,31,63,0.06));
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-top: 2.5rem;
    border: 1px solid var(--border, #e2e4e9);
}

.author-bio img {
    width: 80px; height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--gold, #b8964e);
}

.author-bio h5 { font-weight: 700; color: var(--primary, #0c1f3f); margin-bottom: 0.3rem; }
.author-bio p { color: var(--text-light, #6b7280); margin: 0; font-size: 0.92rem; }

/* Comments Section */
.comments-section {
    background: white;
    border-radius: var(--radius-lg, 16px);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(12,31,63,0.06));
    margin-top: 2.5rem;
    border: 1px solid var(--border, #e2e4e9);
}

.comments-section h4 {
    font-weight: 700;
    color: var(--primary, #0c1f3f);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border, #e2e4e9);
    position: relative;
}

.comments-section h4::after {
    content: '';
    position: absolute;
    bottom: -2px; right: 0;
    width: 60px; height: 2px;
    background: var(--gold, #b8964e);
}

/* Comment Item */
.comment-item {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--bg-warm, #f8f7f4);
    border-radius: var(--radius, 8px);
}

.comment-item:last-child { margin-bottom: 0; }

.comment-header { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.8rem; }

.comment-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--primary, #0c1f3f);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.comment-meta h6 { margin: 0; font-weight: 600; color: var(--primary, #0c1f3f); font-size: 0.95rem; }
.comment-meta small { color: var(--text-muted, #9ca3af); font-size: 0.8rem; }
.comment-body { color: var(--text, #3a3f4b); line-height: 1.8; font-size: 0.95rem; }

/* Comment Form */
.comment-form .form-control {
    border: 2px solid var(--border, #e2e4e9);
    border-radius: var(--radius, 8px);
    padding: 0.8rem 1.2rem;
    transition: all 0.3s ease;
}

.comment-form .form-control:focus {
    border-color: var(--gold, #b8964e);
    box-shadow: 0 0 0 3px rgba(184,150,78,0.15);
}

.comment-form .btn-submit {
    background: var(--gold, #b8964e);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: var(--radius, 8px);
    font-weight: 700;
    transition: all 0.3s ease;
}

.comment-form .btn-submit:hover {
    background: var(--gold-dark, #9a7a3c);
    transform: translateY(-2px);
}

/* Related Posts */
.related-posts { margin-top: 3rem; }

.related-posts h4 {
    font-weight: 700;
    color: var(--primary, #0c1f3f);
    margin-bottom: 2rem;
}

.related-post-card {
    background: white;
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(12,31,63,0.06));
    transition: all 0.4s ease;
    border: 1px solid var(--border, #e2e4e9);
}

.related-post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl, 0 20px 60px rgba(12,31,63,0.16));
    border-color: transparent;
}

.related-post-card img {
    width: 100%; height: 180px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.related-post-card:hover img { transform: scale(1.07); }

.related-post-card .card-body { padding: 1.2rem; }

.related-post-card h6 { font-weight: 700; color: var(--primary, #0c1f3f); margin-bottom: 0.5rem; }
.related-post-card h6 a { color: inherit; text-decoration: none; }
.related-post-card h6 a:hover { color: var(--gold, #b8964e); }
.related-post-card small { color: var(--text-muted, #9ca3af); }

/* Sidebar */
.post-sidebar .sidebar-widget {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg, 16px);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(12,31,63,0.06));
    border: 1px solid var(--border, #e2e4e9);
    word-wrap: break-word;
}

/* Responsive */
@media (max-width: 991px) {
    .post-hero-title { font-size: 2rem; }
    .post-content { padding: 2rem; }
    .post-featured-image img { max-height: 350px; }
}

@media (max-width: 768px) {
    .post-hero { padding: 110px 0 60px; }
    .post-hero-title { font-size: 1.6rem; }
    .post-hero-meta { flex-direction: column; gap: 0.6rem; }
    .post-content { padding: 1.5rem; }
    .post-body { padding: 2.5rem 0; }
    .comments-section { padding: 1.5rem; }
    .author-bio { flex-direction: column; text-align: center; }
    .post-featured-image img { max-height: 250px; }
}

@media (max-width: 576px) {
    .post-hero { padding: 90px 0 40px; }
    .post-hero-title { font-size: 1.4rem; }
    .post-content { padding: 1.2rem; }
    .share-btn { width: 40px; height: 40px; }
}
