/* Blog Specific Styles */

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

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

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

/* Blog Content */
.blog-content {
    padding: 60px 0;
    background-color: #ffffff;
}

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

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

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

.blog-card-image {
    height: 200px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.blog-card-image img {
    max-width: 80px;
    max-height: 80px;
    opacity: 0.7;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.blog-category {
    background-color: #e74c3c;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-weight: 500;
}

.blog-date {
    color: #666;
}

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

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

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

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

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

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

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

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

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

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

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

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

.article-category {
    background-color: #e74c3c;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-weight: 500;
}

.article-date,
.article-read-time {
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

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

.article-intro {
    font-size: 1.125rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-style: italic;
    border-left: 4px solid #e74c3c;
    padding-left: 1.5rem;
}

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

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

.article-image img {
    max-width: 120px;
    max-height: 120px;
    opacity: 0.7;
}

.article-content h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #e74c3c;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 0.5rem;
}

.article-content h3 {
    font-size: 1.375rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.article-content h4 {
    font-size: 1.125rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.article-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: #444;
}

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

.article-content li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: #444;
}

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

.article-content blockquote {
    background-color: #f8f9fa;
    border-left: 4px solid #e74c3c;
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 0 5px 5px 0;
}

.article-content blockquote p {
    margin-bottom: 0;
}

.article-content code {
    background-color: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

.article-content pre {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-content pre code {
    background-color: transparent;
    padding: 0;
}

/* Article CTA */
.article-cta {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 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: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
}

.article-cta .btn {
    background-color: white;
    color: #e74c3c;
}

.article-cta .btn:hover {
    background-color: #f8f9fa;
    color: #c0392b;
}

/* Article Navigation */
.article-nav {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

/* Table Styles for Articles */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.9rem;
}

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

.article-content th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #1a1a1a;
}

.article-content tr:hover {
    background-color: #f8f9fa;
}

/* Highlight Boxes */
.highlight-box {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.highlight-box.info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.highlight-box.warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.highlight-box.success {
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.highlight-box.danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Related Articles */
.related-articles {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin: 3rem 0;
}

.related-articles h3 {
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.related-articles ul {
    list-style: none;
    padding: 0;
}

.related-articles li {
    margin-bottom: 0.75rem;
}

.related-articles a {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 500;
}

.related-articles a:hover {
    text-decoration: underline;
}

/* Share Buttons */
.share-buttons {
    margin: 2rem 0;
    text-align: center;
}

.share-buttons h4 {
    margin-bottom: 1rem;
}

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

.share-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.share-link:hover {
    transform: translateY(-2px);
    color: white;
}

.share-link.facebook {
    background-color: #3b5998;
}

.share-link.twitter {
    background-color: #1da1f2;
}

.share-link.linkedin {
    background-color: #0077b5;
}

.share-link.whatsapp {
    background-color: #25d366;
}

/* Author Info */
.author-info {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 2rem;
    margin: 3rem 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #e74c3c;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    flex-shrink: 0;
}

.author-details h4 {
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.author-details p {
    color: #666;
    margin-bottom: 0;
}

/* Tags */
.article-tags {
    margin: 2rem 0;
}

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

.tags-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background-color: #f8f9fa;
    color: #666;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* Responsive Blog Styles */
@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card-image {
        height: 150px;
    }
    
    .article h1 {
        font-size: 2rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .article-content {
        padding: 0 1rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-content h3 {
        font-size: 1.25rem;
    }
    
    .author-info {
        flex-direction: column;
        text-align: center;
    }
    
    .share-links {
        flex-direction: column;
    }
    
    .article-content table {
        font-size: 0.8rem;
    }
    
    .article-content th,
    .article-content td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .blog-header {
        padding: 100px 0 40px;
    }
    
    .blog-header h1 {
        font-size: 1.75rem;
    }
    
    .blog-content {
        padding: 40px 0;
    }
    
    .blog-card-content {
        padding: 1rem;
    }
    
    .article {
        padding: 100px 0 60px;
    }
    
    .article h1 {
        font-size: 1.75rem;
    }
    
    .article-intro {
        font-size: 1rem;
        padding-left: 1rem;
    }
    
    .article-cta {
        padding: 1.5rem;
    }
    
    .highlight-box {
        padding: 1rem;
    }
    
    .author-info {
        padding: 1.5rem;
    }
    
    .author-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Print Styles for Articles */
@media print {
    .blog-header,
    .article-nav,
    .share-buttons,
    .article-cta {
        display: none;
    }
    
    .article {
        padding: 0;
    }
    
    .article-content {
        max-width: none;
        padding: 0;
    }
    
    .article h1 {
        font-size: 24pt;
        page-break-after: avoid;
    }
    
    .article-content h2,
    .article-content h3 {
        page-break-after: avoid;
    }
    
    .article-content {
        font-size: 11pt;
        line-height: 1.4;
    }
    
    .highlight-box {
        border: 2px solid #333;
        page-break-inside: avoid;
    }
}

/* Dark Mode Support (if implemented) */
@media (prefers-color-scheme: dark) {
    .blog-header {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    }
    
    .blog-header h1 {
        color: white;
    }
    
    .blog-header p {
        color: #bdc3c7;
    }
    
    .blog-card {
        background-color: #34495e;
        color: white;
    }
    
    .blog-card h2 a {
        color: white;
    }
    
    .blog-card p {
        color: #bdc3c7;
    }
    
    .article-content {
        color: #ecf0f1;
    }
    
    .article-content h2,
    .article-content h3,
    .article-content h4 {
        color: #ecf0f1;
    }
    
    .article-content p,
    .article-content li {
        color: #bdc3c7;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .blog-card,
    .share-link {
        transition: none;
    }
    
    .blog-card:hover,
    .share-link:hover {
        transform: none;
    }
}

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

.read-more:focus,
.share-link:focus,
.tag:focus {
    outline: 2px solid #e74c3c;
    outline-offset: 2px;
}
