/* Blog Styles - Clean, minimal design focused on readability */

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

/* Blog Main - using main site styling */

/* Blog Hero Section Adjustments */
.section-hero {
    margin-top: 0px !important; /* Remove any top margin from section */
}

.section-hero .section-content {
    padding-top: 20px !important; /* Remove top padding completely */
    padding-bottom: 30px; /* Reduced by 50% from 60px */
}

.section-hero .image-chiclet {
    margin-top: 0px !important; /* Remove any top margin */
    margin-bottom: 10px; /* Reduced by 50% from 20px */
}

.section-hero .typography-headline {
    margin-bottom: 20px; /* Reduced by 50% from 40px */
    font-size: 2rem; /* Reduced font size */
    line-height: 1.3;
}

/* Post Previews */
.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.post-preview {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 40px;
    transition: all 0.2s ease;
}

.post-preview:hover {
    transform: translateY(-2px);
}

.post-preview:last-child {
    border-bottom: none;
}

.post-preview-header {
    margin-bottom: 15px;
}

.post-preview-title {
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    line-height: 1.2;
    color: #1f2937;
}

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

.post-preview-title a:hover {
    color: #667eea;
}

.post-preview-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 15px;
}

.post-preview-date {
    font-weight: 500;
}

.post-preview-reading-time {
    font-style: italic;
}

.post-preview-excerpt {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #4b5563;
}

.post-preview-excerpt p {
    margin: 0;
}

.post-preview-footer {
    margin-top: 20px;
}

.read-more-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.read-more-link:hover {
    color: #5a67d8;
}

/* Individual Post Styles */
.post-main {
    padding-top: 40px;
}

.post-article {
    max-width: 800px;
    margin: 0 auto;
}

.post-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e7eb;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 20px;
}

.post-date {
    font-weight: 500;
}

.post-reading-time {
    font-style: italic;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
    color: #1f2937;
    letter-spacing: -0.02em;
}

.post-excerpt {
    font-size: 1.2rem;
    color: #6b7280;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.post-author {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
}

.post-content {
    margin-bottom: 50px;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: #1f2937;
    margin-top: 40px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.post-content h1 {
    font-size: 2rem;
    font-weight: 700;
}

.post-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
}

.post-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.post-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

.post-content p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: #374151;
    font-size: 1.1rem;
}

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

.post-content li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #374151;
}

.post-content strong {
    font-weight: 600;
    color: #1f2937;
}

.post-content em {
    font-style: italic;
    color: #6b7280;
}

.post-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #6b7280;
    background: #f8fafc;
    padding: 20px;
    border-radius: 0 8px 8px 0;
}

.post-content code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
    color: #e11d48;
}

.post-content pre {
    background: #1f2937;
    color: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

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

/* Post Footer */
.post-footer {
    border-top: 1px solid #e5e7eb;
    padding-top: 40px;
    margin-top: 50px;
}

.post-tags {
    margin-bottom: 40px;
}

.post-tags h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #6b7280;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tag-item {
    margin: 0;
}

.tag-link {
    background: #f1f5f9;
    color: #667eea;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tag-link:hover {
    background: #667eea;
    color: white;
}

/* CTA Section */
.post-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin: 40px 0;
}

.post-cta h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.post-cta p {
    font-size: 1.1rem;
    margin: 0 0 25px 0;
    opacity: 0.9;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: #667eea;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.cta-icon {
    width: 24px;
    height: 24px;
}

/* Post Navigation */
.post-navigation {
    margin-top: 40px;
    margin-bottom: 40px;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.nav-previous,
.nav-next {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    transition: all 0.2s ease;
    flex: 1;
    max-width: 300px;
}

.nav-previous:hover,
.nav-next:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.nav-direction {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 5px;
}

.nav-title {
    font-weight: 600;
    line-height: 1.3;
}

/* Pagination */
.pagination {
    margin: 60px 0 40px 0;
    text-align: center;
}

.pagination-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.pagination-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.pagination-link:hover {
    background: #f1f5f9;
    color: #5a67d8;
}

.pagination-info {
    color: #6b7280;
    font-size: 0.9rem;
}

/* RSS Feed */
.blog-rss {
    text-align: left;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
    margin-bottom: 30px;
}

.rss-link {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    margin-bottom: 10px;
}

.rss-link:hover {
    color: #5a67d8;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Blog Hero Mobile Adjustments */
    .section-hero .section-content {
        padding-top: 0px; /* Remove top padding completely */
        padding-bottom: 20px; /* Reduced by 50% from 40px */
    }
    
    .section-hero .image-chiclet {
        margin-top: 0px; /* Remove any top margin */
        margin-bottom: 7px; /* Reduced by 50% from 15px */
    }
    
    .section-hero .typography-headline {
        margin-bottom: 15px; /* Reduced by 50% from 30px */
        font-size: 1.3rem; /* Smaller on mobile */
        line-height: 1.3;
    }
    
    .blog-title {
        font-size: 2.5rem;
    }
    
    .blog-subtitle {
        font-size: 1.1rem;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .post-preview-title {
        font-size: 1.5rem;
    }
    
    .post-preview-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .nav-links {
        flex-direction: column;
    }
    
    .nav-previous,
    .nav-next {
        max-width: none;
    }
    
    .pagination-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .post-cta {
        padding: 30px 20px;
    }
    
    .cta-button {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .blog-header {
        padding: 40px 0;
    }
    
    .blog-title {
        font-size: 2rem;
    }
    
    .section-hero .typography-headline {
        font-size: 1.1rem; /* Even smaller on very small screens */
        line-height: 1.2;
    }
    
    .post-title {
        font-size: 1.75rem;
    }
    
    .post-content {
        font-size: 1rem;
    }
    
    .post-content h1 {
        font-size: 1.75rem;
    }
    
    .post-content h2 {
        font-size: 1.5rem;
    }
    
    .post-content h3 {
        font-size: 1.25rem;
    }
}
