/* 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;
}

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

/* Header */
.site-header {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    margin-bottom: 30px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.site-title a {
    text-decoration: none;
    color: #333;
}

.site-nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #333;
}

/* Homepage Styles */
.homepage {
    margin-bottom: 40px;
}

.welcome-section {
    margin-bottom: 40px;
    text-align: center;
    padding: 30px 0;
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.welcome-description {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Section Titles */
.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #333;
}

/* Featured Post */
.featured-post {
    margin-bottom: 40px;
}

.featured-post .post-card {
    border: 2px solid #e74c3c;
    border-radius: 8px;
    padding: 30px;
    background: #fef9f9;
}

/* Post Cards */
.posts-grid {
    display: grid;
    gap: 25px;
    margin-bottom: 30px;
}

.post-card {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.2s ease;
}

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

.post-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

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

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

.post-date {
    display: block;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.post-summary {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    background: #f5f5f5;
    color: #666;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag:hover {
    background: #e74c3c;
    color: white;
    text-decoration: none;
}

/* View All Link */
.view-all {
    text-align: center;
}

.view-all-link {
    display: inline-block;
    color: #e74c3c;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 24px;
    border: 2px solid #e74c3c;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.view-all-link:hover {
    background: #e74c3c;
    color: white;
}

/* Breadcrumb Navigation */
.breadcrumb {
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #e74c3c;
}

.breadcrumb-separator {
    margin: 0 10px;
    color: #ccc;
}

.breadcrumb-current {
    color: #333;
    font-weight: 500;
}

/* Single Page Styles */
.single-page {
    margin-bottom: 40px;
}

.post-header {
    margin-bottom: 30px;
}

.post-header .post-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.post-header .post-date {
    font-size: 1rem;
    margin-bottom: 20px;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 40px;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin: 30px 0 15px 0;
    color: #333;
}

.post-content h1 { font-size: 1.8rem; }
.post-content h2 { font-size: 1.6rem; }
.post-content h3 { font-size: 1.4rem; }

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

.post-content a {
    color: #e74c3c;
    text-decoration: none;
}

.post-content a:hover {
    text-decoration: underline;
}

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

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

.post-content blockquote {
    border-left: 4px solid #e74c3c;
    margin: 20px 0;
    padding: 15px 20px;
    background: #f9f9f9;
    font-style: italic;
}

.post-content code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9em;
}

.post-content pre {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 20px 0;
}

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

/* Image Responsiveness */
.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
}

/* List Page Styles */
.list-page {
    margin-bottom: 40px;
}

.page-header {
    margin-bottom: 30px;
}

.page-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-description {
    font-size: 1.1rem;
    color: #666;
}

.posts-list {
    display: grid;
    gap: 25px;
}

/* Footer */
.site-footer {
    background: #f8f9fa;
    border-top: 1px solid #eee;
    padding: 40px 0 30px 0;
    margin-top: 50px;
}

.newsletter-section {
    text-align: center;
    margin-bottom: 30px;
}

.newsletter-section h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.newsletter-section p {
    color: #666;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto 15px auto;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 12px 24px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.newsletter-form button:hover {
    background: #c0392b;
}

.newsletter-note {
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
}

.newsletter-powered-by {
    font-size: 0.85rem;
    color: #888;
    margin-top: 10px;
}

.newsletter-powered-by a {
    color: #888;
    text-decoration: none;
}

.newsletter-powered-by a:hover {
    color: #666;
    text-decoration: underline;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.social-link:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.social-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-bottom {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

.tag-meta {
    color: #666;
    font-size: 1rem;
    margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .site-nav {
        gap: 20px;
    }
    
    .welcome-title {
        font-size: 2rem;
    }
    
    .welcome-description {
        font-size: 1.1rem;
    }
    
    .post-title {
        font-size: 1.2rem;
    }
    
    .single-page .post-title {
        font-size: 1.8rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        max-width: 300px;
    }
    
    .social-links {
        flex-wrap: wrap;
        gap: 15px;
    }
}