/* Blog-specific styles */

/* Blog Hero */
.blog-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

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

.blog-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Main Layout */
.blog-main {
    padding: 80px 0;
    background: white;
}

.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

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

.blog-article-card {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.article-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.article-content {
    padding: 1.5rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.article-date {
    color: #666;
    font-size: 0.9rem;
}

.article-category {
    background-color: #3498db;
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.article-content h2 {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.article-content h2 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-content h2 a:hover {
    color: #3498db;
}

.article-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

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

.read-more:hover {
    color: #2980b9;
}

.article-stats {
    color: #999;
    font-size: 0.9rem;
}

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

.sidebar-widget {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e1e8ed;
}

.sidebar-widget h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.2rem;
}

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

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

.category-list a {
    color: #99adda;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0;
    transition: color 0.3s ease;
}

.category-list a:hover {
    color: #3498db;
}

.category-list span {
    background: #ddd;
    color: #666;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

.popular-articles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-article h4 {
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.popular-article h4 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.popular-article h4 a:hover {
    color: #3498db;
}

.popular-date {
    color: #999;
    font-size: 0.8rem;
}

.newsletter-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.newsletter-widget h3 {
    color: white;
}

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

.sidebar-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-newsletter-form input {
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
}

.sidebar-newsletter-form button {
    background-color: #e74c3c;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.sidebar-newsletter-form button:hover {
    background-color: #c0392b;
}

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

.tag {
    background: #e1e8ed;
    color: #99adda;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #3498db;
    color: white;
}

/* Article Pages */
.article-main {
    padding: 120px 0 80px;
    background: white;
}

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

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

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

.article-breadcrumb a {
    color: #3498db;
    text-decoration: none;
}

.article-breadcrumb a:hover {
    color: #2980b9;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.article-date,
.article-category,
.article-reading-time {
    font-size: 0.9rem;
    color: #666;
}

.article-category {
    background-color: #3498db;
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
}

.article-header h1 {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #2c3e50;
}

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

.article-body {
    line-height: 1.8;
    font-size: 1.05rem;
}

.article-body h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.6rem;
}

.article-body h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #34495e;
    font-size: 1.3rem;
}

.article-body h4 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #34495e;
    font-size: 1.1rem;
}

.article-body p {
    margin-bottom: 1.2rem;
    color: #444;
}

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

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

.article-body strong {
    color: #2c3e50;
}

.article-body a {
    color: #3498db;
    text-decoration: underline;
}

.article-body a:hover {
    color: #2980b9;
}

.article-body blockquote {
    border-left: 4px solid #3498db;
    padding-left: 1rem;
    margin: 1.5rem 0;
    background: #f8f9fa;
    padding: 1rem 1rem 1rem 2rem;
    border-radius: 0 5px 5px 0;
}

.article-body blockquote p {
    margin-bottom: 0;
    font-style: italic;
    color: #99adda;
}

/* Tables in articles */
.savings-table,
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 5px;
    overflow: hidden;
}

.savings-table th,
.savings-table td,
.price-table th,
.price-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e1e8ed;
}

.savings-table th,
.price-table th {
    background-color: #3498db;
    color: white;
    font-weight: 600;
}

.savings-table tbody tr:hover,
.price-table tbody tr:hover {
    background-color: #f8f9fa;
}

.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e1e8ed;
}

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

.article-share h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.article-share a {
    display: inline-block;
    margin-right: 1rem;
    padding: 8px 15px;
    background: #f8f9fa;
    color: #99adda;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.article-share a:hover {
    background: #3498db;
    color: white;
}

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

.article-navigation a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.article-navigation a:hover {
    color: #2980b9;
}

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

.related-articles h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

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

.related-article {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e1e8ed;
    transition: all 0.3s ease;
}

.related-article:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.related-article h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.related-article h4 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-article h4 a:hover {
    color: #3498db;
}

.related-article p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Responsive Design for Blog */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-sidebar {
        order: -1;
    }
    
    .sidebar-widget {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 100px 0 60px;
    }
    
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .blog-main {
        padding: 60px 0;
    }
    
    .article-main {
        padding: 100px 0 60px;
    }
    
    .article-header h1 {
        font-size: 1.8rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .article-body {
        font-size: 1rem;
    }
    
    .article-navigation {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .related-articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-share a {
        display: block;
        margin-bottom: 0.5rem;
        margin-right: 0;
        text-align: center;
    }
    
    .savings-table,
    .price-table {
        font-size: 0.9rem;
    }
    
    .savings-table th,
    .savings-table td,
    .price-table th,
    .price-table td {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .blog-hero h1 {
        font-size: 1.6rem;
    }
    
    .blog-hero p {
        font-size: 1rem;
    }
    
    .article-header h1 {
        font-size: 1.5rem;
    }
    
    .article-subtitle {
        font-size: 1rem;
    }
    
    .sidebar-widget {
        padding: 1rem;
    }
    
    .tag-cloud {
        gap: 0.3rem;
    }
    
    .tag {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    
    .article-body h2 {
        font-size: 1.4rem;
    }
    
    .article-body h3 {
        font-size: 1.2rem;
    }
    
    .savings-table,
    .price-table {
        font-size: 0.8rem;
    }
    
    .savings-table th,
    .savings-table td,
    .price-table th,
    .price-table td {
        padding: 6px 8px;
    }
}

/* Print styles for blog pages */
@media print {
    .blog-hero,
    .blog-sidebar,
    .article-footer,
    .related-articles {
        display: none !important;
    }
    
    .blog-layout {
        grid-template-columns: 1fr;
    }
    
    .article-header h1 {
        font-size: 18pt;
        margin-bottom: 0.5rem;
    }
    
    .article-body {
        font-size: 11pt;
        line-height: 1.4;
    }
    
    .article-body h2 {
        font-size: 14pt;
        margin-top: 1rem;
    }
    
    .article-body h3 {
        font-size: 12pt;
    }
    
    .savings-table,
    .price-table {
        font-size: 9pt;
    }
}
