/* Blog-specific styles using Inter font and hardcoded values for reliability */

/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Base body styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: white !important;
}

/* Container styles to match 404 page */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem; /* Hardcoded instead of CSS variable */
}

/* Blog Layout */
.blog-main {
    padding-top: 80px; /* Reduced from 100px */
    padding-bottom: 1rem; /* Reduced from 2rem */
    /* Fill viewport height minus fixed header (like 404 page) */
    min-height: calc(100vh - 55px);
    background: #f5f5f5;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Blog Header */
.blog-header {
    text-align: center;
    margin-bottom: 2rem; /* Reduced from 3rem */
    padding: 1.5rem 0; /* Reduced from 2rem 0 */
}

.blog-title {
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #9334DD;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #9334DD, #7022B5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-subtitle {
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1.2rem;
    color: #666;
    margin: 0;
    font-weight: 400;
}

/* Blog Posts Grid */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem; /* Reduced from 2rem */
    margin-bottom: 2rem; /* Reduced from 3rem */
}

.blog-post-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(147, 52, 221, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(147, 52, 221, 0.1);
}

.blog-post-card:hover {
    box-shadow: 0 8px 24px rgba(147, 52, 221, 0.15);
    transform: translateY(-4px);
}

.blog-post-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.blog-post-link:hover {
    text-decoration: none;
    color: inherit;
}

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

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

.blog-post-content {
    padding: 2rem;
}

.blog-post-title {
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    color: #333;
    transition: color 0.2s ease;
}

.blog-post-link:hover .blog-post-title {
    color: #9334DD;
}

.blog-post-summary {
    color: #666;
    margin: 0 0 1rem 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

.blog-post-meta {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* No Posts State */
.blog-no-posts {
    text-align: center;
    padding: 2rem; /* Reduced from 3rem */
    color: #666;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(147, 52, 221, 0.08);
    margin: 1.5rem 0 3rem 0; /* Reduced margins */
}

.blog-no-posts p {
    font-size: 1.1rem;
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Breadcrumbs */
.blog-breadcrumbs {
    margin: 0.75rem 0; /* Reduced from 1rem 0 */
    padding: 0;
    background: rgba(147, 52, 221, 0.05);
    border-radius: 8px;
    padding: 0.5rem 1rem; /* Reduced from 0.75rem 1rem */
}

.blog-breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    align-items: center;
}

.blog-breadcrumb-item {
    display: flex;
    align-items: center;
}

.blog-breadcrumb-item:not(:last-child)::after {
    content: "›";
    margin: 0 0.75rem;
    color: #9334DD;
    font-weight: 600;
    font-size: 1rem;
}

.blog-breadcrumb-link {
    color: #9334DD;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.blog-breadcrumb-link:hover {
    color: #7022B5;
    background: rgba(147, 52, 221, 0.1);
    text-decoration: none;
}

.blog-breadcrumb-current {
    color: #999; /* light grey */
    font-weight: 600;
    padding: 0.25rem 0.5rem;
}

/* Blog Article Layout */
.blog-article {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(147, 52, 221, 0.08);
    overflow: hidden;
    margin: 2rem 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.blog-article-header {
    padding: 2.5rem 2.5rem 1.5rem 2.5rem;
    border-bottom: 1px solid rgba(147, 52, 221, 0.1);
}

.blog-article-title {
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.blog-article-meta {
    margin-bottom: 1.5rem;
}

.blog-publish-date {
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
}

.blog-article-summary {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

.blog-article-cover {
    margin: 0;
    padding: 0;
}

.blog-article-cover img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.blog-article-content {
    padding: 2.5rem;
    line-height: 1.7;
    font-size: 1.05rem;
    color: #333;
}

.blog-article-content h2 {
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 2rem 0 1rem 0;
    line-height: 1.3;
}

.blog-article-content h3 {
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 1.5rem 0 0.75rem 0;
    line-height: 1.3;
}

.blog-article-content p {
    margin: 0 0 1.25rem 0;
    line-height: 1.7;
}

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

.blog-article-content li {
    margin: 0 0 0.5rem 0;
    line-height: 1.7;
}

.blog-article-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: rgba(147, 52, 221, 0.05);
    border-left: 4px solid #9334DD;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}

.blog-article-content strong {
    font-weight: 600;
    color: #333;
}

.blog-article-content a {
    color: #9334DD;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-article-content a:hover {
    color: #7022B5;
    text-decoration: underline;
}

.blog-article-footer {
    padding: 1.5rem 2.5rem 2.5rem 2.5rem;
    border-top: 1px solid rgba(147, 52, 221, 0.1);
    background: rgba(147, 52, 221, 0.02);
}

.blog-back-to-blog {
    margin: 0;
}

.blog-back-link {
    display: inline-flex;
    align-items: center;
    color: #9334DD;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(147, 52, 221, 0.05);
    border: 1px solid rgba(147, 52, 221, 0.1);
}

.blog-back-link:hover {
    color: #7022B5;
    background: rgba(147, 52, 221, 0.1);
    border-color: rgba(147, 52, 221, 0.2);
    text-decoration: none;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-main {
        padding-top: 70px; /* Reduced from 80px */
        padding-bottom: 1rem; /* Reduced from 1.5rem */
    }
    
    .blog-title {
        font-size: 2.5rem;
    }
    
    .blog-subtitle {
        font-size: 1.1rem;
    }
    
    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem; /* Reduced from 1.5rem */
    }
    
    .blog-post-content {
        padding: 1.5rem;
    }
    
    .blog-container {
        padding: 0 1rem;
    }
    
    .blog-no-posts {
        margin: 1.25rem 0 2.5rem 0; /* Reduced margins */
    }
    
    /* Blog Article Responsive */
    .blog-article {
        margin: 1rem 0;
        border-radius: 12px;
    }
    
    .blog-article-header {
        padding: 2rem 1.5rem 1rem 1.5rem;
    }
    
    .blog-article-title {
        font-size: 2rem;
    }
    
    .blog-article-content {
        padding: 2rem 1.5rem;
        font-size: 1rem;
    }
    
    .blog-article-content h2 {
        font-size: 1.35rem;
    }
    
    .blog-article-content h3 {
        font-size: 1.2rem;
    }
    
    .blog-article-cover img {
        height: 250px;
    }
    
    .blog-article-footer {
        padding: 1rem 1.5rem 1.5rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .blog-title {
        font-size: 2rem;
    }
    
    .blog-container {
        padding: 0 0.5rem;
    }
    
    .blog-no-posts {
        margin: 1rem 0 2rem 0; /* Further reduced margins */
    }
    
    /* Blog Article Mobile */
    .blog-article {
        margin: 0.5rem 0;
        border-radius: 8px;
    }
    
    .blog-article-header {
        padding: 1.5rem 1rem 0.75rem 1rem;
    }
    
    .blog-article-title {
        font-size: 1.75rem;
    }
    
    .blog-article-content {
        padding: 1.5rem 1rem;
        font-size: 0.95rem;
    }
    
    .blog-article-content h2 {
        font-size: 1.25rem;
    }
    
    .blog-article-content h3 {
        font-size: 1.1rem;
    }
    
    .blog-article-cover img {
        height: 200px;
    }
    
    .blog-article-footer {
        padding: 0.75rem 1rem 1rem 1rem;
    }
    
    .blog-back-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}
