﻿/* Add to your existing styles */
.hero-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.placeholder-content {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

    .placeholder-content i {
        opacity: 0.3;
    }

/* Your existing styles... */
:root {
    --primary-color: #6f42c1;
    --secondary-color: #495057;
    --accent-color: #fd7e14;
    --text-light: #f8f9fa;
    --text-muted: #6c757d;
    --border-color: #495057;
    --surface-color: #343a40;
}

/* Blog post specific styles */
.blog-post-hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 60px 0;
    min-height: 40vh;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

    .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.3;
    }

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 2px;
    padding-bottom: 1rem;
}

.blog-breadcrumb {
    margin-bottom: 2rem;
}

    .blog-breadcrumb .breadcrumb {
        background: rgba(255, 255, 255, 0.1);
        padding: 0.75rem 1.5rem;
        border-radius: 10px;
    }

    .blog-breadcrumb .breadcrumb-item a {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .blog-breadcrumb .breadcrumb-item a:hover {
            color: white;
        }

    .blog-breadcrumb .breadcrumb-item.active {
        color: white;
        font-weight: 600;
    }

.post-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin: 20px 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.post-meta {
    display: flex;
    gap: 20px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

    .post-meta > div {
        display: flex;
        align-items: center;
        gap: 8px;
    }

.blog-post-content {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a2e 50%, #16213e 100%);
    padding: 4rem 0;
    min-height: 60vh;
}

.post-article {
    padding: 3rem;
    margin-bottom: 2rem;
}

.article-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--text-light);
}

    .article-content h1,
    .article-content h2,
    .article-content h3,
    .article-content h4,
    .article-content h5,
    .article-content h6 {
        color: var(--text-light);
        margin-top: 2.5rem;
        margin-bottom: 1.5rem;
        font-weight: 600;
    }

    .article-content h1 {
        font-size: 2.2rem;
    }

    .article-content h2 {
        font-size: 1.8rem;
    }

    .article-content h3 {
        font-size: 1.5rem;
    }

    .article-content p {
        margin-bottom: 1.5rem;
        color: rgba(248, 249, 250, 0.9);
    }

    .article-content img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        margin: 2rem 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .article-content blockquote {
        border-left: 4px solid var(--primary-color);
        padding-left: 20px;
        margin: 2rem 0;
        font-style: italic;
        background: rgba(255, 255, 255, 0.05);
        padding: 1rem 1rem 1rem 2rem;
        border-radius: 0 8px 8px 0;
    }

    .article-content code {
        background: var(--surface-color);
        padding: 4px 8px;
        border-radius: 4px;
        font-family: 'Fira Code', 'Courier New', monospace;
        font-size: 0.9em;
        color: #00BFFF;
    }

    .article-content pre {
        background: var(--surface-color);
        padding: 1.5rem;
        border-radius: 8px;
        overflow-x: auto;
        margin: 2rem 0;
        border: 1px solid var(--border-color);
    }

        .article-content pre code {
            background: transparent;
            padding: 0;
            color: var(--text-light);
        }

    .article-content ul,
    .article-content ol {
        margin-bottom: 1.5rem;
        padding-left: 2rem;
    }

    .article-content li {
        margin-bottom: 0.5rem;
        color: rgba(248, 249, 250, 0.9);
    }

    .article-content table {
        width: 100%;
        margin: 2rem 0;
        border-collapse: collapse;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        overflow: hidden;
    }

    .article-content th,
    .article-content td {
        padding: 12px 16px;
        text-align: left;
        border-bottom: 1px solid var(--border-color);
    }

    .article-content th {
        background: var(--primary-color);
        color: white;
        font-weight: 600;
    }

.post-tags {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

    .post-tags h6 {
        color: var(--text-light);
        margin-bottom: 1rem;
        font-weight: 600;
    }

.tag {
    display: inline-block;
    background: var(--surface-color);
    color: var(--text-light);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    margin-right: 8px;
    margin-bottom: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

    .tag:hover {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
        transform: translateY(-2px);
    }

.post-engagement {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.engagement-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.engagement-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

    .engagement-btn:hover:not(:disabled) {
        background: var(--primary-color);
        border-color: var(--primary-color);
        color: white;
        transform: translateY(-2px);
    }

    .engagement-btn.liked {
        background: var(--accent-color);
        border-color: var(--accent-color);
        color: white;
    }

    .engagement-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.post-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

    .post-stats span {
        color: var(--text-muted);
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        gap: 6px;
    }

.comments-wrapper {
    padding: 2rem;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

    .comments-header h4 {
        color: var(--text-light);
        margin: 0;
        font-weight: 600;
    }

.comment-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

    .comment-form textarea {
        background: var(--surface-color);
        border: 1px solid var(--border-color);
        color: var(--text-light);
        resize: vertical;
        min-height: 120px;
    }

        .comment-form textarea:focus {
            background: rgba(255, 255, 255, 0.1);
            border-color: var(--primary-color);
            color: var(--text-light);
            box-shadow: 0 0 0 0.25rem rgba(111, 66, 193, 0.25);
        }

        .comment-form textarea::placeholder {
            color: var(--text-muted);
        }

.comment-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.comment-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

    .comment-item:last-child {
        border-bottom: none;
    }

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.commenter-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.commenter-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.commenter-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.commenter-name {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.95rem;
}

.comment-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.comment-content {
    margin-left: 52px;
    color: rgba(248, 249, 250, 0.9);
    line-height: 1.6;
    font-size: 0.95rem;
}

.no-comments {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}

    .no-comments i {
        opacity: 0.5;
    }

.not-found {
    padding: 3rem;
    text-align: center;
}

    .not-found h2 {
        color: var(--text-light);
        margin-bottom: 1rem;
    }

    .not-found p {
        color: var(--text-muted);
        margin-bottom: 2rem;
    }

.loading-container {
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .post-title {
        font-size: 2rem;
    }

    .post-meta {
        flex-direction: column;
        gap: 10px;
    }

    .post-article {
        padding: 2rem 1.5rem;
    }

    .article-content {
        font-size: 1rem;
    }

    .engagement-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .post-stats {
        flex-direction: column;
        gap: 10px;
    }

    .comments-wrapper {
        padding: 1.5rem;
    }

    .comment-content {
        margin-left: 0;
        margin-top: 1rem;
    }

    .commenter-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 576px)
{
        .post-title

    {
        font-size: 1.75rem;
    }

    .blog-post-hero {
        padding: 40px 0;
    }

    .post-article {
        padding: 1.5rem 1rem;
    }

    .article-content h1 {
        font-size: 1.8rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .article-content h3 {
        font-size: 1.3rem;
    }

    .comment-form {
        padding: 1rem;
    }

    .comment-form-actions {
        flex-direction: column;
    }

        .comment-form-actions .btn {
            width: 100%;
        }
}