/* Blog Detail Content Section */
.blog-detail-page .blog-detail-content {
    background: var(--background-color);
    padding: 10px 0 120px;
}

/* Blog Article */
.blog-detail-page .blog-article {
    background: var(--surface-color);
    border-radius: 25px;
    overflow: hidden;
    margin-bottom: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Featured Image with Overlay */
.blog-detail-page .blog-featured-image {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: linear-gradient(45deg, var(--accent-color), #2d5cff);
}

.blog-detail-page .blog-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-detail-page .blog-featured-image:hover img {
    transform: scale(1.05);
}

/* Content Overlay - Main overlay with title and meta */
.blog-detail-page .blog-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 60px 40px 40px;
    color: white;
    z-index: 3;
}

/* Category Badge within Image */
.blog-detail-page .blog-content-overlay .blog-category-badge {
    display: inline-flex;
    align-items: center;
    background: var(--accent-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(29, 96, 236, 0.4);
}

.blog-detail-page .blog-content-overlay .blog-category-badge i {
    margin-right: 6px;
    font-size: 13px;
}

/* Blog Title within Image */
.blog-detail-page .blog-content-overlay .blog-detail-title {
    font-size: 36px;
    font-weight: 800;
    color: white;
    font-family: var(--heading-font);
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Blog Meta within Image */
.blog-detail-page .blog-content-overlay .blog-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 25px;
}

/* Author Info */
.blog-detail-page .blog-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-detail-page .author-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.blog-detail-page .author-name {
    font-weight: 600;
    color: white;
    font-size: 15px;
}

/* Meta Items */
.blog-detail-page .meta-items {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.blog-detail-page .blog-content-overlay .meta-item {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
}

.blog-detail-page .blog-content-overlay .meta-item i {
    color: var(--accent-color);
    margin-right: 6px;
    font-size: 16px;
}

/* Share Buttons Overlay (on hover) - Updated to show in top right corner */
.blog-detail-page .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-start;  /* Changed from center to flex-start */
    justify-content: flex-end;  /* Changed from center to flex-end */
    padding: 20px;  /* Added padding to give some space from the edge */
    z-index: 4;
}

.blog-detail-page .blog-featured-image:hover .image-overlay {
    opacity: 1;
}

.blog-detail-page .share-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.blog-detail-page .share-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-right: 10px;
}

.blog-detail-page .share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.blog-detail-page .share-btn.facebook {
    background: #1877f2;
    color: white;
}

.blog-detail-page .share-btn.twitter {
    background: #000000;
    color: white;
}

.blog-detail-page .share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.blog-detail-page .share-btn.email {
    background: #ea4335;
    color: white;
}

.blog-detail-page .share-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    color: white;
}

/* Blog Content Text */
.blog-detail-page .blog-content-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--default-color);
    margin-bottom: 40px;
    padding: 50px;
}

.blog-detail-page .blog-content-text h1,
.blog-detail-page .blog-content-text h2,
.blog-detail-page .blog-content-text h3,
.blog-detail-page .blog-content-text h4,
.blog-detail-page .blog-content-text h5,
.blog-detail-page .blog-content-text h6 {
    color: var(--heading-color);
    font-family: var(--heading-font);
    font-weight: 700;
    margin: 40px 0 20px;
    scroll-margin-top: 100px;
}

.blog-detail-page .blog-content-text h1 { font-size: 2.3rem; }
.blog-detail-page .blog-content-text h2 { font-size: 2.0rem; }
.blog-detail-page .blog-content-text h3 { font-size: 1.7rem; }
.blog-detail-page .blog-content-text h4 { font-size: 1.4rem; }
.blog-detail-page .blog-content-text h5 { font-size: 1.2rem; }
.blog-detail-page .blog-content-text h6 { font-size: 1.1rem; }

.blog-detail-page .blog-content-text p {
    margin-bottom: 25px;
}

.blog-detail-page .blog-content-text ul,
.blog-detail-page .blog-content-text ol {
    margin: 25px 0;
    padding-left: 30px;
}

.blog-detail-page .blog-content-text li {
    margin-bottom: 10px;
}

.blog-detail-page .blog-content-text blockquote {
    background: rgba(29, 96, 236, 0.1);
    border-left: 4px solid var(--accent-color);
    padding: 25px 30px;
    margin: 30px 0;
    font-style: italic;
    font-size: 20px;
    border-radius: 0 15px 15px 0;
}

.blog-detail-page .blog-content-text code {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    color: var(--accent-color);
}

.blog-detail-page .blog-content-text pre {
    background: rgba(0, 0, 0, 0.8);
    padding: 25px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 30px 0;
}

.blog-detail-page .blog-content-text pre code {
    background: none;
    color: #fff;
    padding: 0;
}

.blog-detail-page .blog-content-text img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Blog Tags */
.blog-detail-page .blog-tags-section {
    padding: 0 50px 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
    padding-top: 30px;
}

.blog-detail-page .blog-tags-section h5 {
    color: var(--heading-color);
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 16px;
}

.blog-detail-page .blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.blog-detail-page .blog-tag {
    background: linear-gradient(135deg, var(--accent-color), #2d5cff);
    color: white;
    padding: 6px 14px;
    border-radius: 18px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.blog-detail-page .blog-tag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(29, 96, 236, 0.4);
}

/* Blog Navigation */
.blog-detail-page .blog-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.blog-detail-page .nav-previous {
    text-align: left;
}

.blog-detail-page .nav-next {
    text-align: right;
}

.blog-detail-page .nav-link {
    display: block;
    background: var(--surface-color);
    padding: 25px;
    border-radius: 15px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.blog-detail-page .nav-link:hover {
    background: linear-gradient(135deg, var(--accent-color), #2d5cff);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(29, 96, 236, 0.3);
    border-color: var(--accent-color);
}

.blog-detail-page .nav-direction {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.blog-detail-page .nav-direction i {
    font-size: 16px;
}

.blog-detail-page .nav-previous .nav-direction {
    justify-content: flex-start;
}

.blog-detail-page .nav-next .nav-direction {
    justify-content: flex-end;
}

.blog-detail-page .nav-previous .nav-direction i {
    margin-right: 8px;
}

.blog-detail-page .nav-next .nav-direction i {
    margin-left: 8px;
}

.blog-detail-page .nav-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--heading-color);
    font-family: var(--heading-font);
    line-height: 1.3;
}

.blog-detail-page .nav-link:hover .nav-title,
.blog-detail-page .nav-link:hover .nav-direction {
    color: white;
}

/* Related Posts */
.blog-detail-page .related-posts {
    background: var(--surface-color);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-detail-page .section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--heading-color);
    font-family: var(--heading-font);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.blog-detail-page .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), #2d5cff);
    border-radius: 2px;
}

.blog-detail-page .related-post-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
}

.blog-detail-page .related-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.blog-detail-page .related-post-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-detail-page .related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-detail-page .related-post-card:hover .related-post-image img {
    transform: scale(1.1);
}

.blog-detail-page .related-post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(29, 96, 236, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-detail-page .related-post-card:hover .related-post-overlay {
    opacity: 1;
}

.blog-detail-page .read-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: white;
    color: var(--accent-color);
    border-radius: 50%;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
}

.blog-detail-page .read-more-btn:hover {
    transform: scale(1.2);
    color: var(--accent-color);
}

.blog-detail-page .related-post-content {
    padding: 20px;
}

.blog-detail-page .related-post-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
}

.blog-detail-page .related-post-meta i {
    color: var(--accent-color);
    margin-right: 5px;
}

.blog-detail-page .related-post-content h5 {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
}

.blog-detail-page .related-post-content h5 a {
    color: var(--heading-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.blog-detail-page .related-post-content h5 a:hover {
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .blog-detail-page .blog-content-overlay .blog-detail-title {
        font-size: 32px;
    }
}

@media (max-width: 991px) {
    .blog-detail-page .blog-content-overlay .blog-detail-title {
        font-size: 28px;
    }

    .blog-detail-page .blog-content-text {
        padding: 40px;
    }

    .blog-detail-page .blog-tags-section {
        padding: 0 40px 40px;
    }

    .blog-detail-page .blog-navigation {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-detail-page .nav-next {
        text-align: left;
    }

    .blog-detail-page .nav-next .nav-direction {
        justify-content: flex-start;
    }

    .blog-detail-page .nav-next .nav-direction i {
        margin-left: 0;
        margin-right: 8px;
        order: -1;
    }
}

@media (max-width: 768px) {
    .blog-detail-page .blog-detail-content {
        padding: 40px 0 70px;
    }

    .blog-detail-page .blog-featured-image {
        height: 400px;
    }

    .blog-detail-page .blog-content-overlay {
        padding: 40px 30px 30px;
    }

    .blog-detail-page .blog-content-overlay .blog-detail-title {
        font-size: 24px;
    }

    .blog-detail-page .blog-detail-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .blog-detail-page .meta-items {
        gap: 15px;
    }

    .blog-detail-page .blog-content-text {
        font-size: 16px;
        padding: 30px;
    }

    .blog-detail-page .blog-tags-section {
        padding: 0 30px 30px;
    }

    .blog-detail-page .share-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .blog-detail-page .related-posts {
        padding: 25px;
    }
}

@media (max-width: 576px) {
    .blog-detail-page .blog-featured-image {
        height: 350px;
    }

    .blog-detail-page .blog-content-overlay {
        padding: 30px 25px 25px;
    }

    .blog-detail-page .blog-content-overlay .blog-detail-title {
        font-size: 20px;
    }

    .blog-detail-page .blog-content-text {
        padding: 25px;
    }

    .blog-detail-page .blog-tags-section {
        padding: 0 25px 25px;
    }

    .blog-detail-page .share-buttons {
        padding: 12px 20px;
        gap: 10px;
    }

    .blog-detail-page .share-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .blog-detail-page .author-avatar-small {
        width: 35px;
        height: 35px;
    }

    .blog-detail-page .author-name {
        font-size: 14px;
    }

    .blog-detail-page .blog-content-overlay .meta-item {
        font-size: 13px;
    }

    .blog-detail-page .blog-content-text h1 { font-size: 1.6rem; }
    .blog-detail-page .blog-content-text h2 { font-size: 1.4rem; }
    .blog-detail-page .blog-content-text h3 { font-size: 1.2rem; }
    .blog-detail-page .blog-content-text h4 { font-size: 1.1rem; }
    .blog-detail-page .blog-content-text h5 { font-size: 1rem; }
    .blog-detail-page .blog-content-text h6 { font-size: 0.9rem; }
}
