/* Blog-specific Styles */

/* Blog page black background */
body.blog-page {
    background-color: #000;
}

.blog-page .featured-posts,
.blog-page .blog-filters,
.blog-page .all-posts {
    background-color: #000;
}

.blog-page .blog-filters {
    background: #000;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

/* Override any light backgrounds */
.blog-page .section-title {
    color: #fff;
}

.blog-page h1,
.blog-page h2,
.blog-page h3,
.blog-page h4,
.blog-page h5,
.blog-page h6 {
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.featured-posts {
    background: #000 !important;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.featured-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

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

/* Blog Card */
.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

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

.featured-card {
    background: linear-gradient(135deg, #B0FF85 0%, #87DB1C 50%, #4CAF50 100%);
    color: #000;
}

.featured-card .blog-card-title a,
.featured-card .blog-card-meta,
.featured-card .blog-card-excerpt,
.featured-card .read-more {
    color: #000;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ffa500;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
}

.blog-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
}

.blog-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin: 0.5rem 0;
    line-height: 1.3;
}

.blog-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: #4CAF50;
}

.blog-card-excerpt {
    color: #666;
    line-height: 1.6;
    margin: 1rem 0;
}

.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tag-btn {
    background: #f0f0f0;
    border: none;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tag-btn:hover {
    background: #4CAF50;
    color: white;
}

.read-more {
    display: inline-block;
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
    margin-top: 0.5rem;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #87DB1C;
}

/* Tag Filters */
.blog-filters {
    padding: 2rem 0;
    background: #f8f9fa;
    margin: 2rem 0;
}

.blog-page .blog-filters {
    background: #000 !important;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.filter-clear {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.filter-clear:hover {
    color: #333;
}

.tag-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag-filter {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.tag-filter:hover {
    border-color: #4CAF50;
    color: #4CAF50;
}

.tag-filter.active {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 3rem 0;
}

.pagination-btn {
    padding: 0.75rem 1.5rem;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-weight: 500;
}

.pagination-btn:hover:not(:disabled) {
    background: #87DB1C;
}

.pagination-btn:disabled {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
}

.page-info {
    font-size: 0.875rem;
    color: #666;
}

/* Blog CTA */
.blog-cta {
    background: linear-gradient(135deg, #B0FF85 0%, #87DB1C 50%, #4CAF50 100%);
    padding: 4rem 0;
    text-align: center;
    margin-top: 4rem;
}

.blog-page .blog-cta {
    margin-top: 2rem;
    background: #000 !important;
}

.cta-box {
    max-width: 600px;
    margin: 0 auto;
}

.cta-box h2 {
    color: #000;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.blog-page .cta-box h2 {
    color: #fff;
}

.cta-box p {
    color: rgba(0, 0, 0, 0.8);
    margin-bottom: 2rem;
}

.blog-page .cta-box p {
    color: rgba(255, 255, 255, 0.9);
}

/* Individual Blog Post Styles */
.blog-article {
    padding: 2rem 0 4rem;
    max-width: 800px;
    margin: 0 auto;
}

.blog-page .blog-article {
    background: #000;
    color: #fff;
}

/* Breadcrumb */
.breadcrumb {
    padding: 1rem 0;
    font-size: 0.875rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-page .breadcrumb {
    color: #ccc;
}

.breadcrumb a {
    color: #4CAF50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #87DB1C;
}

/* Article Header */
.article-header {
    margin: 2rem 0;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.blog-page .article-header {
    border-bottom: 1px solid #333;
}

.article-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    line-height: 1.2;
    color: #333;
    margin-bottom: 1rem;
}

.blog-page .article-title {
    color: #fff;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #666;
}

.blog-page .article-meta {
    color: #ccc;
}

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

.article-tag {
    background: #f0f0f0;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    color: #666;
    text-decoration: none;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.article-tag:hover {
    background: #4CAF50;
    color: white;
}

/* Article Content */
.article-content {
    padding: 2rem 0;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #333;
}

.blog-page .article-content {
    color: #fff;
}

.article-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin: 2rem 0 1rem;
    color: #333;
}

.blog-page .article-content h2 {
    color: #fff;
}

.article-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin: 1.5rem 0 0.75rem;
    color: #333;
}

.blog-page .article-content h3 {
    color: #fff;
}

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

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

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

.article-content blockquote {
    border-left: 4px solid #4CAF50;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #666;
}

.blog-page .article-content blockquote {
    color: #ccc;
}

.article-content pre {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.blog-page .article-content pre {
    background: #1a1a1a;
    color: #fff;
}

.article-content code {
    background: #f0f0f0;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.875em;
}

.blog-page .article-content code {
    background: #333;
    color: #fff;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

/* Article Footer */
.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.blog-page .article-footer {
    border-top: 1px solid #333;
}

.share-section {
    margin-bottom: 3rem;
}

.share-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.blog-page .share-section h3 {
    color: #fff;
}

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

.share-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.share-btn.twitter {
    background: #1DA1F2;
    color: white;
}

.share-btn.linkedin {
    background: #0077B5;
    color: white;
}

.share-btn.copy {
    background: #666;
    color: white;
}

.share-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Article CTA */
.article-cta {
    background: linear-gradient(135deg, #B0FF85 0%, #87DB1C 50%, #4CAF50 100%);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    color: #000;
}

.blog-page .article-cta {
    background: #000;
    border: 2px solid #4CAF50;
    color: #fff;
}

.article-cta h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.blog-page .article-cta h3 {
    color: #fff;
}

.article-cta p {
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.blog-page .article-cta p {
    color: rgba(255, 255, 255, 0.9);
}

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

.blog-page .related-posts {
    background: #000 !important;
}

.related-posts h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.related-card {
    background: white;
}

/* Loading and Error States */
.loading {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.blog-page .loading {
    color: #fff;
}

.error-message {
    background: #fee;
    color: #c00;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin: 2rem 0;
}

.no-posts {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1.125rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 600px;
    margin: 0 auto;
    color: #666;
}

.blog-page .empty-state {
    color: #fff;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.empty-state-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: inherit;
}

.empty-state-description {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.empty-state-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Section Titles */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.featured-posts {
    padding: 3rem 0;
    background: #f8f9fa;
}

.blog-page .featured-posts {
    background: #000 !important;
}

.all-posts {
    padding: 3rem 0;
}

.blog-page .all-posts {
    background: #000 !important;
}

/* Responsive Design */
@media (max-width: 768px) {

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .article-title {
        font-size: 1.75rem;
    }

    .article-content {
        font-size: 1rem;
    }

    .pagination {
        gap: 1rem;
    }

    .pagination-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
    }

    .empty-state {
        padding: 3rem 1rem;
    }

    .empty-state-title {
        font-size: 1.5rem;
    }

    .empty-state-description {
        font-size: 1rem;
    }

    .empty-state-actions {
        flex-direction: column;
    }

    .empty-state-actions .btn {
        width: 100%;
    }
}