@import url('https://fonts.googleapis.com/css2?family=Creepster&family=Nosifer&family=Inter:wght@400;500;600;700&display=swap');

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

:root {
    --bg-primary: #2d1b3d;
    --bg-secondary: #1a0f24;
    --bg-card: #3d2a4d;
    --purple-accent: #8b5cf6;
    --purple-light: #a78bfa;
    --red-accent: #ef4444;
    --text-primary: #ffffff;
    --text-secondary: #c4b5d0;
    --text-muted: #9a8aad;
    --border: rgba(139, 92, 246, 0.2);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.7;
}

/* ===== FOG ===== */
.blog-fog {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 160px;
    background: linear-gradient(to top, rgba(26, 15, 36, 0.85) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* ===== HEADER ===== */
.blog-header {
    background: linear-gradient(135deg, #1a0a2e 0%, #2d1b3d 100%);
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 100;
}

.blog-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog-logo {
    font-family: 'Creepster', cursive;
    font-size: 1.8rem;
    color: #a78bfa;
    text-decoration: none;
    text-shadow: 0 0 20px rgba(167, 139, 250, 0.4);
    letter-spacing: 0.02em;
}

.blog-logo span {
    color: #ef4444;
}

.blog-nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-nav-link,
.blog-nav-active {
    padding: 7px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

.blog-nav-link:hover {
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.15);
}

.blog-nav-active {
    color: var(--purple-light);
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.blog-nav-signup {
    padding: 7px 18px;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #fff;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(139, 92, 246, 0.5);
}

.blog-nav-signup:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

/* ===== BLOG HERO ===== */
.blog-hero {
    text-align: center;
    padding: 72px 24px 56px;
    background: radial-gradient(ellipse at center top, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    border-bottom: 1px solid var(--border);
}

.blog-hero-title {
    font-family: 'Nosifer', cursive;
    font-size: clamp(2rem, 5vw, 3rem);
    color: #fff;
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
    margin-bottom: 16px;
    line-height: 1.2;
}

.blog-hero-title span {
    color: var(--purple-light);
}

.blog-hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== BLOG MAIN / POST GRID ===== */
.blog-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 24px 80px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}

/* ===== POST CARD ===== */
.post-card {
    background: linear-gradient(145deg, #1f1030 0%, #2d1b3d 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 16px 48px rgba(139, 92, 246, 0.2);
}

.post-card-image-link {
    display: block;
    text-decoration: none;
}

.post-card-image {
    height: 210px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 14px;
}

.post-card-category {
    display: inline-block;
    background: rgba(139, 92, 246, 0.85);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.post-card-body {
    padding: 22px 22px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 10px;
    letter-spacing: 0.03em;
}

.post-card-title {
    font-family: 'Creepster', cursive;
    font-size: 1.35rem;
    line-height: 1.3;
    margin-bottom: 12px;
    flex: 1;
}

.post-card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

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

.post-card-excerpt {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 20px;
    flex: 1;
}

.post-card-btn {
    display: inline-block;
    padding: 9px 22px;
    background: transparent;
    border: 1px solid rgba(139, 92, 246, 0.5);
    color: var(--purple-light);
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.post-card-btn:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--purple-light);
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.25);
}

/* ===== BLOG POST PAGE ===== */
.post-hero {
    height: 420px;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 5, 20, 0.95) 0%, rgba(10, 5, 20, 0.5) 50%, rgba(10, 5, 20, 0.2) 100%);
    display: flex;
    align-items: flex-end;
}

.post-hero-content {
    max-width: 820px;
    margin: 0 auto;
    padding: 40px 24px;
    width: 100%;
}

.post-back-link {
    display: inline-block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    margin-bottom: 16px;
    transition: color 0.2s;
}

.post-back-link:hover {
    color: var(--purple-light);
}

.post-hero-category {
    display: inline-block;
    background: rgba(139, 92, 246, 0.8);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.post-hero-title {
    font-family: 'Creepster', cursive;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
    margin-bottom: 12px;
}

.post-hero-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== POST ARTICLE BODY ===== */
.post-main {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.post-article {
    max-width: 820px;
    margin: 0 auto;
    padding: 56px 24px 80px;
}

.post-content {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.85;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content h2 {
    font-family: 'Creepster', cursive;
    font-size: 1.6rem;
    color: var(--text-primary);
    margin: 40px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.post-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--purple-light);
    margin: 28px 0 10px;
}

.post-content ul,
.post-content ol {
    margin: 0 0 20px 22px;
}

.post-content li {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.post-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ===== CTA BLOCK ===== */
.post-cta {
    margin: 48px 0 40px;
}

.post-cta-inner {
    background: linear-gradient(135deg, #1a0a2e 0%, #2d1b3d 100%);
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 14px;
    padding: 36px 32px;
    text-align: center;
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.08);
}

.post-cta-skull {
    font-size: 2.4rem;
    display: block;
    margin-bottom: 14px;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.4));
}

.post-cta-inner h3 {
    font-family: 'Creepster', cursive;
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 10px;
}

.post-cta-inner p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 480px;
    margin: 0 auto 22px;
    line-height: 1.7;
}

.post-cta-btn {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(139, 92, 246, 0.5);
}

.post-cta-btn:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

/* ===== POST NAV ===== */
.post-nav {
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.post-nav-back {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.post-nav-back:hover {
    color: var(--purple-light);
}

/* ===== FOOTER ===== */
.blog-footer {
    background: #0f0818;
    border-top: 1px solid rgba(139, 92, 246, 0.15);
    text-align: center;
    padding: 32px 24px;
    color: var(--text-muted);
    font-size: 0.85rem;
    position: relative;
    z-index: 2;
}

.blog-footer a {
    color: var(--purple-light);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-footer a:hover {
    color: #fff;
}

.blog-footer-links {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .blog-nav {
        padding: 12px 16px;
    }

    .blog-logo {
        font-size: 1.5rem;
    }

    .blog-nav-link {
        display: none;
    }

    .blog-hero {
        padding: 48px 16px 40px;
    }

    .blog-main {
        padding: 36px 16px 60px;
    }

    .post-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .post-hero {
        height: 320px;
    }

    .post-hero-content {
        padding: 24px 16px;
    }

    .post-article {
        padding: 36px 16px 60px;
    }

    .post-cta-inner {
        padding: 28px 20px;
    }
}
