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

:root {
    --primary: #00f0ff;
    --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;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    margin: 0;
    line-height: 1.8;
    /* Improved readability */
    padding-top: 120px;
    /* Increased to prevent header overlap */
    /* Offset for fixed header */
    -webkit-font-smoothing: antialiased;
}

/* --- HERO SECTION --- */
.blog-hero {
    position: relative;
    padding: 100px 20px 120px;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 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%, #00f0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 40px rgba(0, 240, 255, 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: 60px;
    margin-top: -60px;
    /* 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 */
.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(0, 240, 255, 0.3);
    transition: all 0.2s ease;
}

.blog-content a:hover {
    border-bottom-color: var(--primary);
    background: rgba(0, 240, 255, 0.1);
}

.blog-content blockquote {
    border-left: 4px solid var(--primary);
    margin: 40px 0;
    padding: 24px 32px;
    background: linear-gradient(to right, rgba(0, 240, 255, 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(0, 240, 255, 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(0, 240, 255, 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;
}

/* --- NAVBAR STYLES (Moved from Inline) --- */
header {
    backdrop-filter: blur(20px);
    background: rgba(2, 6, 23, 0.9);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 50px;
    width: auto;
    vertical-align: middle;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links li a.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-links .btn-primary {
    padding: 10px 20px;
}


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

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

    /* --- FORCE HORIZONTAL LAYOUT (Override style.css hamburger) --- */
    .header-inner {
        flex-direction: row !important;
        height: 60px !important;
        padding: 0 15px;
        align-items: center !important;
    }

    .nav-links {
        display: flex !important;
        /* Override display: none from style.css */
        flex-direction: row !important;
        /* Override flex-direction: column */
        position: static !important;
        /* Override absolute positioning */
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        gap: 15px !important;
        width: auto !important;
    }

    .logo img {
        height: 35px !important;
    }

    .nav-links li a {
        font-size: 0.8rem;
    }

    .btn-primary {
        padding: 6px 12px !important;
        font-size: 0.75rem !important;
    }

    body {
        padding-top: 100px;
    }
}