/*
Theme Name: Minimalist Blog
Description: A clean, minimalist WordPress theme inspired by Minimalistique. Features a white background, single-column layout with sidebar, and focus on readability.
Version: 1.0
Author: Custom Theme
Text Domain: minimalist-blog
*/

/* 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: #fff;
    font-size: 16px;
}

img {
    max-width: 100%;
    height: auto;
}

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

a:hover {
    color: #1d4ed8;
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.site-title {
    font-size: 24px;
    font-weight: 700;
    color: #111;
}

.site-title a {
    color: inherit;
}

.site-description {
    font-size: 14px;
    color: #666;
    margin-top: 2px;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-navigation a {
    color: #374151;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

/* Main Content Area */
.site-main {
    flex: 1;
    display: flex;
    gap: 40px;
    padding: 40px 0;
}

.content-area {
    flex: 2;
}

.widget-area {
    flex: 1;
    max-width: 300px;
}

/* Post Styles */
.post-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    transition: box-shadow 0.2s ease;
}

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

.post-thumbnail {
    margin-bottom: 20px;
    border-radius: 6px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.entry-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.entry-header h2 a {
    color: #111;
}

.entry-header h2 a:hover {
    color: #2563eb;
}

.entry-meta {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 15px;
}

.entry-meta a {
    color: inherit;
}

.entry-summary {
    color: #4b5563;
    line-height: 1.7;
}

/* Single Post */
.single-post .post-card {
    border: none;
    padding: 0;
    box-shadow: none;
}

.single-post .entry-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #111;
}

.entry-content {
    line-height: 1.8;
    color: #374151;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin: 30px 0 15px 0;
    color: #111;
    font-weight: 600;
}

.entry-content h2 {
    font-size: 24px;
}

.entry-content h3 {
    font-size: 20px;
}

.entry-content h4 {
    font-size: 18px;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content ul,
.entry-content ol {
    margin: 20px 0;
    padding-left: 25px;
}

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

.entry-content blockquote {
    border-left: 4px solid #2563eb;
    padding-left: 20px;
    margin: 25px 0;
    font-style: italic;
    color: #4b5563;
}

.entry-content code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 14px;
    color: #e11d48;
}

.entry-content pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 20px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 20px 0;
}

.entry-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Sidebar */
.widget {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #111;
    border-bottom: 2px solid #2563eb;
    padding-bottom: 8px;
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: #4b5563;
    display: block;
}

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

/* Footer */
.site-footer {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-widget h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #111;
}

.site-info {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 14px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    color: #4b5563;
    background: #fff;
    text-decoration: none;
}

.pagination a:hover,
.pagination .current {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .site-main {
        flex-direction: column;
        gap: 30px;
        padding: 20px 0;
    }
    
    .widget-area {
        max-width: none;
    }
    
    .post-card {
        padding: 20px;
    }
    
    .single-post .entry-header h1 {
        font-size: 26px;
    }
    
    .entry-header h2 {
        font-size: 20px;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 20px;
    }
    
    .main-navigation ul {
        gap: 15px;
    }
    
    .main-navigation a {
        font-size: 14px;
    }
    
    .post-card {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .widget {
        padding: 20px;
    }
}