/* Blog Post Detail Glass Morphism Styles */

/* Main container with glass effect */
.blog-post-detail {
    max-width: 900px;
    margin: 2rem auto;
    padding: 3rem;
    min-height: 100vh;
    background: linear-gradient(
        135deg,
        rgba(50, 48, 49, 0.35) 0%,
        rgba(30, 30, 30, 0.25) 50%,
        rgba(45, 45, 45, 0.35) 100%
    );
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px 0 rgba(31, 38, 135, 0.2),
        0 2px 16px 0 rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Override text colors for readability */
.post-title {
    color: #EBEBEB !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.post-meta {
    color: rgba(235, 235, 235, 0.8) !important;
}

.post-breadcrumb a {
    color: #9AD5CA !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.post-breadcrumb a:hover {
    color: #7B44C1 !important;
}

/* Content styling with better contrast */
.post-content {
    color: rgba(235, 235, 235, 0.9) !important;
    background: rgba(50, 48, 49, 0.3);
    padding: 2rem;
    border-radius: 1rem;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    margin: 2rem 0 3rem;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: #EBEBEB !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.post-content p {
    color: rgba(235, 235, 235, 0.9) !important;
    margin-bottom: 1.5rem;
}

.post-content blockquote {
    border-left-color: #9AD5CA !important;
    color: rgba(235, 235, 235, 0.8) !important;
    background: rgba(154, 213, 202, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
}

.post-content a {
    color: #9AD5CA !important;
    text-decoration: underline;
}

.post-content a:hover {
    color: #7B44C1 !important;
}

.post-content code {
    background: rgba(123, 68, 193, 0.2) !important;
    color: #EBEBEB !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(123, 68, 193, 0.3);
}

.post-content pre {
    background: rgba(40, 44, 52, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.post-content pre code {
    background: none !important;
    border: none;
}

.post-content ul li,
.post-content ol li {
    color: rgba(235, 235, 235, 0.9) !important;
}

/* Tags with glass effect */
.post-tag {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(235, 235, 235, 0.8) !important;
}

.post-tag:hover {
    background: rgba(123, 68, 193, 0.3) !important;
    color: #EBEBEB !important;
    border-color: rgba(123, 68, 193, 0.5);
}

/* Share buttons with glass effect */
.share-button {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(235, 235, 235, 0.8) !important;
}

.share-twitter:hover {
    background: rgba(29, 161, 242, 0.3) !important;
    border-color: rgba(29, 161, 242, 0.5);
}

.share-linkedin:hover {
    background: rgba(0, 119, 181, 0.3) !important;
    border-color: rgba(0, 119, 181, 0.5);
}

.share-email:hover {
    background: rgba(123, 68, 193, 0.3) !important;
    border-color: rgba(123, 68, 193, 0.5);
}

/* Footer and related posts */
.post-footer {
    border-top-color: rgba(255, 255, 255, 0.1) !important;
}

.post-share h3 {
    color: #EBEBEB !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.related-posts {
    border-top-color: rgba(255, 255, 255, 0.1) !important;
}

.related-posts h2 {
    color: #EBEBEB !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.related-post-card {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(15px) saturate(1.2);
    -webkit-backdrop-filter: blur(15px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 8px 32px 0 rgba(31, 38, 135, 0.15),
        0 2px 16px 0 rgba(0, 0, 0, 0.2) !important;
}

.related-post-card:hover {
    box-shadow: 
        0 12px 40px 0 rgba(123, 68, 193, 0.25),
        0 4px 20px 0 rgba(0, 0, 0, 0.3) !important;
    border-color: rgba(123, 68, 193, 0.3);
}

.related-post-content h3 {
    color: #EBEBEB !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.related-post-content p {
    color: rgba(235, 235, 235, 0.8) !important;
}

.related-post-date {
    color: rgba(235, 235, 235, 0.6) !important;
}

/* Reading progress bar */
.reading-progress {
    background: linear-gradient(to right, #7B44C1, #9AD5CA) !important;
    box-shadow: 0 0 10px rgba(123, 68, 193, 0.5);
}

/* Featured image */
.post-featured-image img {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .blog-post-detail {
        padding: 1.5rem;
        margin: 1rem;
        backdrop-filter: blur(15px) saturate(1.1);
        -webkit-backdrop-filter: blur(15px) saturate(1.1);
    }
    
    .post-content {
        padding: 1rem;
    }
}

/* Fallback for browsers without backdrop-filter */
@supports not (backdrop-filter: blur(15px)) {
    .blog-post-detail {
        background: rgba(50, 48, 49, 0.95) !important;
    }
    
    .post-content {
        background: rgba(50, 48, 49, 0.9) !important;
    }
    
    .related-post-card {
        background: rgba(50, 48, 49, 0.9) !important;
    }
}

/* Override any conflicting styles from other stylesheets */
body {
    background-color: #1a1a1a !important;
}

/* Strong text for better visibility */
.post-content strong,
.post-content b {
    color: #EBEBEB !important;
    font-weight: 700;
}

/* Lists */
.post-content ul,
.post-content ol {
    color: rgba(235, 235, 235, 0.9) !important;
}

/* Emphasized text */
.post-content em,
.post-content i {
    color: rgba(235, 235, 235, 0.95) !important;
}

/* Tables if any */
.post-content table {
    background: rgba(50, 48, 49, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.post-content th {
    background: rgba(123, 68, 193, 0.2);
    color: #EBEBEB !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.post-content td {
    color: rgba(235, 235, 235, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}