/* Blog-specific styles */

/* Blog Hero Section */
.blog-hero {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f7fafc 0%, #e2e8f0 100%);
    text-align: center;
}

.blog-hero h1 {
    color: #1a365d;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.blog-hero p {
    font-size: 1.2rem;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Posts Grid */
.blog-posts {
    padding: 4rem 0;
}

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

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

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

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.blog-category {
    background-color: #e53e3e;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.8rem;
}

.blog-date {
    color: #718096;
    font-weight: 500;
}

.blog-card h2 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    line-height: 1.4;
}

.blog-card h2 a {
    color: #1a365d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card h2 a:hover {
    color: #e53e3e;
}

.blog-card p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
}

.read-time {
    color: #718096;
    font-size: 0.9rem;
    font-weight: 500;
}

.read-more {
    color: #e53e3e;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Blog Newsletter CTA */
.blog-newsletter {
    padding: 3rem 0;
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
}

.newsletter-cta {
    text-align: center;
    color: white;
}

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

.newsletter-cta p {
    color: #a0aec0;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Blog Article Page */
.blog-article {
    padding: 2rem 0 4rem;
}

.article-header {
    margin-bottom: 3rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 2rem;
}

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

.back-link {
    color: #e53e3e;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 1rem;
    display: inline-block;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #c53030;
}

.meta-info {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #718096;
    flex-wrap: wrap;
}

.meta-info .category {
    background-color: #e53e3e;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.article-subtitle {
    font-size: 1.2rem;
    color: #4a5568;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Article Content */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
}

.article-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #1a365d;
    border-bottom: 2px solid #e53e3e;
    padding-bottom: 0.5rem;
}

.article-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #2d3748;
}

.article-content p {
    margin-bottom: 1.5rem;
    color: #4a5568;
}

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

.article-content li {
    margin-bottom: 0.5rem;
    color: #4a5568;
}

.article-content strong {
    color: #1a365d;
    font-weight: 600;
}

.article-content blockquote {
    border-left: 4px solid #e53e3e;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #4a5568;
    background-color: #f7fafc;
    padding: 1.5rem;
    border-radius: 8px;
}

.article-image {
    width: 100%;
    height: auto;
    max-width: 400px;
    margin: 2rem auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.article-tags {
    margin-bottom: 2rem;
}

.article-tags span {
    color: #718096;
    font-weight: 500;
    margin-right: 1rem;
}

.tag {
    display: inline-block;
    background-color: #f7fafc;
    color: #4a5568;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.tag:hover {
    background-color: #e2e8f0;
    color: #2d3748;
}

.article-navigation {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Responsive Design for Blog */
@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2rem;
    }

    .blog-hero p {
        font-size: 1rem;
    }

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

    .blog-card {
        padding: 1.25rem;
    }

    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

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

    .article-content h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }

    .article-content h3 {
        font-size: 1.25rem;
        margin-top: 1.5rem;
    }

    .meta-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .article-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .article-navigation .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 2rem 0;
    }

    .blog-posts {
        padding: 2rem 0;
    }

    .blog-newsletter {
        padding: 2rem 0;
    }

    .blog-card {
        padding: 1rem;
    }

    .blog-card h2 {
        font-size: 1.1rem;
    }

    .blog-footer {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .article-header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

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

    .article-content h2 {
        font-size: 1.25rem;
    }

    .article-content h3 {
        font-size: 1.1rem;
    }
}

/* Print styles for articles */
@media print {
    .article-header .back-link,
    .article-navigation,
    .article-tags {
        display: none;
    }

    .article-content {
        max-width: none;
        font-size: 12pt;
        line-height: 1.4;
    }

    .article-content h2 {
        border-bottom: 1pt solid #000;
        page-break-after: avoid;
    }

    .article-content h3 {
        page-break-after: avoid;
    }

    .article-image {
        max-width: 300px;
        box-shadow: none;
    }
}

/* Dark mode considerations (if implemented later) */
@media (prefers-color-scheme: dark) {
    /* Note: Dark mode was specifically requested NOT to be implemented */
    /* This section is left empty but could be used for future dark mode support */
}

/* High contrast mode for blog */
@media (prefers-contrast: high) {
    .blog-card {
        border: 2px solid #1a365d;
    }

    .blog-category {
        border: 1px solid #fff;
    }

    .tag {
        border: 1px solid #4a5568;
    }
}

/* Focus styles for blog elements */
.blog-card:focus-within {
    outline: 2px solid #e53e3e;
    outline-offset: 2px;
}

.tag:focus {
    outline: 2px solid #e53e3e;
    outline-offset: 2px;
}

/* Loading states (for future enhancement) */
.blog-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.blog-card.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #e2e8f0;
    border-top: 2px solid #e53e3e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Article table of contents (if needed) */
.article-toc {
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.article-toc h3 {
    color: #1a365d;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.article-toc ul {
    list-style: none;
    margin-left: 0;
}

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

.article-toc a {
    color: #4a5568;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-toc a:hover {
    color: #e53e3e;
}

/* Social sharing buttons (for future enhancement) */
.social-share {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: #f7fafc;
    border-radius: 8px;
    text-align: center;
}

.social-share h4 {
    color: #1a365d;
    margin-bottom: 1rem;
    font-size: 1rem;
}

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

.share-btn {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.share-btn.facebook {
    background-color: #4267B2;
    color: white;
}

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

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

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
