/* Blog-specific styles */

/* Blog Header */
.blog-header {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    text-align: center;
}

.blog-header-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.blog-header-content p {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Category-specific styles */
.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.breadcrumb {
    margin-top: 1.5rem;
    font-size: 0.875rem;
}

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

.breadcrumb a:hover {
    color: #1a1a1a;
}

.breadcrumb span {
    color: #1a1a1a;
    font-weight: 500;
}

/* Navigation active state for blog */
.nav-link.active {
    color: #000;
    font-weight: 600;
}

/* Brand link styling */
.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.brand-link:hover {
    text-decoration: none;
}

/* Featured Post */
.featured-post {
    padding: 80px 0;
    background: #ffffff;
}

.post-card.featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    padding: 2rem;
}

.post-card.featured .post-image {
    order: 1;
}

.post-card.featured .post-content {
    order: 2;
}

.post-card.featured .post-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
}

/* Regular Post Cards */
.recent-posts {
    padding: 80px 0;
    background: #f8f9fa;
}

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

.post-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.post-image {
    position: relative;
    overflow: hidden;
}

.post-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.post-date {
    color: #6b7280;
}

.post-category {
    color: #000;
    font-weight: 600;
    background: #f3f4f6;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.post-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.post-content h3 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-content h3 a:hover {
    color: #666;
}

.post-content p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    color: #000;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.read-more:hover {
    color: #666;
}

/* Categories Section */
.blog-categories {
    padding: 80px 0;
    background: #ffffff;
}

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

.category-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-card:hover {
    background: #ffffff;
    border-color: #e5e7eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

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

.category-card p {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Newsletter Signup */
.newsletter-signup {
    padding: 80px 0;
    background: #1a1a1a;
    color: #ffffff;
    text-align: center;
}

.newsletter-content h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.newsletter-content p {
    font-size: 1.125rem;
    color: #d1d5db;
    margin-bottom: 2rem;
}

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

.email-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #374151;
    border-radius: 8px;
    background: #374151;
    color: #ffffff;
    font-size: 1rem;
}

.email-input::placeholder {
    color: #9ca3af;
}

.email-input:focus {
    outline: none;
    border-color: #ffffff;
}

.subscribe-btn {
    padding: 0.75rem 1.5rem;
    background: #ffffff;
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.subscribe-btn:hover {
    background: #f3f4f6;
}

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

.post-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.post-header .post-meta {
    justify-content: center;
    margin-bottom: 1.5rem;
}

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

.post-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.post-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    line-height: 1.6;
}

.post-image-hero {
    text-align: center;
    margin: 3rem 0;
}

.hero-img {
    max-width: 60%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

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

.post-content .lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 2rem;
}

.post-content h2 {
    font-size: 1.875rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 2.5rem 0 1rem;
}

.post-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 2rem 0 1rem;
}

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

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

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #1a1a1a;
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

/* App Promotion */
.app-promotion {
    background: linear-gradient(135deg, #f8f9fa 0%, #e5e7eb 100%);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    margin: 3rem 0;
}

.app-promotion h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.app-promotion p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-block;
    background: #1a1a1a;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.cta-button:hover {
    background: #374151;
    transform: translateY(-1px);
}

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

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

.tag {
    background: #f3f4f6;
    color: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.back-to-blog {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.back-to-blog:hover {
    color: #1a1a1a;
}

/* Related Posts */
.related-posts {
    padding: 80px 0;
    background: #f8f9fa;
}

.related-posts h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 3rem;
}

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

.related-post {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

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

.related-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-post h3 {
    padding: 1rem 1rem 0.5rem;
    margin: 0;
}

.related-post h3 a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
}

.related-post p {
    padding: 0 1rem 1rem;
    color: #6b7280;
    margin: 0;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-header-content h1 {
        font-size: 2rem;
    }
    
    .post-card.featured {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .post-card.featured .post-image {
        order: 1;
    }
    
    .post-card.featured .post-content {
        order: 2;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .post-header h1 {
        font-size: 2rem;
    }
    
    .hero-img {
        max-width: 90%;
    }
    
    .post-content {
        font-size: 1rem;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-header,
    .featured-post,
    .recent-posts,
    .blog-categories,
    .newsletter-signup,
    .blog-post,
    .related-posts {
        padding: 60px 0;
    }
    
    .blog-post {
        padding-top: 100px;
    }
}