/* 
 * blog_vibrant.css
 * Dedicated styles for the Vibrant Blog overhaul
 */

:root {
    --blog-card-bg: rgba(255, 255, 255, 0.04);
    --blog-card-border: rgba(255, 255, 255, 0.07);
    --blog-text-serif: 'Source Serif 4', Georgia, serif;
}

/* --- Hero Overrides --- */
.hero.blog-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #0F172A, #1E1B4B, #2e1065, #0F172A);
    background-size: 400% 400%;
    padding-top: 80px; /* Spacer for navbar */
}

/* --- Category Navbar --- */
.blog-categories-scroller {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 1rem 0;
    margin-bottom: 2.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.blog-categories-scroller::-webkit-scrollbar {
    display: none;
}

.category-pill {
    text-decoration: none;
    white-space: nowrap;
    padding: 0.625rem 1.25rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.category-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    transform: translateY(-2px);
}

.category-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px var(--glow-p);
}

/* --- Post Cards --- */
.post-card-vibrant {
    background: var(--blog-card-bg);
    border: 1px solid var(--blog-card-border);
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.post-card-vibrant:hover {
    transform: translateY(-10px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(139, 92, 246, 0.1);
}

.post-card-vibrant .post-image-wrap {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.post-card-vibrant .post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.post-card-vibrant:hover .post-image {
    transform: scale(1.08);
}

.post-card-vibrant .post-content {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-vibrant .post-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    color: white;
    padding: 0.35rem 0.85rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.post-card-vibrant .post-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.875rem;
    color: var(--text);
    text-decoration: none;
}

.post-card-vibrant .post-excerpt {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--muted);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-vibrant .post-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.post-card-vibrant .author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.post-card-vibrant .author-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
}

.post-card-vibrant .post-meta {
    font-size: 0.75rem;
    color: var(--muted);
}

/* --- Single Post View (Reading) --- */
.reading-container {
    max-width: 840px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.reading-hero {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    margin: 2rem 0 4rem;
    aspect-ratio: 16/9;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.reading-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reading-content {
    font-family: var(--blog-text-serif);
    font-size: 1.25rem;
    line-height: 1.85;
    color: #e2e8f0;
}

.reading-content h2, .reading-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    color: white;
    margin: 3rem 0 1.5rem;
}

.reading-content p {
    margin-bottom: 1.75rem;
}

.reading-content blockquote {
    margin: 3rem 0;
    padding: 2rem 2.5rem;
    background: rgba(139, 92, 246, 0.08);
    border-left: 4px solid var(--primary);
    border-radius: 0 16px 16px 0;
    font-style: italic;
    font-size: 1.5rem;
    color: #f1f5f9;
}

.reading-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 3rem 0;
}

/* --- Author Card --- */
.author-card-vibrant {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    margin: 5rem 0;
}

@media (max-width: 768px) {
    .author-card-vibrant {
        flex-direction: column;
        text-align: center;
    }
}
