/* Enhanced Article Styles for SEO and User Experience */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    color: #e0e0e0;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.article-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(26, 26, 46, 0.9);
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}



/* Article Header */
.article-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 2rem 0 1.5rem 0;
    border-bottom: 2px solid rgba(0, 212, 255, 0.3);
}

.article-title {
    font-size: 2.5rem;
    color: #fff;
    margin: 0 0 1rem 0;
    line-height: 1.2;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5), 0 0 40px rgba(0, 212, 255, 0.3);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

.article-subtitle {
    font-size: 1.3rem;
    color: #b8b8b8;
    margin: 0 0 1.5rem 0;
    font-weight: 300;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.article-date,
.article-category,
.reading-time {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.article-date:hover,
.article-category:hover,
.reading-time:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

/* Title Glow Animation */
@keyframes titleGlow {
    0% {
        text-shadow: 0 0 20px rgba(0, 212, 255, 0.5), 0 0 40px rgba(0, 212, 255, 0.3);
    }
    100% {
        text-shadow: 0 0 25px rgba(0, 212, 255, 0.7), 0 0 50px rgba(0, 212, 255, 0.4);
    }
}

/* Article Content */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content section {
    margin-bottom: 2.5rem;
}

.article-content h2 {
    color: #00d4ff;
    font-size: 1.8rem;
    margin: 2rem 0 1rem 0;
    border-left: 4px solid #00d4ff;
    padding-left: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.article-content h2:hover {
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    border-left-color: #fff;
}

.article-content h3 {
    color: #00d4ff;
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem 0;
}

.article-content h4 {
    color: #00d4ff;
    font-size: 1.2rem;
    margin: 1.2rem 0 0.8rem 0;
}

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

.article-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.8rem;
    color: #e0e0e0;
}

.article-content strong {
    color: #fff;
    font-weight: 600;
}

.article-content a {
    color: #00d4ff;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
}

.article-content a:hover {
    color: #fff;
    border-bottom-color: #00d4ff;
}

/* Images and Figures */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.article-content figure {
    margin: 2rem 0;
    text-align: center;
}

.article-content figcaption {
    color: #b8b8b8;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Featured Articles Grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.featured-article {
    background: rgba(0, 212, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
}

.featured-article:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 212, 255, 0.2);
}

.featured-article h3 {
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
}

.featured-article h3 a {
    color: #00d4ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-article:hover h3 a {
    color: #fff;
}

.article-excerpt {
    color: #b8b8b8;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Category Sections */
.category-section {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.category-section h3 {
    color: #00d4ff;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.article-item {
    background: rgba(0, 212, 255, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
}

.article-item:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.5);
    transform: translateX(5px);
}

.article-item h4 {
    margin: 0 0 0.8rem 0;
    font-size: 1.1rem;
}

.article-item h4 a {
    color: #00d4ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-item:hover h4 a {
    color: #fff;
}

.article-item p {
    color: #b8b8b8;
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Article Meta Small */
.article-meta-small {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.article-meta-small .article-date,
.article-meta-small .article-category,
.article-meta-small .reading-time {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.4);
    font-size: 0.8rem;
    font-weight: 500;
}

/* Article Navigation */
.article-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.article-navigation.top {
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    margin-bottom: 2rem;
}

.article-navigation.bottom {
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    margin-top: 2rem;
    padding-top: 2rem;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #00d4ff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.nav-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.nav-link:hover svg {
    transform: scale(1.1);
}

.nav-link.home {
    background: rgba(0, 212, 255, 0.1);
}

.nav-link.blog {
    background: rgba(0, 212, 255, 0.05);
}

/* Related Articles - Now Conditional */
.related-articles {
    margin: 2.5rem 0;
    padding: 2rem;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.related-articles h2 {
    color: #00d4ff;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.6rem;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

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

.related-article {
    background: rgba(0, 212, 255, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.related-article:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
}

.related-article h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

.related-article h3 a {
    color: #00d4ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-article:hover h3 a {
    color: #fff;
}

.related-article p {
    color: #b8b8b8;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* Author Bio */
.author-bio {
    margin: 2.5rem 0;
    padding: 2rem;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.author-bio h2 {
    color: #00d4ff;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.6rem;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(0, 212, 255, 0.3);
    flex-shrink: 0;
}

.author-details h3 {
    color: #fff;
    margin: 0 0 1rem 0;
    font-size: 1.4rem;
}

.author-details p {
    color: #b8b8b8;
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

.author-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.author-links a {
    color: #00d4ff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(0, 212, 255, 0.4);
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.author-links a:hover {
    background: rgba(0, 212, 255, 0.3);
    border-color: #00d4ff;
    color: #fff;
}

/* Article Footer */
.article-footer {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    text-align: center;
    color: #b8b8b8;
    font-size: 0.9rem;
}

.article-footer p {
    margin: 0.5rem 0;
}



/* Responsive Design */
@media (max-width: 768px) {
    .article-container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-subtitle {
        font-size: 1.1rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .author-info {
        flex-direction: column;
        text-align: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .article-meta-small {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .article-navigation {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .nav-link {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .article-container {
        margin: 0.5rem;
        padding: 1rem;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    

    
    .featured-article,
    .category-section,
    .article-item {
        padding: 1rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .article-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .related-articles,
    .author-bio {
        display: none;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for keyboard navigation */
a:focus,
button:focus {
    outline: 2px solid #00d4ff;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .article-title {
        color: #000;
        text-shadow: none;
    }
    
    .article-content h2,
    .article-content h3,
    .article-content h4 {
        color: #000;
    }
    
    .article-content p,
    .article-content li {
        color: #000;
    }
}


