/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fdfdfd;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #1d4ed8;
}

/* Lists */
ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background-color: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 2rem 0;
    text-align: center;
}

.blog-title {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

.blog-description {
    color: #6b7280;
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Main Content */
.main {
    padding: 3rem 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

/* Single Post Styles */
.post-container {
    max-width: 800px;
    margin: 0 auto;
}

.breadcrumb {
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: #6b7280;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #2563eb;
}

.single-post {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 3rem;
    margin-bottom: 2rem;
}

.single-post .post-title {
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 1rem;
}

.single-post .post-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.single-post .post-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: #4b5563;
}

.post-navigation {
    text-align: center;
    padding: 1rem 0;
}

.nav-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #4b5563;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background-color: #e5e7eb;
    color: #1f2937;
}

/* Posts Section */
.posts {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.post {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-header {
    margin-bottom: 1.5rem;
}

.post-title {
    margin-bottom: 0.5rem;
}

.post-title a {
    color: #1f2937;
    font-size: 1.5rem;
}

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

.post-meta {
    display: flex;
    gap: 1rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.post-category {
    background-color: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.post-content p {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.read-more {
    color: #2563eb;
    font-weight: 500;
    font-size: 0.9rem;
}

.read-more:hover {
    color: #1d4ed8;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-section {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
}

.sidebar-section h3 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.sidebar-section p {
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.6;
}

.category-list, .recent-posts {
    list-style: none;
}

.category-list li, .recent-posts li {
    margin-bottom: 0.5rem;
}

.category-list a, .recent-posts a {
    color: #4b5563;
    font-size: 0.9rem;
    padding: 0.25rem 0;
    display: block;
    transition: color 0.2s ease;
}

.category-list a:hover, .recent-posts a:hover {
    color: #2563eb;
}

/* Footer */
.footer {
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-title {
        font-size: 2rem;
    }
    
    .post {
        padding: 1.5rem;
    }
    
    .single-post {
        padding: 2rem;
    }
    
    .single-post .post-title {
        font-size: 2rem;
    }
    
    .main {
        padding: 2rem 0;
    }
    
    .header {
        padding: 1.5rem 0;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .blog-title {
        font-size: 1.75rem;
    }
    
    .post {
        padding: 1rem;
    }
    
    .single-post {
        padding: 1.5rem;
    }
    
    .single-post .post-title {
        font-size: 1.75rem;
    }
    
    .sidebar-section {
        padding: 1rem;
    }
}

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

.post {
    animation: fadeIn 0.5s ease-out;
}

/* Focus states for accessibility */
a:focus, button:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Utility classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
} 