:root {
    --bg-color: #0d0221;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-primary: #00f2fe;
    --accent-secondary: #4facfe;
    --text-main: #e0e0e0;
    --text-dim: #a0a0a0;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.glass-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, #1a0b3b, transparent),
        radial-gradient(circle at bottom left, #0a1128, transparent);
    z-index: -1;
}

header {
    background: rgba(13, 2, 33, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-primary);
}

.container {
    max-width: 900px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.hero {
    text-align: center;
    margin-bottom: 5rem;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero p {
    color: var(--text-dim);
    font-size: 1.25rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.post-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 24px;
    transition: transform 0.3s, border-color 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    transition: opacity 0.3s;
}

.post-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
}

.post-card:hover::before {
    opacity: 1;
}

.category a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.category a:hover {
    color: white;
}

.post-card h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.post-card h2 a {
    color: white;
    text-decoration: none;
}

.post-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.post-card time {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* Post Content Styles */
.post-header {
    text-align: center;
    margin-bottom: 4rem;
}

.post-header h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.markdown-body {
    font-size: 1.1rem;
    color: var(--text-main);
}

.markdown-body h2 {
    margin: 3rem 0 1.5rem;
    font-family: var(--font-heading);
}

.markdown-body p {
    margin-bottom: 1.5rem;
}

.markdown-body ul {
    margin: 0 0 1.5rem 1.5rem;
}

.markdown-body pre {
    background: #1a1b26;
    padding: 2rem;
    border-radius: 12px;
    overflow-x: auto;
    border: 1px solid var(--glass-border);
    margin: 2rem 0;
}

footer {
    text-align: center;
    padding: 4rem 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-dim);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .post-header h1 {
        font-size: 2.2rem;
    }
}