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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Header styles */
header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    border-bottom: 2px solid #e9ecef;
}

header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

header h1 a {
    color: inherit;
    text-decoration: none;
}

header h1 a:hover {
    color: #3498db;
    text-decoration: none;
}

header p {
    font-size: 1.1rem;
    color: #6c757d;
    font-style: italic;
}

/* Main content */
main {
    min-height: 60vh;
}

h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

/* Article list styles */
#articles-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.article-item {
    display: block;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid #3498db;
    text-decoration: none;
    color: inherit;
}

.article-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    text-decoration: none;
}

.article-title {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: bold;
}

.article-date {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.article-excerpt {
    color: #555;
    font-size: 1rem;
}

/* Article page styles */
.article-nav {
    margin-bottom: 30px;
}

.back-link {
    display: inline-block;
    background: #3498db;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.back-link:hover {
    background: #2980b9;
    text-decoration: none;
}

.article-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    line-height: 1.8;
    animation: fadeIn 0.3s ease-in;
}

.article-content h1 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 2rem;
}

.article-content h2 {
    color: #34495e;
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-content p {
    margin-bottom: 15px;
}

.article-content ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

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

.article-content blockquote {
    border-left: 4px solid #3498db;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #555;
}

.article-content code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive design */
@media (max-width: 600px) {
    body {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .article-item {
        padding: 15px;
    }
    
    #article-display {
        padding: 20px;
    }
}
