/* Article Page Styles */

.article-hero {
    padding: 120px 0 60px;
    background: 
        radial-gradient(circle at 30% 50%, rgba(0, 240, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(255, 0, 255, 0.1) 0%, transparent 50%);
}

.breadcrumb {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

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

.article-title-main {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 3rem;
}

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

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

.author-details h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.author-details p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Article Layout */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
    margin-top: -80px;
    position: relative;
}

.article-content {
    background: var(--dark-card);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid var(--border-color);
}

.featured-image-article {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 3rem;
}

.featured-image-article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content Styles */
.content-section h2 {
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
    color: var(--text-primary);
    position: relative;
    padding-left: 20px;
}

.content-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 30px;
    background: var(--gradient-1);
    border-radius: 3px;
}

.content-section h3 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1.2rem;
    color: var(--text-primary);
}

.content-section p {
    margin-bottom: 1.5rem;
    line-height: 1.9;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.content-section ul,
.content-section ol {
    margin: 1.5rem 0 1.5rem 2rem;
    line-height: 1.9;
    color: var(--text-secondary);
}

.content-section li {
    margin-bottom: 1rem;
}

.content-section li strong {
    color: var(--primary-color);
}

/* Highlight Boxes */
.highlight-box {
    background: rgba(0, 240, 255, 0.05);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.highlight-box.success {
    background: rgba(0, 255, 136, 0.05);
    border-left-color: #00ff88;
}

.highlight-box h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Stats Box */
.stats-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
    padding: 2rem;
    background: var(--dark-surface);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-item h4 {
    font-size: 2.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Quote Box */
.quote-box {
    background: var(--dark-surface);
    border-left: 4px solid var(--secondary-color);
    padding: 2rem;
    margin: 3rem 0;
    border-radius: 10px;
}

.quote-box blockquote {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.quote-box cite {
    color: var(--text-secondary);
    font-style: normal;
    font-size: 0.95rem;
}

/* Code Example */
.code-example {
    margin: 2rem 0;
}

.code-example h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.code-example pre {
    background: var(--dark-surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    overflow-x: auto;
}

.code-example code {
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Tags */
.article-tags {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.article-tags h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.tag {
    display: inline-block;
    background: var(--dark-surface);
    padding: 8px 20px;
    border-radius: 25px;
    margin: 0.5rem 0.5rem 0.5rem 0;
    color: var(--text-secondary);
    text-decoration: none;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    border-color: var(--primary-color);
}

/* Share Section */
.share-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.share-section h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    border: 1px solid;
}

.share-btn.twitter {
    background: #1DA1F2;
    color: white;
    border-color: #1DA1F2;
}

.share-btn.linkedin {
    background: #0077B5;
    color: white;
    border-color: #0077B5;
}

.share-btn.facebook {
    background: #4267B2;
    color: white;
    border-color: #4267B2;
}

.share-btn.email {
    background: var(--dark-surface);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Author Bio */
.author-bio {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    padding: 2rem;
    background: var(--dark-surface);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.author-bio img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    flex-shrink: 0;
}

.author-bio-content h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.author-title {
    color: var(--primary-color) !important;
    font-weight: 600;
    margin-bottom: 1rem !important;
}

.author-social {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.author-social a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.author-social a:hover {
    color: var(--primary-color);
}

/* Related Articles */
.related-articles {
    margin-top: 4rem;
}

.related-articles h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.related-card {
    background: var(--dark-surface);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

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

.related-content {
    padding: 1.5rem;
}

.related-category {
    display: inline-block;
    background: var(--gradient-1);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.related-card h4 {
    margin: 0;
}

.related-card h4 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-card h4 a:hover {
    color: var(--primary-color);
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

/* Table of Contents */
.toc {
    list-style: none;
}

.toc li {
    margin-bottom: 1rem;
}

.toc a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 0.5rem;
    border-radius: 5px;
}

.toc a:hover {
    color: var(--primary-color);
    background: rgba(0, 240, 255, 0.05);
    padding-left: 1rem;
}

/* Newsletter Widget */
.newsletter-widget form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-widget input {
    padding: 12px 20px;
    background: var(--dark-surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    outline: none;
    font-size: 0.95rem;
}

.newsletter-widget input:focus {
    border-color: var(--primary-color);
}

.newsletter-widget button {
    width: 100%;
}

/* Popular Widget */
.popular-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.popular-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 10px;
}

.popular-item:hover {
    background: rgba(0, 240, 255, 0.05);
}

.popular-number {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
}

.popular-item h4 {
    margin: 0 0 0.5rem;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.popular-views {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
    
    .article-sidebar {
        position: static;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-box {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .article-title-main {
        font-size: 2.5rem;
    }
    
    .article-subtitle {
        font-size: 1.1rem;
    }
    
    .article-content {
        padding: 2rem 1.5rem;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .author-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .article-title-main {
        font-size: 2rem;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        text-align: center;
    }
}
