/* Blog and Blog Post - Futuristic UI refresh */

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

.filter-btn {
    padding: 10px 24px;
    background: rgba(21, 31, 53, 0.95);
    color: var(--text-primary);
    border: 1px solid rgba(67, 199, 255, 0.26);
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    border-color: rgba(141, 226, 255, 0.6);
    color: #03101e;
    transform: translateY(-2px);
    box-shadow: 0 0 22px rgba(67, 199, 255, 0.3);
}

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

.blog-card {
    background: linear-gradient(155deg, rgba(22, 33, 58, 0.95) 0%, rgba(15, 22, 41, 0.95) 78%);
    border-radius: 1.2rem;
    border: 1px solid rgba(67, 199, 255, 0.18);
    overflow: hidden;
    transition: all 0.32s ease;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(1, 7, 20, 0.35);
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: rgba(141, 226, 255, 0.5);
    box-shadow: 0 20px 44px rgba(1, 7, 20, 0.55), 0 0 0 1px rgba(67, 199, 255, 0.2) inset;
}

.blog-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #0f203f 0%, #18568f 44%, #6f53cb 100%);
}

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

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

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

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

.blog-card-meta {
    display: flex;
    gap: 14px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

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

.blog-card-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(67, 199, 255, 0.14);
    border: 1px solid rgba(67, 199, 255, 0.35);
    color: var(--primary-light);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.blog-card-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.35;
}

.blog-card-excerpt {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

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

.blog-card-author {
    font-size: 14px;
    color: var(--text-muted);
}

.blog-card-read-more {
    color: var(--primary-light);
    font-weight: 700;
    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,
.no-posts,
.post-loading,
.post-error {
    text-align: center;
    padding: 70px 20px;
    color: var(--text-muted);
}

.loading-spinner i,
.no-posts i,
.post-loading i,
.post-error i {
    font-size: 58px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.no-posts h3,
.post-loading p,
.post-error h3 {
    color: var(--text-primary);
}

.blog-post-container {
    background: linear-gradient(180deg, rgba(7, 11, 20, 0.98) 0%, rgba(10, 17, 30, 0.98) 100%);
    padding: 110px 0 60px;
    min-height: 100vh;
}

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

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

.post-content {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(155deg, rgba(22, 33, 58, 0.95) 0%, rgba(15, 22, 41, 0.95) 78%);
    border: 1px solid rgba(67, 199, 255, 0.2);
    border-radius: 1.4rem;
    padding: clamp(1.2rem, 3vw, 2.4rem);
    box-shadow: 0 16px 38px rgba(1, 7, 20, 0.48);
}

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

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

.post-category {
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(67, 199, 255, 0.14);
    border: 1px solid rgba(67, 199, 255, 0.35);
    color: var(--primary-light);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
}

.post-date,
.post-author {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.post-featured-image {
    width: 100%;
    max-height: 500px;
    border-radius: 1rem;
    overflow: hidden;
    margin-top: 30px;
    border: 1px solid rgba(67, 199, 255, 0.2);
}

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

.post-body {
    font-size: 18px;
    line-height: 1.85;
    color: var(--text-secondary);
}

.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4 {
    color: var(--text-primary);
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 700;
}

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

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

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

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

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

.post-body code {
    background: rgba(12, 21, 38, 0.95);
    border: 1px solid rgba(67, 199, 255, 0.22);
    padding: 2px 8px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 15px;
    color: #d4ebff;
}

.post-body pre {
    background: rgba(12, 21, 38, 0.95);
    border: 1px solid rgba(67, 199, 255, 0.22);
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 24px 0;
}

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

.post-footer {
    margin-top: 52px;
    padding-top: 34px;
    border-top: 1px solid rgba(141, 226, 255, 0.18);
}

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

.post-tag {
    padding: 6px 14px;
    background: rgba(67, 199, 255, 0.1);
    border: 1px solid rgba(67, 199, 255, 0.26);
    color: var(--primary-light);
    border-radius: 999px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.post-share h4 {
    color: var(--text-primary);
    font-size: 18px;
    margin-bottom: 16px;
}

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

.share-btn {
    padding: 10px 18px;
    background: rgba(21, 31, 53, 0.95);
    border: 1px solid rgba(67, 199, 255, 0.24);
    color: var(--text-primary);
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.28s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

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

    .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;
    }
}
