/* Blog-specific styles */

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

.blog-header h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 1rem;
}

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

/* Blog Main Layout */
.blog-main {
    padding: 60px 0;
    background: #ffffff;
}

.blog-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

/* Blog Cards */
.blog-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.blog-card.featured {
    border-color: #2563eb;
    position: relative;
}

.blog-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #2563eb;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 10;
}

.blog-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.blog-image svg,
.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 2rem;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.blog-category {
    background: #eff6ff;
    color: #2563eb;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.blog-date {
    color: #718096;
    font-size: 0.875rem;
}

.blog-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-content h2 a {
    color: inherit;
    transition: color 0.3s ease;
}

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

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

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

.read-time {
    color: #718096;
    font-size: 0.875rem;
}

.read-more {
    color: #2563eb;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Blog Newsletter */
.blog-newsletter {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    margin: 3rem 0;
}

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

.blog-newsletter p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

/* Blog Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-section {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.sidebar-section h3 {
    color: #1a202c;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 0.75rem;
}

.category-list a {
    color: #4a5568;
    transition: color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-list a:hover {
    color: #2563eb;
}

.category-list span {
    color: #718096;
    font-size: 0.875rem;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: #e2e8f0;
    color: #4a5568;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

/* Article Page Styles */
.blog-article {
    padding: 120px 0 60px;
    background: #ffffff;
}

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

.breadcrumb {
    margin-bottom: 2rem;
    color: #718096;
    font-size: 0.875rem;
}

.breadcrumb a {
    color: #2563eb;
}

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

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

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.article-category {
    background: #eff6ff;
    color: #2563eb;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.article-date {
    color: #718096;
}

.read-time {
    color: #718096;
    font-style: italic;
}

.article-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a202c;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.article-lead {
    font-size: 1.25rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 400;
}

.article-image {
    margin-bottom: 3rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.article-image svg,
.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Article Body Content */
.article-body {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #374151;
}

.article-body h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin: 3rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.article-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin: 2.5rem 0 1rem;
}

.article-body h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin: 2rem 0 1rem;
}

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

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

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

.article-body li strong {
    color: #1a202c;
}

.article-body blockquote {
    border-left: 4px solid #2563eb;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: #f8fafc;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.article-body code {
    background: #f1f5f9;
    color: #e11d48;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.article-body pre {
    background: #1e293b;
    color: #f1f5f9;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.article-body th,
.article-body td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.article-body th {
    background: #f8fafc;
    font-weight: 600;
    color: #1a202c;
}

.article-body tr:hover {
    background: #f8fafc;
}

/* Article CTA */
.article-cta {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    margin: 3rem 0;
    border: 1px solid #93c5fd;
}

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

.article-cta p {
    color: #4a5568;
    margin-bottom: 2rem;
}

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

.article-tags {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.article-tags span:first-child {
    font-weight: 600;
    color: #1a202c;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.article-share span:first-child {
    font-weight: 600;
    color: #1a202c;
}

.article-share a {
    color: #2563eb;
    font-weight: 500;
    transition: color 0.3s ease;
}

.article-share a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Related Articles */
.related-articles {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #e2e8f0;
}

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

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

.related-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    background: white;
}

.related-card h3 {
    margin-bottom: 1rem;
}

.related-card h3 a {
    color: #1a202c;
    transition: color 0.3s ease;
}

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

.related-card p {
    color: #4a5568;
    margin: 0;
}

/* Cookie Settings Button */
.cookie-settings-button {
    text-align: center;
    margin: 2rem 0;
}

/* Cookie Table */
.cookie-table {
    margin: 2rem 0;
    overflow-x: auto;
}

.cookie-table table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

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

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

.cookie-table tbody tr:hover {
    background: #f8fafc;
}

/* Responsive Design for Blog */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-sidebar {
        order: -1;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2.5rem;
    }
    
    .blog-header p {
        font-size: 1rem;
    }
    
    .blog-card {
        margin-bottom: 1.5rem;
    }
    
    .blog-content {
        padding: 1.5rem;
    }
    
    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-header h1 {
        font-size: 1.75rem;
    }
    
    .article-lead {
        font-size: 1.125rem;
    }
    
    .article-body {
        font-size: 1rem;
    }
    
    .article-body h2 {
        font-size: 1.5rem;
    }
    
    .article-body h3 {
        font-size: 1.25rem;
    }
    
    .article-tags,
    .article-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar-section {
        padding: 1.5rem;
    }
    
    .blog-newsletter {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .blog-header {
        padding: 100px 0 40px;
    }
    
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .blog-main {
        padding: 40px 0;
    }
    
    .article-header h1 {
        font-size: 1.5rem;
    }
    
    .article-body h2 {
        font-size: 1.25rem;
        margin: 2rem 0 1rem;
    }
    
    .article-cta {
        padding: 2rem 1.5rem;
    }
    
    .cookie-table {
        font-size: 0.875rem;
    }
    
    .cookie-table th,
    .cookie-table td {
        padding: 0.75rem 0.5rem;
    }
}

/* Print Styles for Articles */
@media print {
    .blog-header,
    .related-articles,
    .article-footer,
    .article-cta {
        display: none;
    }
    
    .article-content {
        max-width: none;
    }
    
    .article-body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .article-header h1 {
        font-size: 18pt;
        margin-bottom: 12pt;
    }
    
    .article-body h2 {
        font-size: 16pt;
        margin: 16pt 0 8pt;
    }
    
    .article-body h3 {
        font-size: 14pt;
        margin: 12pt 0 6pt;
    }
}
