/* Article Styles */

/* Header styling for article pages */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

body[data-theme="dark"] header {
    background: rgba(42, 52, 65, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body[data-theme="dark"] .article-content {
    background: #1a1a1a;
}

body[data-theme="dark"] .article-header,
body[data-theme="dark"] .article-body {
    background: #2a2a2a;
    color: #e0e0e0;
}

body[data-theme="dark"] .article-header h1 {
    color: #ffffff;
}

body[data-theme="dark"] .article-excerpt {
    color: #b0b0b0;
}

body[data-theme="dark"] .article-body h2 {
    color: #ffffff;
}

body[data-theme="dark"] .article-body h3 {
    color: #ffffff;
}

/* Active link styling for article pages */
.menu a.active {
    color: #0066cc !important;
    font-weight: 600;
    position: relative;
}

.menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #0066cc;
    border-radius: 1px;
}
.article-content {
    padding: 100px 0 80px;
    background: #f8f9fa;
    min-height: 100vh;
    margin-top: 80px;
}

.article-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.article-category {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-date,
.article-read-time {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 0.9rem;
}

.article-date i,
.article-read-time i {
    color: #667eea;
}

.article-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-excerpt {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.article-image {
    margin-bottom: 50px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

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

.article-image:hover img {
    transform: scale(1.02);
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.article-body h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #667eea;
}

.article-body h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #444;
    margin: 30px 0 15px;
}

.article-body p {
    margin-bottom: 20px;
    color: #555;
    font-size: 1.1rem;
}

.article-body ul,
.article-body ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.article-body li {
    margin-bottom: 10px;
    color: #555;
}

.article-body strong {
    color: #333;
    font-weight: 600;
}

/* Checklist Styles */
.checklist {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
    border-left: 4px solid #667eea;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.checklist-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.checklist-item i {
    color: #4CAF50;
    font-size: 1.2rem;
    min-width: 20px;
}

.checklist-item span {
    color: #333;
    font-weight: 500;
}

/* FAQ Styles */
.faq-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.faq-item h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.faq-item p {
    color: #555;
    margin: 0;
}

/* CTA Section */
.article-cta {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    margin: 50px 0;
}

.article-cta h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.article-cta p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.article-cta .btn {
    background: white;
    color: #667eea;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.article-cta .btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Article Footer */
.article-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.article-tags {
    margin-bottom: 30px;
}

.article-tags .tag {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.article-tags .tag:hover {
    background: #667eea;
    color: white;
}

.article-share h4 {
    margin-bottom: 15px;
    color: #333;
}

.share-buttons {
    display: flex;
    gap: 15px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.share-btn.facebook { background: #3b5998; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.email { background: #666; }

.share-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

.related-articles h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #333;
}

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

.related-post {
    background: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.related-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.related-post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-content {
    padding: 20px;
}

.related-content h4 {
    margin-bottom: 10px;
}

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

.related-content h4 a:hover {
    color: #667eea;
}

.related-content p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Dark Mode Support */
body[data-theme="dark"] .article-content {
    background: #1a1a1a;
}

body[data-theme="dark"] .article-body {
    background: #2d2d2d;
    color: #e0e0e0;
}

body[data-theme="dark"] .article-header h1 {
    color: #e0e0e0;
}

body[data-theme="dark"] .article-excerpt {
    color: #b0b0b0;
}

body[data-theme="dark"] .article-body h2,
body[data-theme="dark"] .article-body h3 {
    color: #e0e0e0;
}

body[data-theme="dark"] .article-body p,
body[data-theme="dark"] .article-body li {
    color: #b0b0b0;
}

body[data-theme="dark"] .checklist {
    background: #2d2d2d;
}

body[data-theme="dark"] .checklist-item {
    background: #404040;
}

body[data-theme="dark"] .faq-item {
    background: #2d2d2d;
}

body[data-theme="dark"] .related-articles {
    background: #1a1a1a;
}

body[data-theme="dark"] .related-articles h3 {
    color: #e0e0e0;
}

body[data-theme="dark"] .related-post {
    background: #2d2d2d;
}

body[data-theme="dark"] .related-content h4 a {
    color: #e0e0e0;
}

body[data-theme="dark"] .related-content p {
    color: #b0b0b0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-content {
        padding: 100px 0 60px;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .article-excerpt {
        font-size: 1rem;
    }
    
    .article-body {
        padding: 30px 20px;
    }
    
    .article-body h2 {
        font-size: 1.5rem;
    }
    
    .article-body h3 {
        font-size: 1.2rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .checklist {
        padding: 20px;
    }
    
    .article-cta {
        padding: 30px 20px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .article-image img {
        height: 250px;
    }
    
    .article-body {
        padding: 20px 15px;
    }
    
    .share-buttons {
        justify-content: center;
    }
}
