﻿/* Blog Post Specific Styles */
.blog-post {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-post-image img {
    transition: transform 0.3s ease;
}

    .blog-post-image img:hover {
        transform: scale(1.02);
    }

.comment-item {
    animation: slideInLeft 0.4s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,.1);
    border-radius: 50%;
    border-top-color: #007bff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Share button hover effects */
.blog-post-share button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Code block styling */
.content-wrapper pre {
    position: relative;
}

    .content-wrapper pre::after {
        content: "Code";
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        background: #4a5568;
        color: white;
        padding: 0.25rem 0.5rem;
        border-radius: 0.25rem;
        font-size: 0.75rem;
        font-weight: bold;
    }

/* Table responsive */
.content-wrapper table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}

/* Print styles */
@media print {
    .blog-post-share,
    .comments-section,
    .related-posts {
        display: none;
    }

    .blog-post {
        max-width: 100%;
    }
}
