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

body {
    background-color: #2d3748;
    color: #E0E0E0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid #4a5568;
    background-color: #2d3748;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
    justify-content: center;
}

/* Navigation items */
.nav-item {
    list-style: none;
}

.nav-link {
    color: #E0E0E0;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-link:hover {
    color: #c77dff;
    background-color: rgba(199, 125, 255, 0.1);
}

.nav-link.active {
    color: #c77dff;
    background-color: rgba(199, 125, 255, 0.15);
}

/* Main content */
main {
    flex: 1;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    text-align: left;          /* Force left alignment */
    align-items: flex-start;   /* Align content to left */
}

/* Intro section */
.intro-section {
    text-align: left;
    padding: 3rem 0;
}

.intro-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #c77dff;
    text-align: center; /* Keep big heading centered */
}

.intro-content h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: #c77dff;
    text-align: left;
}

.intro-content p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-align: left;
}

/* Links */
a {
    color: #E0E0E0;
    transition: color 0.3s ease;
}

a:hover {
    color: #c77dff;
}

/* Footer */
footer {
    padding: 2rem;
    border-top: 1px solid #4a5568;
    text-align: center;
}

.social-links h3 {
    margin-bottom: 1rem;
    color: #c77dff;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.socials a {
    color: #9d4edd;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #4a5568;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.socials a:hover {
    color: #c77dff;
    border-color: #9d4edd;
}

/* Blog and recommendation lists */
.content-list {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
    text-align: left;
}

.content-list li {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid #334155;
    border-radius: 12px;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.3s ease;
}

.content-list li:hover {
    transform: translateY(-6px);
    border-color: #a855f7;
    box-shadow: 0 6px 16px rgba(0,0,0,0.45);
    background: linear-gradient(145deg, #1e1b4b, #312e81);
}

.content-list h3 {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-align: left;
}

.content-list h3 a {
    color: #c77dff;
    text-decoration: none;
}

.content-list h3 a:hover {
    color: #e0aaff;
    text-decoration: underline;
}

.content-list .date {
    display: block;
    font-size: 0.85rem;
    color: #94a3b8;
    font-style: italic;
    margin-bottom: 0.75rem;
    text-align: left;
}

.content-list p {
    font-size: 1rem;
    color: #cbd5e1;
    line-height: 1.5;
    max-height: 4.5em; /* ~3 lines */
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

/* Article styling */
article header h1 {
    color: #c77dff;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

article .date {
    color: #94a3b8;
    margin-bottom: 2rem;
    font-style: italic;
    text-align: left;
}

.content h1, .content h2, .content h3 {
    color: #c77dff;
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-align: left;
}

.content h1 { font-size: 1.8rem; }
.content h2 { font-size: 1.5rem; }
.content h3 { font-size: 1.3rem; }

.content pre {
    background-color: #1a202c;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    border: 1px solid #4a5568;
}

.content code {
    background-color: #1a202c;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: inherit;
}

.content pre code {
    background: none;
    padding: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    main {
        padding: 1rem;
    }
    
    .intro-content h1 {
        font-size: 2rem;
    }
    
    .socials {
        gap: 1rem;
    }
}

/* Post List Styling */
.post-header {
    margin-bottom: 3rem;
    text-align: center; /* keep Recommendations title centered */
}

.post-header h1 {
    font-size: 2.5rem;
    color: #c77dff;
    margin-bottom: 1rem;
    font-weight: 700;
    text-align: center;
}

.section-description {
    font-size: 1.1rem;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    text-align: left;
}

.post-list {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.post-item {
    display: flex;
    align-items: baseline;
    gap: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #334155;
    transition: background-color 0.2s ease;
    text-align: left;
}

.post-item:hover {
    background-color: rgba(199, 125, 255, 0.05);
    margin: 0 -1rem;
    padding: 1.5rem 1rem;
    border-radius: 8px;
    border-bottom: 1px solid #334155;
}

.post-item:last-child {
    border-bottom: none;
}

.post-date {
    font-size: 0.95rem;
    color: #94a3b8;
    font-weight: 500;
    min-width: 140px;
    flex-shrink: 0;
    text-align: left;
}

.post-title {
    flex: 1;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: left;
}

.post-title a {
    color: #E0E0E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.no-posts {
    text-align: left;
    padding: 3rem 0;
    color: #94a3b8;
    font-size: 1.1rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .post-item {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .post-date {
        min-width: auto;
        font-size: 0.85rem;
    }
    
    .post-header h1 {
        font-size: 2rem;
    }
}
