/* Blog Styles */

/* Blog Hero */
.blog-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 100%);
    color: white;
    text-align: center;
}

.blog-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.blog-hero .lead {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Category Filters */
.blog-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-filter {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.category-filter:hover,
.category-filter.active {
    background: white;
    color: var(--primary-color);
}

/* Featured Post */
.featured-post {
    padding: 60px 0;
    background: var(--bg-light);
}

.featured-card {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.featured-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.featured-content h2 {
    font-size: 2rem;
    margin: 1rem 0;
}

.featured-content h2 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.featured-content h2 a:hover {
    color: var(--primary-color);
}

.featured-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* Post Meta */
.post-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.post-meta .category {
    padding: 0.25rem 0.75rem;
    background: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

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

/* Post Author */
.post-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--text-dark);
}

.author-title {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Blog Posts Grid */
.blog-posts {
    padding: 60px 0;
}

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

.post-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.post-card h3 {
    margin: 1rem 0;
    font-size: 1.25rem;
}

.post-card h3 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.post-card h3 a:hover {
    color: var(--primary-color);
}

.post-card p {
    flex-grow: 1;
    color: var(--text-light);
    line-height: 1.6;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s;
    display: inline-flex;
    align-items: center;
}

.read-more:hover {
    gap: 0.5rem;
}

/* Load More */
.load-more-wrapper {
    text-align: center;
}

.load-more {
    padding: 1rem 2rem;
}

/* Newsletter Signup */
.newsletter-signup {
    padding: 60px 0;
    background: var(--gradient-secondary);
}

.newsletter-card {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    color: white;
}

.newsletter-card h2 {
    color: white;
    margin-bottom: 1rem;
}

.newsletter-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-note {
    font-size: 0.875rem;
    margin-top: 1rem;
    opacity: 0.8;
}

/* Individual Blog Post Styles */
.blog-post {
    padding: 120px 0 60px;
}

.post-header {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.post-header h1 {
    font-size: 2.5rem;
    margin: 1rem 0;
    color: var(--text-dark);
}

.post-lead {
    font-size: 1.25rem;
    color: var(--text-light);
    line-height: 1.8;
    margin: 1.5rem 0;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
}

.post-content h2 {
    font-size: 1.875rem;
    margin: 2rem 0 1rem;
    color: var(--text-dark);
}

.post-content h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    color: var(--text-dark);
}

.post-content p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.post-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.post-content ul,
.post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* Callouts */
.callout {
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    border-left: 4px solid;
}

.callout h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.callout-info {
    background: #e0f2fe;
    border-color: #0284c7;
}

.callout-warning {
    background: #fef3c7;
    border-color: #f59e0b;
}

.callout-success {
    background: #d1fae5;
    border-color: #10b981;
}

/* Code Blocks */
.code-block {
    background: #1e293b;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    color: #e2e8f0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

code {
    background: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875em;
    color: #e11d48;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* Numbered List */
.numbered-list {
    counter-reset: item;
    list-style: none;
    padding: 0;
}

.numbered-list li {
    counter-increment: item;
    margin-bottom: 1rem;
    padding-left: 3rem;
    position: relative;
}

.numbered-list li:before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--primary-color);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Post CTA */
.post-cta {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    margin: 3rem 0;
    text-align: center;
}

.post-cta h3 {
    margin-bottom: 1rem;
}

.post-cta p {
    margin-bottom: 1.5rem;
}

/* Share Buttons */
.post-share {
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

.share-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.share-button {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.share-button.twitter {
    background: #1da1f2;
    color: white;
}

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

.share-button.email {
    background: var(--secondary-color);
    color: white;
}

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

.related-posts h3 {
    margin-bottom: 2rem;
}

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

.related-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.related-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.related-card h4 {
    margin: 0.5rem 0;
}

.related-card h4 a {
    color: var(--text-dark);
    text-decoration: none;
}

.related-card h4 a:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .post-header h1 {
        font-size: 1.875rem;
    }
    
    .post-content {
        font-size: 1rem;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}