:root {
    --bg-deep: #0a0a12;
    --bg-primary: #12121c;
    --bg-secondary: #1a1a2e;
    --bg-card: rgba(26, 26, 46, 0.8);
    --bg-card-solid: #1a1a2e;
    --bg-card-hover: rgba(35, 35, 60, 0.9);
    --text-primary: #f0f0f5;
    --text-secondary: #8888a0;
    --text-muted: #5a5a70;
    --accent-primary: #7c3aed;
    --accent-secondary: #a855f7;
    --accent-tertiary: #c084fc;
    --accent-glow: rgba(124, 58, 237, 0.4);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

* { box-sizing: border-box; }

body {
    background: var(--bg-deep);
    min-height: 100vh;
    color: var(--text-primary);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    position: relative;
    overflow-x: hidden;
    margin: 0;
}

body::before {
    content: '';
    position: fixed;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(168, 85, 247, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(192, 132, 252, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.container { position: relative; z-index: 1; }

h1, h2, h3, h4, h5, h6 { color: var(--text-primary); }
a { color: var(--accent-tertiary); text-decoration: none; }
a:hover { color: var(--accent-secondary); }

/* ===== NAVBAR ===== */
.blog-navbar {
    background: rgba(18, 18, 28, 0.9) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.blog-navbar .navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary) !important;
}
.blog-navbar .navbar-brand i { color: var(--accent-secondary); }
.blog-navbar .nav-link { color: var(--text-secondary) !important; font-weight: 500; }
.blog-navbar .nav-link:hover { color: var(--text-primary) !important; }

/* ===== CARDS ===== */
.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.blog-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.blog-card-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}
.blog-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    color: var(--text-primary);
}
.blog-card-title a { color: inherit; }
.blog-card-title a:hover { color: var(--accent-tertiary); }
.blog-card-summary {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
}

/* ===== SIDEBAR ===== */
.blog-sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 1rem;
    padding: 1.25rem;
    backdrop-filter: blur(10px);
    margin-bottom: 1.5rem;
}
.blog-sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
}
.blog-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.blog-sidebar-list li { margin-bottom: 0.5rem; }
.blog-sidebar-list a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: color 0.2s;
    display: flex;
    justify-content: space-between;
}
.blog-sidebar-list a:hover { color: var(--text-primary); }
.blog-sidebar-list .count {
    background: rgba(124, 58, 237, 0.15);
    color: var(--accent-tertiary);
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

/* ===== TAG CLOUD ===== */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-cloud a {
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    color: var(--accent-tertiary);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    transition: all 0.2s;
}
.tag-cloud a:hover {
    background: rgba(124, 58, 237, 0.2);
    border-color: rgba(124, 58, 237, 0.4);
    color: white;
}

/* ===== PAGINATION ===== */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}
.blog-pagination a, .blog-pagination span {
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s;
}
.blog-pagination a {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}
.blog-pagination a:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}
.blog-pagination .active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
}

/* ===== ARTICLE ===== */
.blog-article { max-width: 720px; margin: 0 auto; }
.blog-hero-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 1rem;
    margin-bottom: 2rem;
}
.blog-article-header { margin-bottom: 2rem; }
.blog-article-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}
.blog-article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    flex-wrap: wrap;
}
.blog-article-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-secondary);
}
.blog-article-content h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}
.blog-article-content h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-primary);
}
.blog-article-content p { margin-bottom: 1.25rem; }
.blog-article-content img {
    max-width: 100%;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
}
.blog-article-content blockquote {
    border-left: 3px solid var(--accent-primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: rgba(124, 58, 237, 0.05);
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: var(--text-secondary);
}
.blog-article-content pre {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
}
.blog-article-content code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
}
.blog-article-content a {
    color: var(--accent-tertiary);
    text-decoration: underline;
}

/* ===== SHARE BUTTONS ===== */
.share-buttons { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    color: var(--text-secondary);
    transition: all 0.2s;
    cursor: pointer;
}
.share-btn:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
    transform: translateY(-1px);
}

/* ===== BREADCRUMB ===== */
.blog-breadcrumb {
    display: flex;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.blog-breadcrumb a { color: var(--text-secondary); }
.blog-breadcrumb a:hover { color: var(--text-primary); }
.blog-breadcrumb .separator { color: var(--text-muted); }

/* ===== RELATED POSTS ===== */
.related-posts { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border-subtle); }
.related-posts-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 1.5rem; }

/* ===== FOOTER ===== */
.blog-footer {
    background: rgba(18, 18, 28, 0.9);
    border-top: 1px solid var(--border-subtle);
    padding: 2rem 0;
    margin-top: 4rem;
}
.blog-footer-text { color: var(--text-muted); font-size: 0.875rem; }

/* ===== SEARCH BAR ===== */
.blog-search {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.blog-search input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: inherit;
    width: 100%;
}
.blog-search input::placeholder { color: var(--text-muted); }
.blog-search i { color: var(--text-muted); }

/* ===== RESPONSIVE ===== */
@@media (max-width: 768px) {
    .blog-article-title { font-size: 1.5rem; }
    .blog-card-img { height: 160px; }
}
