/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000000;
    min-height: 100vh;
    color: #ffffff;
    line-height: 1.6;
    position: relative;
}

/* Animated stars background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #00ccff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(0,200,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #ffffff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(150,50,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #0064ff, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 20s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes sparkle {
    from { transform: translateX(0); }
    to { transform: translateX(-200px); }
}

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

/* Header */
header {
    text-align: center;
    margin-bottom: 48px;
}

.back-link {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 24px;
    padding: 12px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 100, 255, 0.15) 0%, rgba(150, 50, 255, 0.1) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 200, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.back-link:hover {
    background: linear-gradient(135deg, rgba(0, 100, 255, 0.2) 0%, rgba(150, 50, 255, 0.15) 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 100, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

header h1 {
    font-size: 32px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(0, 200, 255, 0.4);
}

.subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

/* Blog Posts */
.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.post-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(120, 119, 198, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(120, 119, 198, 0.5);
}

.post-meta {
    margin-bottom: 12px;
}

.post-meta time {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 500;
}

.post-card h2 {
    margin-bottom: 12px;
}

.post-card h2 a {
    color: #ffffff;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.post-card h2 a:hover {
    color: rgba(120, 119, 198, 1);
    text-shadow: 0 0 15px rgba(120, 119, 198, 0.5);
}

.post-excerpt {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
    line-height: 1.5;
}

.read-more {
    color: rgba(120, 119, 198, 1);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    text-shadow: 0 0 10px rgba(120, 119, 198, 0.3);
}

.read-more:hover {
    text-decoration: underline;
    text-shadow: 0 0 15px rgba(120, 119, 198, 0.5);
}

/* Resources Grid */
.resources-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.resource-category h2 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(120, 119, 198, 0.3);
}

.resource-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.resource-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 20px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    display: block;
}

.resource-item:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(120, 119, 198, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(120, 119, 198, 0.5);
}

.resource-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.resource-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px 16px;
    }
    
    header h1 {
        font-size: 28px;
    }
    
    .subtitle {
        font-size: 16px;
    }
    
    .post-card {
        padding: 20px;
    }
    
    .resource-list {
        grid-template-columns: 1fr;
    }
}

/* Blog Post Content */
.post-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    max-width: 700px;
    margin: 0 auto;
}

.post-content article {
    line-height: 1.7;
}

.post-content h2 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    margin: 32px 0 16px 0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.post-content p {
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.post-content ul {
    margin: 16px 0 16px 24px;
    color: rgba(255, 255, 255, 0.9);
}

.post-content li {
    margin-bottom: 8px;
}

.post-content a {
    color: rgba(120, 119, 198, 1);
    text-decoration: none;
    text-shadow: 0 0 10px rgba(120, 119, 198, 0.3);
}

.post-content a:hover {
    text-decoration: underline;
    text-shadow: 0 0 15px rgba(120, 119, 198, 0.5);
}

.post-content em {
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .post-content {
        padding: 24px 20px;
    }
}
/* Poem Styling */
.poem-container {
    margin: 32px 0;
    text-align: left;
}

.poem {
    font-style: italic;
    line-height: 1.8;
    max-width: 100%;
    margin: 0;
    text-align: left;
}

.poem-stanza {
    margin-bottom: 24px;
}

.poem-stanza p {
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
}

.poem-note {
    margin-top: 40px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(0, 100, 255, 0.1) 0%, rgba(150, 50, 255, 0.05) 100%);
    border-left: 3px solid rgba(0, 200, 255, 0.5);
    border-radius: 8px;
    font-size: 14px;
}

.poem-note p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

@media (max-width: 768px) {
    .poem {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .poem-stanza p {
        font-size: 15px;
    }
}
/* Additional poem styling for "Of Lasts and Firsts" */
.poem-title {
    text-align: center;
    margin-bottom: 32px;
}

.poem-title h2 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.poem-byline {
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    font-size: 16px;
    margin: 0;
}

.poem-break {
    height: 32px;
    border-bottom: 1px solid rgba(0, 200, 255, 0.3);
    margin: 32px auto;
    width: 50%;
}

.poem p {
    margin-bottom: 16px;
    line-height: 1.7;
    text-align: left;
}

.poem p strong {
    color: rgba(0, 200, 255, 1);
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.5);
}