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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: #4a4a4a;
    background-color: #fff;
    font-size: 18px;
    font-weight: 400;
}

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

/* Typography - Index page styling (matching Effortless Proposals website) */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1a1a1a;
    letter-spacing: -0.025em;
}

h1 { font-size: 3rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    font-size: 18px;
    line-height: 1.7;
    color: #4a4a4a;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
}

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

a:hover {
    color: #1d4ed8;
}

/* Header */
.site-header {
    background-color: #fff;
    border-bottom: 2px solid #ff6b35;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-brand .logo {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.nav-item {
    list-style: none;
}

.nav-link {
    color: #1a1a1a;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #333;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.nav-link:hover::after {
    opacity: 1;
}

/* Main content */
.site-main {
    min-height: calc(100vh - 200px);
}

/* Blog hero */
.blog-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.blog-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.blog-hero p {
    font-size: 1.375rem;
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.6;
}

/* Blog posts section */
.blog-posts {
    padding: 4rem 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.post-card-content {
    padding: 1.5rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 500;
}

.post-category a {
    color: #2563eb;
    font-weight: 500;
}

.post-title {
    font-size: 1.375rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.post-title a {
    color: #1a1a1a;
}

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

.post-excerpt {
    color: #4a4a4a;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
    padding-bottom: 3rem;
    border-bottom: 1px solid #e5e7eb;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background-color: #f3f4f6;
    color: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.tag:hover {
    background-color: #e5e7eb;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-top: 1px solid #e5e7eb;
}

.pagination-info {
    color: #6b7280;
}

.view-all-posts {
    background-color: #2563eb;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.2s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.view-all-posts:hover {
    background-color: #1d4ed8;
    color: white;
}

/* Categories section */
.blog-categories {
    background-color: #f9fafb;
    padding: 4rem 0;
}

.blog-categories h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
    font-size: 2.25rem;
    letter-spacing: -0.025em;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.category-card h3 {
    color: #1a1a1a;
    margin-bottom: 0;
    font-weight: 600;
    font-size: 1.25rem;
}

/* Blog post specific styles - Medium-style typography */
.blog-post {
    padding: 0;
}

.blog-post body {
    font-family: 'Charter', 'Georgia', 'Times New Roman', serif;
    font-size: 18px;
    line-height: 1.8;
    color: #242424;
}

.blog-post h1, .blog-post h2, .blog-post h3, .blog-post h4, .blog-post h5, .blog-post h6 {
    font-family: 'Charter', 'Georgia', 'Times New Roman', serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #242424;
}

.blog-post h1 { font-size: 2.5rem; }
.blog-post h2 { font-size: 1.8rem; }
.blog-post h3 { font-size: 1.4rem; }
.blog-post h4 { font-size: 1.2rem; }

.blog-post p {
    margin-bottom: 1.5rem;
    font-size: 18px;
    line-height: 1.8;
    color: #242424;
}

.post-header {
    text-align: left;
    margin-bottom: 2rem;
    padding: 2rem 0;
    border-bottom: none;
    max-width: 907px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.post-meta {
    display: flex;
    gap: 1rem;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.post-category a {
    color: #2563eb;
    font-weight: 500;
}

.post-reading-time {
    color: #6b7280;
}

.post-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #242424;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-family: 'Charter', 'Georgia', 'Times New Roman', serif;
}

.post-excerpt {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: none;
    margin: 0 0 1.5rem 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

.post-content {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    font-size: 18px;
    line-height: 1.8;
    color: #242424;
    font-family: 'Charter', 'Georgia', 'Times New Roman', serif;
}

.main-content h2 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: #242424;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-family: 'Charter', 'Georgia', 'Times New Roman', serif;
}

.main-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #242424;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-family: 'Charter', 'Georgia', 'Times New Roman', serif;
}

.main-content p {
    margin-bottom: 1.5rem;
    font-size: 18px;
    line-height: 1.8;
    color: #242424;
    font-family: 'Charter', 'Georgia', 'Times New Roman', serif;
}

.main-content ul, .main-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.main-content li {
    margin-bottom: 0.5rem;
    font-size: 18px;
    line-height: 1.8;
    font-family: 'Charter', 'Georgia', 'Times New Roman', serif;
}

.main-content blockquote {
    border-left: 4px solid #e5e7eb;
    padding-left: 1rem;
    margin: 2rem 0;
    font-style: italic;
    color: #6b7280;
    font-size: 18px;
    line-height: 1.8;
    font-family: 'Charter', 'Georgia', 'Times New Roman', serif;
}

.main-content code {
    background-color: #f3f4f6;
    padding: 0.125rem 0.25rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875em;
}

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

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

/* Medium-style image styling */
.main-content img {
    max-width: 100%;
    height: auto;
    margin: 2rem auto;
    display: block;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.main-content figure {
    margin: 2rem 0;
    text-align: center;
}

.main-content figure img {
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.main-content figcaption {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    color: #6b7280;
    margin-top: 0.75rem;
    line-height: 1.4;
    font-style: italic;
}

/* Post tags and share */
.post-tags, .post-share {
    background-color: transparent;
    padding: 1.5rem 0;
    border-radius: 0;
    margin-top: 2rem;
}

.post-share-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.post-share-section .post-share {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.post-tags h3, .post-share h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #374151;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.share-button {
    background-color: #2563eb;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.share-button:hover {
    background-color: #1d4ed8;
    color: white;
}

.share-button.linkedin {
    background-color: #0077b5;
}

.share-button.linkedin:hover {
    background-color: #005885;
}

/* Related posts */
.related-posts {
    background-color: #f9fafb;
    padding: 4rem 0;
    margin-top: 4rem;
}

.related-posts h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.related-posts .container {
    max-width: 680px;
}

.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-card {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    transition: none;
    padding: 0;
}

.post-card:hover {
    transform: none;
    box-shadow: none;
}

.post-card-content {
    padding: 0;
}

.post-card-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 400;
    line-height: 1.3;
}

.post-card-title a {
    color: #242424;
}

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

.post-card-excerpt {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 16px;
}

.post-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 14px;
    color: #6b7280;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Footer */
.site-footer {
    background-color: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-section h3, .footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    color: #d1d5db;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #d1d5db;
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: white;
}

.rss-link {
    color: #fbbf24;
    font-weight: 500;
}

.rss-link:hover {
    color: #f59e0b;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .post-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .post-content {
        padding: 0 15px;
    }
    
    .main-content h2 {
        font-size: 1.6rem;
    }
    
    .main-content h3 {
        font-size: 1.3rem;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    body {
        font-size: 16px;
    }
    
    .blog-post body {
        font-size: 16px;
    }
    
    .main-content {
        font-size: 16px;
    }
    
    .main-content p {
        font-size: 16px;
    }
    
    .main-content li {
        font-size: 16px;
    }
    
    .main-content blockquote {
        font-size: 16px;
    }
    
    .blog-post h1 { font-size: 2rem; }
    .blog-post h2 { font-size: 1.6rem; }
    .blog-post h3 { font-size: 1.3rem; }
    .blog-post h4 { font-size: 1.1rem; }
    
    .blog-post p {
        font-size: 16px;
    }
}

/* Utility classes */
.no-posts {
    text-align: center;
    padding: 4rem 0;
}

.no-posts h2 {
    color: #6b7280;
    margin-bottom: 1rem;
}

.no-posts p {
    color: #9ca3af;
} 