/* Enhanced Single Blog Styles */

/* Modern Single Blog Layout */
.single-hero-modern {
    position: relative;
    overflow: hidden;
}

.single-hero-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(147, 51, 234, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #0d1019 0%, #1a1a2e 50%, #16213e 100%);
    z-index: 1;
}

.floating-orb {
    position: absolute;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(147, 51, 234, 0.2));
    border-radius: 50%;
    filter: blur(40px);
    animation: float 6s ease-in-out infinite;
    z-index: 2;
}

.floating-orb.orb-1 {
    animation-delay: 0s;
}

.floating-orb.orb-2 {
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Glass Badge */
.glass-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.glass-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Category Badge */
.category-badge-modern {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.category-badge-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* Post Title */
.single-post-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Post Meta */
.post-meta-modern .meta-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.post-meta-modern .meta-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.meta-icon {
    font-size: 1rem;
}

.author-link {
    color: var(--primary-color) !important;
    text-decoration: none;
    font-weight: 600;
}

.author-link:hover {
    color: var(--primary-color-dark) !important;
}

/* Content Section */
.single-content-modern {
    position: relative;
}

.single-content-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 70% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 30% 80%, rgba(147, 51, 234, 0.05) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none !important;
}

.post-content-modern {
    position: relative;
    z-index: 2;
}

/* Featured Image */
.featured-image-modern .image-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.featured-image-modern .image-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.featured-image-modern img {
    transition: transform 0.3s ease;
}

.featured-image-modern:hover img {
    transform: scale(1.05);
}

/* Reading Time */
.reading-time-indicator {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 12px 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
}

.time-icon {
    font-size: 1rem;
}

.word-count {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

/* Content Typography */
.content-wrapper {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    font-size: 1.1rem;
}

.content-wrapper h1,
.content-wrapper h2,
.content-wrapper h3,
.content-wrapper h4,
.content-wrapper h5,
.content-wrapper h6 {
    color: white;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    scroll-margin-top: 100px;
}

.content-wrapper h1 {
    font-size: 2.5rem;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.content-wrapper h2 {
    font-size: 2rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
}

.content-wrapper h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

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

.content-wrapper a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.content-wrapper a:hover {
    color: var(--primary-color-dark);
    border-bottom-color: var(--primary-color);
}

.content-wrapper blockquote {
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

.content-wrapper code {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.content-wrapper pre {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.content-wrapper ul,
.content-wrapper ol {
    padding-right: 1.5rem;
    margin-bottom: 1.5rem;
}

.content-wrapper li {
    margin-bottom: 0.5rem;
}

/* Table of Contents - Enhanced */
.toc-widget {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    position: sticky;
    top: 100px;
    transition: all 0.3s ease;
}

.toc-widget:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.1);
}

.toc-widget .widget-title {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    margin: 0;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}



.toc-widget .widget-content {
    padding: 1.5rem;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: 0.5rem;
    position: relative;
}

.toc-link {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    line-height: 1.4;
    border-left: 3px solid transparent;
}

.toc-link:hover {
    background: rgba(59, 130, 246, 0.1);
    color: white;
    border-left-color: var(--primary-color);
    transform: translateX(5px);
}

.toc-link.active {
    background: rgba(59, 130, 246, 0.2);
    color: white;
    border-left-color: var(--primary-color);
    font-weight: 600;
}

.toc-level-1 .toc-link {
    font-weight: 600;
    font-size: 1rem;
}

.toc-level-2 .toc-link {
    padding-right: 2rem;
    font-size: 0.9rem;
}

.toc-level-3 .toc-link {
    padding-right: 3rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.toc-level-4 .toc-link {
    padding-right: 4rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Mobile TOC */
.mobile-toc {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.mobile-toc-toggle {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    width: 100%;
    text-align: right;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.mobile-toc-toggle:hover {
    background: linear-gradient(135deg, var(--primary-color-dark), var(--secondary-color));
}

.mobile-toc-toggle::before {
    content: '📋';
    font-size: 1.2rem;
}

.mobile-toc-toggle::after {
    content: '▼';
    transition: transform 0.3s ease;
}

.mobile-toc.active .mobile-toc-toggle::after {
    transform: rotate(180deg);
}

.mobile-toc-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-toc.active .mobile-toc-content {
    max-height: 400px;
    padding: 1rem;
}

/* Tags */
.post-tags-modern {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
}

.tags-title {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tags-title::before {
    content: '🏷️';
    font-size: 1.2rem;
}

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

.tag-item {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

/* Share Buttons */
.share-buttons-modern {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
}

.share-title {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-title::before {
    content: '🔗';
    font-size: 1.2rem;
}

.share-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.share-btn.telegram:hover {
    background: #0088cc;
    border-color: #0088cc;
}

.share-btn.whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
}

.share-btn.twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
}

.share-btn.copy:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Author Bio */
.author-bio-modern {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
}

.author-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .author-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    
    .author-bio-modern {
        padding: 1.5rem;
    }
    
    .author-avatar img {
        width: 60px;
        height: 60px;
    }
    
    .author-stats {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .stat-item {
        font-size: 0.8rem;
    }
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.author-avatar:hover img {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.author-name {
    color: white;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.author-name-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.author-name-link:hover {
    color: var(--primary-color);
}

.author-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.author-stats {
    margin-bottom: 1rem;
}

.stat-item {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.author-website-link {
    color: var(--primary-color);
    text-decoration: none;
}

.author-website-link:hover {
    color: var(--primary-color-dark);
}

.btn-author-posts {
    background: var(--primary-color) !important;
    color: white !important;
    text-decoration: none !important;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative !important;
    z-index: 20 !important;
    pointer-events: auto !important;
}

.btn-author-posts:hover {
    background: var(--primary-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

/* Sidebar Widgets */
.sidebar-modern {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: visible;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.sidebar-widget:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
}

.sidebar-widget * {
    pointer-events: auto !important;
}

.sidebar-widget a {
    position: relative !important;
    z-index: 25 !important;
    pointer-events: auto !important;
    display: block !important;
}

.sidebar-widget a:hover {
    pointer-events: auto !important;
}

.sidebar-widget .widget-title {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    margin: 0;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-widget .widget-content {
    padding: 1.5rem;
    position: relative;
    z-index: 15;
}

/* Related Posts */
.related-post-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative !important;
    z-index: 997 !important;
    pointer-events: auto !important;
}

.related-post-item::before,
.related-post-item::after {
    pointer-events: none !important;
}

.related-post-item * {
    pointer-events: auto !important;
}

.related-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-post-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
}

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

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

.related-post-image a {
    position: relative !important;
    z-index: 999 !important;
    display: block !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.related-post-image {
    position: relative !important;
    z-index: 998 !important;
    pointer-events: auto !important;
}

.related-post-title a {
    color: white !important;
    text-decoration: none !important;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.3s ease;
    position: relative !important;
    z-index: 999 !important;
    display: block !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.related-post-title {
    position: relative !important;
    z-index: 998 !important;
    pointer-events: auto !important;
}

.related-post-content {
    position: relative !important;
    z-index: 998 !important;
    pointer-events: auto !important;
}

.related-post-title a:hover {
    color: var(--primary-color);
}

.related-post-meta {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* Popular Posts */
.popular-post-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.popular-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-post-title a {
    color: white !important;
    text-decoration: none !important;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.3s ease;
    position: relative !important;
    z-index: 20 !important;
    display: block !important;
    pointer-events: auto !important;
}

.popular-post-title a:hover {
    color: var(--primary-color);
}

.popular-post-meta {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* Post Navigation */
.post-navigation-modern {
    backdrop-filter: blur(20px);
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-link:hover {
    color: white;
    transform: translateY(-2px);
}

.nav-direction {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.nav-title {
    font-weight: 500;
}

.btn-outline-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    transition: all 0.3s ease;
}

.btn-outline-glass:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 991px) {
    .sidebar-modern {
        position: static;
        margin-top: 3rem;
    }
    
    .toc-widget {
        display: none;
    }
    
    .mobile-toc {
        display: block;
    }
    
    .author-card {
        flex-direction: column;
        text-align: center;
    }
    
    .single-post-title {
        font-size: 2rem;
    }
    
    .post-meta-modern {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

@media (max-width: 768px) {
    .single-hero-modern {
        min-height: 40vh;
        padding: 3rem 0;
    }
    
    .single-post-title {
        font-size: 1.75rem;
    }
    
    .content-wrapper {
        font-size: 1rem;
    }
    
    .content-wrapper h1 {
        font-size: 2rem;
    }
    
    .content-wrapper h2 {
        font-size: 1.5rem;
    }
    
    .content-wrapper h3 {
        font-size: 1.25rem;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .tags-list {
        justify-content: center;
    }
    
    .post-nav-wrapper {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Reading Progress */
.reading-progress {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 1000;
    transition: all 0.3s ease;
}

.reading-progress:hover {
    background: rgba(255, 255, 255, 0.15);
}

.progress-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: conic-gradient(var(--primary-color) 0deg, rgba(255, 255, 255, 0.2) 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: white;
    font-weight: 600;
}

.progress-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .reading-progress {
        display: none;
    }
}

/* Enhanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Print Styles */
@media print {
    .sidebar-modern,
    .share-buttons-modern,
    .post-navigation-modern,
    .scroll-progress,
    .reading-progress {
        display: none !important;
    }
    
    .single-content-modern {
        background: white !important;
    }
    
    .content-wrapper,
    .content-wrapper h1,
    .content-wrapper h2,
    .content-wrapper h3,
    .content-wrapper h4,
    .content-wrapper h5,
    .content-wrapper h6 {
        color: black !important;
    }
}