/* Blog Page Styles */

.blog-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 10px 24px;
    background: var(--dark-surface);
    color: #fff;
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background: var(--dark-surface);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(255, 49, 49, 0.3);
}

.blog-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, #c41e3a 100%);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
}

.blog-card-content {
    padding: 24px;
}

.blog-card-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #aaa;
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-card-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.blog-card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
    line-height: 1.4;
}

.blog-card-excerpt {
    font-size: 15px;
    color: #bbb;
    line-height: 1.6;
    margin-bottom: 16px;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-card-author {
    font-size: 14px;
    color: #aaa;
}

.blog-card-read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease;
}

.blog-card:hover .blog-card-read-more {
    gap: 10px;
}

.loading-spinner {
    text-align: center;
    padding: 60px 20px;
    color: #aaa;
}

.loading-spinner i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.loading-spinner p {
    font-size: 16px;
}

.no-posts {
    text-align: center;
    padding: 80px 20px;
    color: #aaa;
}

.no-posts i {
    font-size: 64px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.no-posts h3 {
    font-size: 28px;
    margin-bottom: 12px;
    color: #fff;
}

/* Blog Post Page Styles */

.blog-post-container {
    background: var(--dark-bg);
    padding: 60px 0;
    min-height: 100vh;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 40px;
    transition: gap 0.3s ease;
}

.back-link:hover {
    gap: 12px;
}

.post-loading,
.post-error {
    text-align: center;
    padding: 80px 20px;
}

.post-loading i,
.post-error i {
    font-size: 64px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.post-loading p,
.post-error h3 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 12px;
}

.post-error p {
    color: #aaa;
    margin-bottom: 24px;
}

.post-content {
    max-width: 900px;
    margin: 0 auto;
}

.post-header {
    margin-bottom: 48px;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    font-size: 14px;
}

.post-category {
    padding: 6px 16px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
}

.post-date,
.post-author {
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 24px;
}

.post-featured-image {
    width: 100%;
    max-height: 500px;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 32px;
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-body {
    font-size: 18px;
    line-height: 1.8;
    color: #ddd;
}

.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4 {
    color: #fff;
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 700;
}

.post-body h1 {
    font-size: 36px;
}

.post-body h2 {
    font-size: 30px;
}

.post-body h3 {
    font-size: 24px;
}

.post-body p {
    margin-bottom: 20px;
}

.post-body ul,
.post-body ol {
    margin: 20px 0;
    padding-left: 40px;
}

.post-body li {
    margin-bottom: 12px;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
}

.post-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 24px;
    margin: 24px 0;
    font-style: italic;
    color: #aaa;
}

.post-body code {
    background: var(--dark-surface);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
}

.post-body pre {
    background: var(--dark-surface);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0;
}

.post-body pre code {
    background: none;
    padding: 0;
}

.post-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.post-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.post-tag {
    padding: 6px 16px;
    background: var(--dark-surface);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.post-share h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 16px;
}

.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 10px 20px;
    background: var(--dark-surface);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Responsive */

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .post-title {
        font-size: 32px;
    }

    .post-body {
        font-size: 16px;
    }

    .post-body h1 {
        font-size: 28px;
    }

    .post-body h2 {
        font-size: 24px;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
        justify-content: center;
    }
}
