/* Blog Post Styling */
.blog-content {
    max-width: 900px;
    margin: 80px auto 60px;
    padding: 0;
    line-height: 1.8;
}

/* Back button - left aligned */
.back-navigation {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-start;
}

.back-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0 !important;
    background: transparent !important;
    color: #0099FF !important;
    text-decoration: none;
    border-radius: 50% !important;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
}

.back-btn:hover {
    background: #f0f4ff !important;
    border-color: #0099FF;
    transform: translateX(-4px) scale(1.05);
}

.back-btn i {
    font-size: 22px;
    line-height: 1;
}

.back-label {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #1a1a1a;
}

/* Featured Image */
.featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    margin-bottom: 40px;
}

/* Blog content wrapper */
.blog-text-content {
    padding: 0 40px 40px;
}

.blog-content h1 {
    margin-bottom: 20px;
    color: #1a1a1a;
    font-size: 36px;
}

.blog-text-content h2 {
    margin-top: 40px;
    margin-bottom: 16px;
    color: #0099FF;
    font-size: 26px;
    border-bottom: 2px solid #CCE9FF;
    padding-bottom: 8px;
}

.blog-text-content p {
    margin-bottom: 16px;
    color: #333;
    font-size: 16px;
}

.blog-text-content ul {
    margin: 16px 0 16px 24px;
    color: #333;
}

.blog-text-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Inline code */
.blog-content code {
    background: #CCE9FF;
    color: #0077CC;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    font-weight: 600;
}

/* Code blocks - VS Code Dark Theme */
.blog-content pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 24px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 20px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border: 1px solid #2d2d2d;
    position: relative;
}

/* Add subtle top border like VS Code */
.blog-content pre::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, #007acc, #00bcf2);
}

.blog-content pre code {
    background: transparent;
    color: #d4d4d4;
    padding: 0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    font-weight: normal;
}

/* Tables */
.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
}

.blog-content th,
.blog-content td {
    border: 1px solid #e0e0e0;
    padding: 12px 16px;
    text-align: left;
}

.blog-content th {
    background: #007acc;
    color: white;
    font-weight: 600;
}

.blog-content tr:nth-child(even) {
    background: #f8f9fa;
}

.blog-content tr:hover {
    background: #CCE9FF;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-content {
        margin: 80px 16px;
        padding: 16px;
    }
    
    .blog-content h1 {
        font-size: 28px;
    }
    
    .blog-content h2 {
        font-size: 22px;
    }
    
    .blog-content pre {
        padding: 16px;
        font-size: 13px;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #0099FF;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0, 153, 255, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #0077CC;
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 153, 255, 0.5);
}
