/* assets/css/blog.css */
/* Professional Blog Theme - Glassmorphism & Readability Focus */

:root {
    --primary: #6366f1;
    --secondary: #b84dff;
    --bg-dark: #020617;
    /* Slate-950 */
    --bg-card: rgba(30, 41, 59, 0.4);
    --border: rgba(255, 255, 255, 0.1);
    --text-main: #f8fafc;
    /* Slate-50 */
    --text-muted: #94a3b8;
    /* Slate-400 */
    --font-heading: 'Poppins', system-ui, sans-serif;
    --font-body: 'Segoe UI', system-ui, sans-serif;
}





/* --- HERO SECTION --- */
.blog-hero {
    position: relative;
    padding: 20px 20px 40px;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15), transparent 60%);
    overflow: hidden;
}

.blog-hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 0 25px 0;
    line-height: 1.2;
    background: linear-gradient(135deg, #fff 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 40px rgba(99, 102, 241, 0.2);
}

.blog-hero-meta {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    display: inline-flex;
    gap: 25px;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 30px;
    border-radius: 100px;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

/* --- CONTAINER --- */
.container {
    max-width: 900px;
    /* Optimal reading width */
    margin: 0 auto;
    padding: 0 20px;
}

/* --- CONTENT BOX --- */
.blog-content {
    background: rgba(15, 23, 42, 0.6);
    /* Semi-transparent Slate-900 */
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    margin-top: -30px;
    /* Overlap hero */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px);
    font-size: 1.125rem;
    /* 18px */
    color: #e2e8f0;
}

/* Typography Improvements */
.post-content h1:first-child {
    display: none;
}

.blog-content h2,
.blog-content h3 {
    font-family: var(--font-heading);
    color: #fff;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.blog-content h2 {
    font-size: 2rem;
}

.blog-content h3 {
    font-size: 1.5rem;
    color: var(--primary);
}

.blog-content p {
    margin-bottom: 1.8rem;
}

/* Media */
.blog-content img,
.blog-content video {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 40px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
}

/* Interactions */
.blog-content a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(99, 102, 241, 0.3);
    transition: all 0.2s ease;
}

.blog-content a:hover {
    border-bottom-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.blog-content blockquote {
    border-left: 4px solid var(--primary);
    margin: 40px 0;
    padding: 24px 32px;
    background: linear-gradient(to right, rgba(99, 102, 241, 0.05), transparent);
    font-style: italic;
    font-size: 1.2rem;
    color: #fff;
    border-radius: 0 12px 12px 0;
}

/* List Styles */
.blog-content ul {
    list-style: none;
    padding-left: 0;
}

.blog-content ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
}

.blog-content ul li::before {
    content: '•';
    color: var(--primary);
    font-weight: bold;
    font-size: 1.5em;
    position: absolute;
    left: 8px;
    top: -5px;
}

/* --- BUTTONS --- */
.blog-btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.blog-btn:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

/* --- POST GRID (INDEX) --- */
.blog-index-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    padding: 40px 0;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(30, 41, 59, 0.6);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.blog-card small {
    display: block;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.blog-card h2 {
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.blog-card h2 a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s;
}

.blog-card:hover h2 a {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2.2rem;
    }

    .blog-content {
        padding: 30px 20px;
    }
}