/* Blog Detail Page Styles */

/* Blog Header */
.blog-header {
    text-align: center;
    margin-bottom: 2rem;
}

.blog-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50px;
    color: #3b82f6;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.blog-badge:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

.blog-detail__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin: 1.5rem 0;
    word-spacing: 0.05em;
}

/* Blog Meta Information */
.blog-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.blog-meta__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
}

.blog-meta__item i {
    color: #3b82f6;
    font-size: 1rem;
}

/* Featured Image */
.blog-featured-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    background: #f8fafc;
    width: 100%;
    max-width: 100%;
}

.blog-featured-image__img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-featured-image:hover .blog-featured-image__img {
    transform: scale(1.03);
}

/* Blog Content Wrapper */
.blog-content-wrapper {
    background: #fff;
    border-radius: 8px;
    padding: 2.5rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #334155;
    word-spacing: 0.02em;
    letter-spacing: 0.2px;
}

/* Content typography enhancements */
.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #0f172a;
    font-weight: 700;
    line-height: 1.3;
}

.blog-content h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #e0e7ff;
    padding-bottom: 0.8rem;
}

.blog-content h3 {
    font-size: 1.4rem;
}

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

.blog-content a {
    color: #3b82f6;
    text-decoration: none;
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    font-weight: 500;
}

.blog-content a:hover {
    color: #1e40af;
    border-bottom-color: rgba(30, 64, 175, 0.5);
}

.blog-content ul,
.blog-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.blog-content li {
    margin-bottom: 0.8rem;
    color: #334155;
}

.blog-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 1.5rem 1.5rem 4px;
    border-left: 4px solid #3b82f6;
    background: #f0f9ff;
    border-radius: 4px;
    font-style: italic;
    color: #0f172a;
    font-weight: 500;
}

.blog-content code {
    background: #f1f5f9;
    color: #d946ef;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
    font-family: 'Monaco', 'Courier New', monospace;
}

.blog-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.blog-content pre code {
    background: none;
    color: #e2e8f0;
    padding: 0;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Blog Footer */
.blog-footer {
    margin-top: 3rem;
    padding-top: 2rem;
}

.blog-share {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.blog-share__label {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.95rem;
}

.blog-share__buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    transition: all 0.3s ease;
    font-size: 1rem;
    border: 1px solid #e2e8f0;
}

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

.share-btn--facebook:hover {
    background: #1877f2;
    color: #fff;
    border-color: #1877f2;
}

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

.share-btn--linkedin:hover {
    background: #0a66c2;
    color: #fff;
    border-color: #0a66c2;
}

/* Blog Comments */
.blog-comments__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.5rem;
}

.blog-comments__count {
    color: #64748b;
    font-weight: 600;
}

.blog-comments__list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.blog-comments__empty {
    margin-bottom: 2rem;
}

.blog-comment {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.blog-comment__avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #72c05b 0%, #4fb5c9 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}

.blog-comment__body {
    min-width: 0;
    flex: 1;
}

.blog-comment__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    margin-bottom: 0.5rem;
}

.blog-comment__author {
    color: #0f172a;
    font-size: 1rem;
}

.blog-comment__date {
    color: #64748b;
    font-size: 0.875rem;
}

.blog-comment__text {
    margin: 0;
    color: #334155;
    line-height: 1.65;
    white-space: pre-wrap;
}

.blog-comments__form-wrap {
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
}

.blog-comments__form-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.25rem;
}

.blog-comments__form .form-label {
    font-weight: 600;
    color: #334155;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-meta {
        gap: 1.5rem;
    }

    .blog-content-wrapper {
        padding: 1.5rem 1rem;
    }

    .blog-content {
        font-size: 1rem;
    }

    .blog-footer {
        margin-top: 2rem;
    }

    .blog-share {
        gap: 1rem;
        justify-content: center;
    }

    .blog-detail__title {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
    }
}

/* Reading Time Calculation */
#readingTime {
    font-weight: 700;
    color: #3b82f6;
}

/* Animation for content */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-content-wrapper {
    animation: fadeInUp 0.6s ease-out;
}
