:root {
    --purple-dark: #1a0a2e;
    --purple-main: #7c3aed;
    --purple-light: #a78bfa;
    --purple-glow: #8b5cf6;
    --black: #0a0a0a;
    --white: #ffffff;
    --gray: #94a3b8;
    --gray-dark: #1e1e2e;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(180deg, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.8) 100%);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--purple-light), var(--purple-main));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
}

/* Blog Header */
.blog-header {
    text-align: center;
    padding: 10rem 5% 3rem;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--purple-light);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.blog-header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--purple-light), var(--purple-main));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-header p {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Blog Feed */
.blog-feed {
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem 5% 4rem;
    flex: 1;
}

/* Post Card */
.post-card {
    background: var(--gray-dark);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.post-card:hover {
    border-color: rgba(124, 58, 237, 0.4);
    transform: translateY(-2px);
}

.post-card.active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s ease;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.post-meta time {
    color: var(--gray);
    font-size: 0.85rem;
}

.post-tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--purple-light);
    background: rgba(124, 58, 237, 0.15);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
}

.post-card h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.post-card h2 a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card h2 a:hover {
    color: var(--purple-light);
}

.post-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.read-more {
    color: var(--purple-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--white);
}

/* Post Page */
.post-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 8rem 5% 4rem;
    flex: 1;
}

.post-content .back-link {
    display: inline-block;
    color: var(--purple-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.post-content .back-link:hover {
    color: var(--white);
}

.post-content h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.post-content .post-meta {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(124, 58, 237, 0.15);
}

.post-content .body h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    color: var(--white);
}

.post-content .body h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
    color: var(--purple-light);
}

.post-content .body p {
    color: var(--gray);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.post-content .body ul,
.post-content .body ol {
    color: var(--gray);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.post-content .body li {
    margin-bottom: 0.5rem;
}

.post-content .body blockquote {
    border-left: 3px solid var(--purple-main);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: rgba(124, 58, 237, 0.05);
    border-radius: 0 8px 8px 0;
}

.post-content .body blockquote p {
    color: var(--purple-light);
    font-style: italic;
    margin-bottom: 0;
}

.post-content .body strong {
    color: var(--white);
}

.post-content .body a {
    color: var(--purple-light);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.post-content .body a:hover {
    color: var(--white);
}

.post-content .body img {
    width: 60%;
    max-width: 500px;
    border-radius: 12px;
    margin: 1.5rem 0;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.post-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    margin: 1rem 0;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

/* Footer */
footer {
    text-align: center;
    padding: 4rem 5%;
    border-top: 1px solid rgba(124, 58, 237, 0.1);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--purple-light), var(--purple-main));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

.footer-tagline {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.copyright {
    color: rgba(148, 163, 184, 0.5);
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        padding: 1rem 5%;
    }

    .nav-links {
        gap: 1.5rem;
    }

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

    .blog-header {
        padding-top: 7rem;
    }

    .post-card {
        padding: 1.5rem;
    }

    .post-content {
        padding-top: 6rem;
    }
}
