/* Vic's Changelog - Cosmic Edition */

:root {
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --radius: 8px;
}

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

/* GALACTIC BACKGROUND */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    
    /* Deep space gradient background */
    background: linear-gradient(135deg, 
        #0a0e27 0%,
        #16213e 25%,
        #1a1a2e 50%,
        #0f3460 75%,
        #0a0e27 100%
    );
    background-size: 400% 400%;
    animation: galaxyShift 30s ease infinite;
}

@keyframes galaxyShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Nebula glow effect at bottom */
body::before {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50vh;
    background: radial-gradient(ellipse at bottom, 
        rgba(138, 43, 226, 0.3) 0%,
        rgba(75, 0, 130, 0.2) 30%,
        transparent 70%
    );
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

/* Star field with bloom effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        /* Large bright stars with bloom */
        radial-gradient(circle, white 1.5px, transparent 1.5px),
        radial-gradient(circle, white 1.5px, transparent 1.5px),
        radial-gradient(circle, white 1.5px, transparent 1.5px),
        /* Medium stars */
        radial-gradient(circle, rgba(255,255,255,0.9) 1px, transparent 1px),
        radial-gradient(circle, rgba(255,255,255,0.9) 1px, transparent 1px),
        radial-gradient(circle, rgba(255,255,255,0.9) 1px, transparent 1px),
        radial-gradient(circle, rgba(255,255,255,0.9) 1px, transparent 1px),
        /* Small stars */
        radial-gradient(circle, rgba(255,255,255,0.6) 0.8px, transparent 0.8px),
        radial-gradient(circle, rgba(255,255,255,0.6) 0.8px, transparent 0.8px),
        radial-gradient(circle, rgba(255,255,255,0.6) 0.8px, transparent 0.8px),
        radial-gradient(circle, rgba(255,255,255,0.6) 0.8px, transparent 0.8px),
        radial-gradient(circle, rgba(255,255,255,0.6) 0.8px, transparent 0.8px);
    background-size: 
        /* Large stars - widely spaced */
        300px 300px,
        280px 280px,
        320px 320px,
        /* Medium stars - medium spacing */
        150px 150px,
        170px 170px,
        160px 160px,
        180px 180px,
        /* Small stars - closer together */
        80px 80px,
        90px 90px,
        100px 100px,
        85px 85px,
        95px 95px;
    background-position: 
        /* Offset each layer for natural distribution */
        10% 20%,
        80% 70%,
        50% 40%,
        30% 60%,
        70% 30%,
        20% 80%,
        90% 15%,
        15% 50%,
        60% 85%,
        40% 25%,
        75% 55%,
        25% 90%;
    animation: twinkle 4s ease-in-out infinite alternate;
    z-index: 0;
    pointer-events: none;
    opacity: 0.9;
    /* BLOOM EFFECT - creates soft glow around stars */
    filter: blur(0.5px) drop-shadow(0 0 2px rgba(255, 255, 255, 0.8)) 
            drop-shadow(0 0 4px rgba(255, 255, 255, 0.6))
            drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
}

@keyframes twinkle {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Content positioning - must be above stars */
.site-header,
.site-main,
.site-footer {
    position: relative;
    z-index: 10;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Header */
.site-header {
    padding: var(--spacing-lg) 0;
    margin-bottom: var(--spacing-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
    /* SHARP TEXT DROP SHADOW - minimal blur for crisp definition */
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.8),
                 0 4px 4px rgba(0, 0, 0, 0.4);
}

.site-title a:hover {
    color: #a78bfa;
}

.site-nav {
    display: flex;
    gap: var(--spacing-md);
}

.site-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.site-nav a:hover {
    color: #fff;
}

/* Post list */
.post-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.post-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
}

.post-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.post-meta {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
    margin-bottom: var(--spacing-sm);
    flex-wrap: wrap;
}

.post-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-feature { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.badge-fix { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.badge-learning { background: rgba(139, 92, 246, 0.2); color: #8b5cf6; }

.post-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.post-title {
    font-size: 1.5rem;
    margin: var(--spacing-sm) 0;
}

.post-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
    /* SHARP TEXT DROP SHADOW - minimal blur for crisp definition */
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.8),
                 0 4px 4px rgba(0, 0, 0, 0.4);
}

.post-title a:hover {
    color: #a78bfa;
}

.post-excerpt {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: var(--spacing-sm) 0;
}

.read-more {
    display: inline-block;
    color: #a78bfa;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.read-more:hover {
    color: #c4b5fd;
}

/* Footer */
.site-footer {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.site-footer a {
    color: #a78bfa;
    text-decoration: none;
}

.site-footer a:hover {
    color: #c4b5fd;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .post-title {
        font-size: 1.25rem;
    }
}
