* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-main: #1a1a1a;
    --bg-card: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --border: rgba(255, 255, 255, 0.08);
    --grid-color: rgba(255, 255, 255, 0.05);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-main);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.navbar {
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 20px;
    z-index: 1000;
    border: 1px solid var(--border);
    border-radius: 50px;
    margin: 20px;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.8em;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.3s;
}

.btn-home {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.btn-home:hover {
    background: var(--text-primary);
    color: var(--bg-main);
}

.page-header {
    text-align: center;
    padding: 80px 20px 60px;
}

.page-header h1 {
    font-size: 4em;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-header p {
    font-size: 1.3em;
    color: var(--text-secondary);
}

.filters-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 40px;
}

.search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1em;
}

.search-input:focus {
    outline: none;
    border-color: var(--text-primary);
}

.search-btn {
    padding: 12px 32px;
    background: var(--text-primary);
    color: var(--bg-main);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.search-btn:hover {
    transform: translateY(-2px);
}

.filter-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tag {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.9em;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
}

.filter-tag:hover,
.filter-tag.active {
    background: var(--text-primary);
    color: var(--bg-main);
}

.clear-filters {
    padding: 8px 16px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 20px;
    font-size: 0.9em;
    text-decoration: none;
    transition: all 0.3s;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.article-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.article-content {
    padding: 24px;
}

.article-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 0.75em;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.article-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.article-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.article-excerpt {
    font-size: 0.95em;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85em;
    color: #718096;
}

.read-more {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 20px;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.read-more:hover {
    background: var(--text-primary);
    color: var(--bg-main);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 60px 0;
}

.pagination a,
.pagination span {
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s;
}

.pagination a:hover {
    background: var(--text-primary);
    color: var(--bg-main);
}

.pagination .current {
    background: var(--text-primary);
    color: var(--bg-main);
}

.empty-state {
    text-align: center;
    padding: 100px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.empty-state-icon {
    font-size: 4em;
    opacity: 0.3;
}

.empty-state h2 {
    font-size: 2em;
    color: var(--text-primary);
    margin: 20px 0 16px;
}

.empty-state p {
    font-size: 1.1em;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5em;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .navbar {
        border-radius: 20px;
    }
}