/* ================================
   Blog Single Page Styles
   ================================ */

/* Category Badge */
.post-category-badge {
    margin-bottom: 1rem;
}

.category-link {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: #f0f0f0;
    color: #333;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-link:hover {
    background: #333;
    color: #fff;
}

/* Post Meta Information */
.post-meta-info {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e5e5;
}

.author-meta {
    display: flex;
	justify-content: center;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    border-radius: 50%;
    flex-shrink: 0;
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.author-name {
    font-weight: 600;
    color: #333;
}

.author-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.author-name a:hover {
    color: #0066cc;
}

.post-date-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #666;
}

.meta-separator {
    color: #ccc;
}

.updated-date {
    font-style: italic;
}

/* Social Share Buttons */
.social-share-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.share-label {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    border: none;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    color: #fff;
}

.share-btn svg {
    flex-shrink: 0;
}

.facebook-btn {
    background: #1877f2;
}

.facebook-btn:hover {
    background: #0d5dca;
    transform: translateY(-2px);
}

.twitter-btn {
    background: #1da1f2;
}

.twitter-btn:hover {
    background: #0c85d0;
    transform: translateY(-2px);
}

.linkedin-btn {
    background: #0077b5;
}

.linkedin-btn:hover {
    background: #005885;
    transform: translateY(-2px);
}

.whatsapp-btn {
    background: #25d366;
}

.whatsapp-btn:hover {
    background: #1da851;
    transform: translateY(-2px);
}

.copy-btn {
    background: #6c757d;
}

.copy-btn:hover {
    background: #545b62;
    transform: translateY(-2px);
}

/* Copy Notification */
.copy-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #333;
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.copy-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Featured Image */
.featured-image {
    margin-bottom: 2.5rem;
}

/* Post Tags Section */
.post-tags-section {
    margin: 3rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.tags-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tags-label {
    font-weight: 600;
    color: #333;
}

.tags-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag-item {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: #f0f0f0;
    color: #555;
    border-radius: 20px;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: #333;
    color: #fff;
}

/* Author Bio Box */
.author-bio-box {
    margin: 3rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0066cc;
}

.author-bio-content {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.author-avatar-large img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
}

.author-info {
    flex: 1;
}

.author-name {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
}

.author-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.author-name a:hover {
    color: #0066cc;
}

.author-description {
    margin: 0 0 1rem 0;
    color: #666;
    line-height: 1.6;
}

.view-posts-link {
    display: inline-block;
    color: #0066cc;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.view-posts-link:hover {
    color: #0052a3;
}

/* Post Navigation */
.post-navigation {
    margin: 3rem 0;
}

.nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.nav-previous,
.nav-next {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-previous:hover,
.nav-next:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.nav-next {
    text-align: right;
}

.nav-subtitle {
    display: block;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.nav-title {
    display: block;
    color: #333;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-title:hover {
    color: #0066cc;
}

/* Related Posts Section */
.related-posts-section {
    background: #f8f9fa;
    padding: 4rem 0;
}

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

.section-heading {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

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

.related-post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.related-post-image {
    display: block;
    overflow: hidden;
    position: relative;
    padding-top: 100%; /* 5:3 Aspect Ratio */
}

.related-post-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.related-post-content {
    padding: 1.5rem;
}

.related-post-category {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: #e9ecef;
    color: #495057;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.related-post-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    line-height: 1.4;
}

.related-post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-post-title a:hover {
    color: #0066cc;
}

.related-post-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #666;
}

/* Comments Section */
.comments-section {
    background: #fff;
}

/* ================================
   Responsive Design
   ================================ */

/* Tablet View */
@media (max-width: 992px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .author-bio-content {
        gap: 1rem;
    }

    .author-avatar-large img {
        width: 60px;
        height: 60px;
    }

    .section-heading {
        font-size: 1.75rem;
    }
}

/* Mobile View */
@media (max-width: 768px) {
    /* Share buttons mobile optimization */
    .social-share-wrapper {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

    .share-buttons {
        width: 100%;
    }

    .share-btn {
        flex: 1;
        justify-content: center;
        min-width: calc(50% - 0.375rem);
    }

    .btn-text {
        display: none;
    }

    .share-btn {
        padding: 0.7rem;
    }

    /* Post Meta */
    .post-date-info {
        flex-wrap: wrap;
    }

    /* Author Bio */
    .author-bio-box {
        padding: 1.5rem;
    }

    .author-bio-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    /* Navigation */
    .nav-links {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .nav-next {
        text-align: left;
    }

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

    .section-heading {
        font-size: 1.5rem;
    }

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

    /* Tags */
    .tags-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Copy notification */
    .copy-notification {
        bottom: 20px;
        right: 20px;
        left: 20px;
        text-align: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .post-meta-info {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }

    .share-btn {
        font-size: 0.8rem;
        min-width: 100%;
    }

    .author-name {
        font-size: 1.1rem;
    }

    .nav-title {
        font-size: 1rem;
    }

    .related-post-title {
        font-size: 1rem;
    }
}

/* ================================
   Print Styles
   ================================ */
@media print {
    .social-share-wrapper,
    .post-navigation,
    .related-posts-section,
    .comments-section {
        display: none;
    }

    .featured-image img {
        max-height: 400px;
        object-fit: contain;
    }
}