/* Blog Post Page Styles */

/* Hero Section */
.blog-post-hero {
    position: relative;
    height: 500px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blog-post-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.blog-post-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.blog-post-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(14, 65, 91, 0.9) 0%, rgba(10, 53, 71, 0.9) 100%);
    z-index: 1;
}

.blog-post-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 2rem;
}

.blog-post-category-badge {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.blog-post-hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.blog-post-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.blog-post-hero-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-post-hero-meta-item svg {
    width: 18px;
    height: 18px;
    stroke: rgba(255, 255, 255, 0.9);
}

/* Main Content Area */
.blog-post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.blog-post-excerpt {
    font-size: 1.25rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--primary-light);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
}

.blog-post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.blog-post-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.blog-post-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.blog-post-content p {
    margin-bottom: 1.5rem;
}

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

.blog-post-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

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

.blog-post-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: var(--bg-light);
    border-left: 4px solid var(--secondary-color);
    font-style: italic;
    color: var(--text-light);
}

/* Author Section */
.blog-post-author-section {
    margin-top: 4rem;
    padding: 2.5rem;
    background: var(--bg-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.blog-post-author-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.blog-post-author-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-post-author-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.blog-post-author-info p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Share Section */
.blog-post-share {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.blog-post-share h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.blog-post-share-buttons {
    display: flex;
    gap: 1rem;
}

.share-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.share-button svg {
    width: 18px;
    height: 18px;
}

.share-button.twitter {
    background: #1DA1F2;
    color: var(--white);
}

.share-button.twitter:hover {
    background: #1a8cd8;
    transform: translateY(-2px);
}

.share-button.linkedin {
    background: #0077B5;
    color: var(--white);
}

.share-button.linkedin:hover {
    background: #006399;
    transform: translateY(-2px);
}

.share-button.facebook {
    background: #1877F2;
    color: var(--white);
}

.share-button.facebook:hover {
    background: #0e6ad5;
    transform: translateY(-2px);
}

/* Related Posts Section */
.related-posts-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.related-posts-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.related-posts-header {
    text-align: center;
    margin-bottom: 3rem;
}

.related-posts-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.related-posts-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

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

/* Back to Blog Link */
.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.back-to-blog svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary-color);
    transition: var(--transition);
}

.back-to-blog:hover {
    gap: 0.75rem;
}

.back-to-blog:hover svg {
    transform: translateX(-4px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .blog-post-hero-title {
        font-size: 2rem;
    }

    .blog-post-hero-meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .blog-post-container {
        padding: 3rem 1.5rem;
    }

    .blog-post-content {
        font-size: 1rem;
    }

    .blog-post-content h2 {
        font-size: 1.75rem;
        margin-top: 2rem;
    }

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

    .blog-post-author-section {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .blog-post-share-buttons {
        flex-wrap: wrap;
    }

    .related-posts-section {
        padding: 4rem 0;
    }

    .related-posts-header h2 {
        font-size: 2rem;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .blog-post-hero {
        height: 350px;
    }

    .blog-post-hero-title {
        font-size: 1.75rem;
    }

    .blog-post-category-badge {
        font-size: 0.7rem;
        padding: 0.4rem 1rem;
    }

    .blog-post-container {
        padding: 2rem 1rem;
    }

    .blog-post-excerpt {
        font-size: 1.1rem;
        padding: 1.5rem;
    }

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

    .blog-post-author-section {
        padding: 1.5rem;
    }

    .blog-post-author-avatar-large {
        width: 80px;
        height: 80px;
    }

    .blog-post-author-info h3 {
        font-size: 1.25rem;
    }

    .related-posts-header h2 {
        font-size: 1.75rem;
    }
}
