/* Blog Post Specific Styles */

/* Navbar styles are inherited from ../styles.css */
/* Ensure navbar maintains consistent height and alignment */
.navbar {
    min-height: auto;
}

.nav-container {
    min-height: auto;
    padding: 1.5rem 20px;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.nav-menu {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 0 !important;
    padding-left: 0 !important;
}

.nav-menu li {
    margin-bottom: 0 !important;
    font-size: inherit !important;
}

/* Exclude navbar logo from global h2 styles */
.navbar h2,
.nav-logo h2 {
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    line-height: 1 !important;
}

/* Post header needs extra padding to account for fixed navbar */

/* Post Header */
.post-header {
    background: var(--bg-secondary);
    padding: 120px 0 60px;
    margin-top: 0;
    padding-top: calc(80px + 120px);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-dark);
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.post-category {
    background: var(--bg-accent);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.875rem;
}

.post-date,
.read-time {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.post-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.post-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 100%;
}

/* Post Content */
.post-content {
    padding: 60px 0;
}

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

.featured-image {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.content-wrapper {
    line-height: 1.8;
    color: var(--text-primary);
}

.lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 500;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    margin: 3rem 0 1.5rem;
    color: var(--text-primary);
    line-height: 1.3;
}

/* Exclude navbar logo from global h2 styles */
.navbar h2,
.nav-logo h2 {
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    line-height: 1 !important;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem;
    color: var(--text-primary);
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

strong {
    font-weight: 600;
    color: var(--text-primary);
}

/* Global link styles - scoped to content only, excluding navbar */
.content-wrapper a,
.post-body a,
.post-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-wrapper a:hover,
.post-body a:hover,
.post-content a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Ensure navbar links are not affected by global link styles */
.navbar a,
.nav-menu a {
    text-decoration: none !important;
}

.navbar a:hover,
.nav-menu a:hover {
    text-decoration: none !important;
}

blockquote {
    background: var(--bg-accent);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

blockquote p {
    margin-bottom: 1rem;
    font-size: 1.125rem;
    color: var(--text-primary);
}

blockquote cite {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* CTA Section */
.cta-section {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    margin: 3rem 0;
    text-align: center;
    border: 1px solid var(--border-color);
}

.cta-section h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cta-section p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

/* CTA buttons need higher contrast on light CTA background */
.cta-section .btn-primary {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.cta-section .btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
}

.cta-section .btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-section .btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

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

/* Related Posts */
.related-posts {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.related-posts h3 {
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-primary);
}

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

.related-post {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.related-post:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.related-post h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    line-height: 1.4;
}

.related-post .read-time {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Comparison Table */
.comparison-table {
    margin: 2rem 0 2.5rem;
    padding: 1.25rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.comparison-table h3 {
    margin: 0 0 1rem;
}

.comparison-table table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: 1rem;
    line-height: 1.5;
}

.comparison-table th,
.comparison-table td {
    padding: 0.875rem 0.9rem;
    border: 1px solid var(--border-color);
    text-align: center;
    vertical-align: top;
    white-space: normal;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    border-right: 3px solid var(--border-color);
}

.comparison-table thead th {
    background: var(--bg-secondary);
    font-weight: 600;
}

.comparison-table tbody tr:nth-child(even) td {
    background: rgba(0, 0, 0, 0.02);
}

.comparison-table .table-note {
    margin: 1rem 0 0;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .post-header {
        padding: 100px 0 40px;
        padding-top: calc(80px + 100px);
    }
    
    .post-title {
        font-size: 2.25rem;
    }
    
    .post-subtitle {
        font-size: 1.125rem;
    }
    
    .post-content {
        padding: 40px 0;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }

    .comparison-table {
        padding: 1rem;
    }

    .comparison-table table {
        min-width: 720px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .post-title {
        font-size: 1.875rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .content-wrapper {
        font-size: 1rem;
    }
    
    .lead {
        font-size: 1.125rem;
    }
} 