﻿/* CSS Variables for consistent theming */
:root {
    --primary-color: #6f42c1;
    --secondary-color: #495057;
    --accent-color: #fd7e14;
    --text-light: #f8f9fa;
    --text-muted: #f8f9fa;
    --border-color: #495057;
    --surface-color: #343a40;
}

.image-placeholder {
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
}

    .image-placeholder i {
        opacity: 0.5;
    }

/* Blog-specific styles that integrate with your existing design */
.blog-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.blog-sidebar {
    position: sticky;
    color: rgba(255, 255, 255, 0.5);
    top: 20px;
}

.post-date,
.post-author,
.post-summary {
    color: rgba(255, 255, 255, 0.5);
}

.category-list {
    list-style: none;
    padding: 0;
}

    .category-list li a {
        display: block;
        padding: 8px 12px;
        color: var(--text-light);
        text-decoration: none;
        border-radius: 4px;
        transition: all 0.3s ease;
    }

        .category-list li a:hover,
        .category-list li a.active {
            background: var(--primary-color);
            color: white;
        }

/* Skeleton loading styles */
.category-skeleton,
.recent-post-skeleton {
    height: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    margin: 8px 0;
}

.blog-post-skeleton {
    padding: 0;
    overflow: hidden;
}

.skeleton-image {
    height: 200px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.skeleton-content {
    padding: 1.5rem;
}

.skeleton-meta,
.skeleton-title,
.skeleton-summary,
.skeleton-footer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    margin: 8px 0;
}

.skeleton-meta {
    height: 16px;
    width: 60%;
}

.skeleton-title {
    height: 24px;
    width: 80%;
}

.skeleton-summary {
    height: 16px;
    width: 100%;
}

.skeleton-footer {
    height: 20px;
    width: 70%;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.blog-post-card {
    overflow: hidden;
    transition: transform 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-5px);
}

.post-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

    .post-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-color);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
}

.post-content {
    padding: 1.5rem;
}

.post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.post-title a {
    color: var(--text-light);
    text-decoration: none;
}

    .post-title a:hover {
        color: var(--primary-color);
    }

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.post-stats span {
    margin-right: 15px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.post-tags {
    margin-top: 1rem;
}

.tag {
    display: inline-block;
    background: var(--surface-color);
    color: var(--text-light);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    text-decoration: none;
    margin-right: 5px;
}

    .tag:hover {
        background: var(--primary-color);
        color: white;
    }

.recent-post-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.recent-post-link {
    text-decoration: none;
    color: var(--text-light);
}

    .recent-post-link:hover {
        color: var(--primary-color);
    }