/* Blog Details Page Specific Styles */

/* Content Styling */
.blog-content h2, 
.blog-content h3, 
.blog-content h4 {
    color: var(--white-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.blog-content h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

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

.blog-content h4 {
    font-size: 1.25rem;
}

.blog-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--body-font-color);
    font-size: 16px;
}

.blog-content pre {
    background: var(--bg-primary);
    border: 1px solid var(--bg-secondary-border);
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    margin: 20px 0;
    position: relative;
}

.blog-content pre::before {
    content: 'Code';
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 12px;
    color: var(--primary-color);
    text-transform: uppercase;
}

.blog-content code {
    background: var(--bg-primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
}

.blog-content ul, 
.blog-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.blog-content li {
    margin-bottom: 8px;
    color: var(--body-font-color);
    line-height: 1.6;
}

.blog-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    background: rgba(175, 244, 43, 0.1);
    padding: 20px;
    border-radius: 8px;
}

/* Blog Header */
.blog-header-area {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.blog-category .badge {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.blog-category .badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.blog-title {
    font-size: 2.5rem;
    line-height: 1.3;
    font-weight: 700;
}

.blog-meta .meta-item {
    font-size: 14px;
    margin-bottom: 10px;
}

.blog-excerpt {
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Navigation */
.blog-navigation {
    background: var(--bg-secondary);
    border: 1px solid var(--bg-secondary-border);
}

.blog-navigation .nav-link:hover {
    background: rgba(175, 244, 43, 0.1);
    border-radius: 10px;
    transform: translateX(5px);
    transition: all 0.3s ease;
}

.blog-navigation .nav-direction i {
    transition: transform 0.3s ease;
}

.blog-navigation .nav-link:hover .nav-direction i {
    transform: scale(1.2);
}

/* Social Share */
.social-share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 5px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.social-share-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.social-share-btn:hover::before {
    left: 100%;
}

.social-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.share-facebook { 
    background: linear-gradient(45deg, #3b5998, #8b9dc3); 
    color: white; 
}

.share-twitter { 
    background: linear-gradient(45deg, #1da1f2, #4ab8f5); 
    color: white; 
}

.share-linkedin { 
    background: linear-gradient(45deg, #0077b5, #00a0dc); 
    color: white; 
}

.share-whatsapp { 
    background: linear-gradient(45deg, #25d366, #5ce888); 
    color: white; 
}

.likes-section {
    display: flex;
    align-items: center;
}

.likes-count {
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Tags */
.tag-item {
    display: inline-block;
    padding: 6px 14px;
    margin: 5px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-item:hover {
    transform: translateY(-2px);
    text-decoration: none;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Reading Progress */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #7bdb00);
    z-index: 9999;
    transition: width 0.3s ease;
    box-shadow: 0 2px 5px rgba(175, 244, 43, 0.3);
}

/* Sidebar Components */
.author-info {
    text-align: center;
    border: 1px solid var(--bg-secondary-border);
    transition: all 0.3s ease;
}

.author-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.author-avatar {
    transition: all 0.3s ease;
}

.author-info:hover .author-avatar {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(175, 244, 43, 0.4);
}

.related-posts,
.popular-tags,
.newsletter-sidebar {
    border: 1px solid var(--bg-secondary-border);
    transition: all 0.3s ease;
}

.related-posts:hover,
.popular-tags:hover,
.newsletter-sidebar:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.related-post-item {
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 8px;
}

.related-post-item:hover {
    background: rgba(175, 244, 43, 0.1);
    transform: translateX(5px);
}

.related-post-image img {
    transition: all 0.3s ease;
}

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

/* Newsletter Form */
.newsletter-form .enhanced-input {
    background: var(--bg-secondary);
    border: 2px solid var(--bg-secondary-border);
    color: var(--white-color);
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.newsletter-form .enhanced-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(175, 244, 43, 0.3);
    background: var(--bg-primary);
}

.newsletter-form .enhanced-btn {
    background: linear-gradient(45deg, var(--primary-color), #7bdb00);
    border: none;
    color: var(--black-color);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.newsletter-form .enhanced-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(175, 244, 43, 0.4);
    background: linear-gradient(45deg, #7bdb00, var(--primary-color));
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-title {
        font-size: 1.8rem;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .blog-meta .meta-item {
        margin-right: 0;
    }
    
    .social-share-btn {
        width: 45px;
        height: 45px;
        margin: 3px;
    }
    
    .blog-navigation .row {
        flex-direction: column;
        gap: 20px;
    }
    
    .blog-navigation .nav-link {
        text-align: center;
    }
    
    .share-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Animation Classes */
.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.bounce-in {
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% { 
        opacity: 0;
        transform: scale(0.3);
    }
    50% { 
        opacity: 1;
        transform: scale(1.05);
    }
    70% { 
        transform: scale(0.9);
    }
    100% { 
        opacity: 1;
        transform: scale(1);
    }
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 