/* Blog-specific styles */

/* Blog Hero */
.blog-hero {
    margin-top: 80px;
    padding: 60px 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    text-align: center;
}

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

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

/* Blog Posts Grid */
.blog-posts {
    padding: 80px 0;
    background-color: #f8fafc;
}

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

.blog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.blog-image {
    height: 200px;
    overflow: hidden;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-image img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #64748b;
}

.blog-date {
    color: #64748b;
}

.blog-category {
    background-color: #dbeafe;
    color: #1d4ed8;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.blog-card h2 {
    margin-bottom: 1rem;
    line-height: 1.3;
}

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

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

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

.read-more {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #1d4ed8;
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(4px);
}

/* Article Page */
.blog-article {
    margin-top: 80px;
    padding: 40px 0;
    background-color: white;
}

.article-header {
    margin-bottom: 3rem;
}

.breadcrumb {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: #2563eb;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 0.5rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #64748b;
}

.article-date {
    color: #64748b;
}

.article-category {
    background-color: #dbeafe;
    color: #1d4ed8;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.article-read-time {
    color: #64748b;
}

.blog-article h1 {
    font-size: 2.5rem;
    color: #1e293b;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.article-intro {
    font-size: 1.125rem;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f8fafc;
    border-left: 4px solid #2563eb;
    border-radius: 0 8px 8px 0;
}

.article-image {
    margin: 2rem 0;
    text-align: center;
    background-color: #f8fafc;
    padding: 2rem;
    border-radius: 10px;
}

.article-image img {
    max-width: 300px;
    height: auto;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.article-content h2 {
    font-size: 1.8rem;
    color: #1e293b;
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.article-content h3 {
    font-size: 1.4rem;
    color: #374151;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content h4 {
    font-size: 1.2rem;
    color: #4b5563;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

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

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

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

.article-content li strong {
    color: #1e293b;
}

.article-content a {
    color: #2563eb;
    text-decoration: underline;
}

.article-content a:hover {
    color: #1d4ed8;
}

/* Article Elements */
.article-tip,
.article-warning {
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: 10px;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.article-tip {
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.article-tip i {
    color: #059669;
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.article-warning {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
}

.article-warning i {
    color: #dc2626;
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.article-tip h4,
.article-warning h4 {
    margin: 0 0 0.5rem 0;
    color: #1e293b;
}

.article-tip p,
.article-warning p {
    margin: 0;
    color: #374151;
}

.article-pricing {
    background-color: #f0f9ff;
    border: 1px solid #7dd3fc;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.article-pricing h4 {
    color: #0c4a6e;
    margin-bottom: 1rem;
}

.article-pricing ul {
    margin-bottom: 1rem;
}

.article-pricing li {
    color: #0f172a;
}

.article-pricing p {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
}

.comparison-table {
    overflow-x: auto;
    margin: 2rem 0;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.comparison-table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #1e293b;
}

.comparison-table td {
    color: #374151;
}

.decision-guide {
    background-color: #f8fafc;
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
}

.decision-guide h3 {
    color: #1e293b;
    margin-bottom: 1rem;
}

.decision-guide ul {
    list-style: none;
    padding-left: 0;
}

.decision-guide li {
    margin-bottom: 0.5rem;
    color: #374151;
    padding-left: 1.5rem;
    position: relative;
}

.decision-guide li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #16a34a;
    font-weight: bold;
}

.article-cta {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin: 3rem 0;
}

.article-cta h3 {
    color: white;
    margin-bottom: 1rem;
}

.article-cta p {
    color: #dbeafe;
    margin-bottom: 1.5rem;
}

.article-cta .btn-primary {
    background-color: white;
    color: #2563eb;
}

.article-cta .btn-primary:hover {
    background-color: #f8fafc;
}

/* Article Tags */
.article-tags {
    margin: 3rem 0;
    padding: 1.5rem;
    background-color: #f8fafc;
    border-radius: 10px;
}

.article-tags h4 {
    margin-bottom: 1rem;
    color: #1e293b;
}

.tag {
    display: inline-block;
    background-color: #e2e8f0;
    color: #475569;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin: 0.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: #2563eb;
    color: white;
}

/* Article Navigation */
.article-navigation {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0;
    gap: 2rem;
}

.nav-prev,
.nav-next {
    flex: 1;
}

.nav-prev a,
.nav-next a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background-color: #f8fafc;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.nav-prev a:hover,
.nav-next a:hover {
    background-color: #2563eb;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

.nav-next a {
    flex-direction: row-reverse;
    text-align: right;
}

.nav-prev i,
.nav-next i {
    color: #2563eb;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.nav-prev a:hover i,
.nav-next a:hover i {
    color: white;
}

.nav-prev span,
.nav-next span {
    font-size: 0.9rem;
    color: #64748b;
    display: block;
    margin-bottom: 0.25rem;
}

.nav-prev strong,
.nav-next strong {
    color: #1e293b;
    font-weight: 600;
}

.nav-prev a:hover span,
.nav-next a:hover span,
.nav-prev a:hover strong,
.nav-next a:hover strong {
    color: white;
}

/* Related Articles */
.related-articles {
    padding: 60px 0;
    background-color: #f8fafc;
}

.related-articles h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1e293b;
}

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

.related-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.related-card:hover {
    transform: translateY(-3px);
}

.related-image {
    height: 150px;
    overflow: hidden;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-image img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.related-content {
    padding: 1.5rem;
}

.related-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    line-height: 1.3;
}

.related-content a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-content a:hover {
    color: #2563eb;
}

.related-content p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* Responsive Design for Blog */
@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-article h1 {
        font-size: 2rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-content h3 {
        font-size: 1.25rem;
    }
    
    .article-meta {
        flex-wrap: wrap;
    }
    
    .article-navigation {
        flex-direction: column;
    }
    
    .nav-next a {
        flex-direction: row;
        text-align: left;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 40px 0;
    }
    
    .blog-hero h1 {
        font-size: 1.75rem;
    }
    
    .blog-posts {
        padding: 40px 0;
    }
    
    .blog-card {
        margin: 0 -10px;
    }
    
    .article-tip,
    .article-warning {
        margin: 1.5rem -15px;
        border-radius: 0;
        padding: 1rem 15px;
    }
    
    .comparison-table {
        font-size: 0.9rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
    }
}
