/* Blog Post Detail CSS */

/* Hero Section (consistent with blog.css) */
.hero {
    height: 60vh;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    margin-top: -70px;
    /* Compensate for the fixed header */
    padding-top: 70px;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.8);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.8));
    z-index: 0;
}

/* Article Styles */
.article-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.article {
    background: white;
    border-radius: 16px;
    padding: 3.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-100px);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1.75rem;
    color: #1a1a1a;
    line-height: 1.2;
    position: relative;
}

.title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 80px;
    height: 4px;
    background: #2563eb;
    border-radius: 2px;
}
.post-excerpt {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: #555;
    line-height: 1.6;
    font-style: italic;
}
.meta-top {
    display: flex;
    margin: 2rem 0;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.meta-top ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.meta-top li {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 0.95rem;
}

.meta-top a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.meta-top a:hover {
    color: #2563eb;
}

.meta-top i {
    margin-right: 8px;
    color: #2563eb;
    font-size: 1.1rem;
}

.post-category {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.content {
    font-size: 1.1rem;
    line-height: 1.85;
    color: #444;
    text-align: left;
    font-family: sans-serif;
}

.content p {
    margin-bottom: 1.75rem;
}

.content h2 {
    font-size: 1.9rem;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: #1a1a1a;
    font-weight: 700;
}

.content h3 {
    font-size: 1.5rem;
    margin-top: 2.25rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-weight: 700;
}

.content ul,
.content ol {
    margin-bottom: 1.75rem;
    padding-left: 2rem;
}

.content li {
    margin-bottom: 0.75rem;
}

.content a {
    color: #2563eb;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.content a:hover {
    color: #1d4ed8;
    text-decoration: none;
}

.content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

blockquote {
    border-left: 4px solid #2563eb;
    padding: 1.75rem;
    margin: 2.5rem 0;
    background: #f8fafc;
    border-radius: 8px;
    font-style: italic;
    position: relative;
}

blockquote::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 10px;
    font-size: 5rem;
    color: rgba(37, 99, 235, 0.1);
    font-family: Georgia, serif;
}

blockquote p {
    margin-bottom: 0 !important;
    position: relative;
    z-index: 1;
}

/* Author Box */
.author-box {
    display: flex;
    background: #f8fafc;
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.author-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    border: 3px solid white;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    flex-grow: 1;
}

.author-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.author-bio {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.author-social {
    display: flex;
    gap: 0.75rem;
}

.author-social a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #2563eb;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.author-social a:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
}

/* Tags Section */
.tags-section {
    margin: 2.5rem 0;
}

.tags-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    display: inline-block;
    padding: 6px 15px;
    background: #f0f4ff;
    color: #2563eb;
    border-radius: 30px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid #e0e7ff;
}

.tag:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
}

/* Share Section */
.share-section {
    margin: 2.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.share-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
}

.share-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #2563eb;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e7ff;
}

.share-button:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(37, 99, 235, 0.2);
}

/* Comments Section */
.comments-section {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.comments-title {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    color: #1a1a1a;
    position: relative;
    padding-bottom: 12px;
    font-weight: 700;
}

.comments-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #2563eb;
    border-radius: 2px;
}

.comment-form-container {
    margin-bottom: 3rem;
    background: #f8fafc;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #e0e7ff;
}

.comment-form-container h4 {
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1.4rem;
}

.comment-form .form-group {
    margin-bottom: 1.5rem;
}

.comment-form .form-control {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    background: white;
}

.comment-form .form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    outline: none;
}

.submit-button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.9rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.submit-button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(37, 99, 235, 0.2);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment {
    padding: 1.75rem;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #e0e7ff;
}

.comment:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    align-items: center;
}

.comment-author {
    font-weight: bold;
    color: #1a1a1a;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.comment-author i {
    margin-right: 8px;
    color: #2563eb;
}

.comment-time {
    color: #888;
    font-size: 0.85rem;
}

.comment-content {
    color: #444;
    line-height: 1.6;
    margin-bottom: 0;
}

.no-comments {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8fafc;
    border-radius: 12px;
    color: #666;
    border: 1px solid #e0e7ff;
}

.no-comments i {
    font-size: 3rem;
    color: #e0e7ff;
    margin-bottom: 1rem;
    display: block;
}

.no-comments p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Navigation between posts */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0;
}

.nav-previous,
.nav-next {
    flex: 0 0 48%;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.nav-previous:hover,
.nav-next:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.nav-previous {
    padding-left: 2.5rem;
    position: relative;
}

.nav-next {
    padding-right: 2.5rem;
    position: relative;
    text-align: right;
}

.nav-previous::before {
    content: '←';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #2563eb;
}

.nav-next::after {
    content: '→';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #2563eb;
}

.nav-subtitle {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.nav-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    transition: color 0.3s ease;
}

.nav-previous:hover .nav-title,
.nav-next:hover .nav-title {
    color: #2563eb;
}

/* Related Posts Section */
.related-posts {
    margin: 4rem 0;
}

.related-posts-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #1a1a1a;
    position: relative;
    padding-bottom: 12px;
    font-weight: 700;
}

.related-posts-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #2563eb;
    border-radius: 2px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .article {
        padding: 2.5rem;
    }

    .title {
        font-size: 2.25rem;
    }

    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        height: 50vh;
    }

    .article {
        padding: 2rem;
        transform: translateY(-60px);
    }

    .title {
        font-size: 2rem;
    }

    .meta-top {
        flex-direction: column;
        gap: 1rem;
    }

    .meta-top ul {
        flex-direction: column;
        gap: 0.75rem;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .author-social {
        justify-content: center;
    }

    .comments-section {
        padding: 2rem;
    }

    .comment-form-container {
        padding: 1.5rem;
    }

    .post-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-previous,
    .nav-next {
        flex: 0 0 100%;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 40vh;
    }

    .article {
        padding: 1.5rem;
        transform: translateY(-40px);
    }

    .title {
        font-size: 1.75rem;
    }

    .content {
        font-size: 1rem;
    }

    .comments-title,
    .related-posts-title {
        font-size: 1.5rem;
    }

    .submit-button {
        width: 100%;
        padding: 0.75rem;
    }
}