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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #0f172a;
    color: #e2e8f0;
    line-height: 1.6;
}

/* Navigation */
nav {
    background-color: #1e293b;
    padding: 1rem 2rem;
    display: flex;
    gap: 2rem;
    border-bottom: 1px solid #334155;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav a {
    color: #93c5fd;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #60a5fa;
}

nav a:active {
    color: #3b82f6;
}

/* Main Content */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #f1f5f9;
}

/* Posts Container */
.posts-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Post Link Styling */
.post-link {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.post-link:hover {
    border-color: #475569;
    background-color: #0f172a;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.post-link a {
    color: #60a5fa;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.post-link a:hover {
    color: #93c5fd;
}

.post-link p {
    color: #cbd5e1;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }

    main {
        padding: 1rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    .posts-container {
        grid-template-columns: 1fr;
    }
}
