/* Article Page Styles */

/* Article Header */
.article-page {
    margin-top: 80px;
}

.article-header {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    padding: 3rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.article-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(99,102,241,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

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

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

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

.article-breadcrumb i {
    margin: 0 0.5rem;
    font-size: 0.8rem;
}

.article-meta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.category-badge {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-badge.ai {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.category-badge.data {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
}

.article-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.article-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 800px;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.author-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
}

.author-info h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.author-info p {
    margin: 0 0 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.author-social {
    display: flex;
    gap: 0.5rem;
}

.author-social a {
    color: var(--text-secondary);
    font-size: 1rem;
    transition: color 0.3s ease;
}

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

/* Article Content */
.article-content {
    padding: 4rem 0;
}

.article-content .container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    max-width: 1400px;
}

.article-body {
    max-width: none;
}

.article-image {
    margin: 2rem 0 3rem;
    text-align: center;
}

.image-placeholder {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 2px dashed var(--accent-color);
    border-radius: 15px;
    padding: 4rem 2rem;
    margin-bottom: 1rem;
}

.image-placeholder i {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.image-placeholder p {
    color: var(--text-secondary);
    font-style: italic;
}

figcaption {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
}

.article-text h2 {
    font-size: 2rem;
    font-weight: 600;
    margin: 3rem 0 1.5rem 0;
    color: var(--text-primary);
    position: relative;
    padding-left: 1rem;
}

.article-text h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border-radius: 2px;
}

.article-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    color: var(--text-primary);
}

.article-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.article-quote {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    border-left: 4px solid var(--accent-color);
    border-radius: 0 15px 15px 0;
}

.article-quote blockquote {
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.6;
    margin: 0;
    color: var(--text-primary);
    position: relative;
}

.article-quote blockquote::before {
    content: '"';
    font-size: 4rem;
    color: var(--accent-color);
    position: absolute;
    top: -1rem;
    left: -1rem;
    font-family: serif;
}

.article-highlight {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
}

.article-highlight h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.article-highlight ul {
    list-style: none;
    padding: 0;
}

.article-highlight li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.article-highlight li:last-child {
    border-bottom: none;
}

.article-stats-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 20px;
    padding: 2rem;
    margin: 3rem 0;
}

.article-stats-box h4 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--accent-color);
    font-size: 1.2rem;
}

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

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

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

.article-list li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    padding-left: 2rem;
}

.article-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.article-recommendations {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.recommendation {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recommendation:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.recommendation h4 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.recommendation i {
    font-size: 1.25rem;
}

.article-cta {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    margin: 4rem 0;
    color: white;
}

.article-cta h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.article-cta p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.article-cta .btn-primary {
    background: white;
    color: var(--accent-color);
    border: none;
    padding: 1rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

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

.sidebar-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.sidebar-section h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--accent-color);
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
}

.table-of-contents li {
    margin-bottom: 0.5rem;
}

.table-of-contents a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: block;
    padding: 0.25rem 0;
}

.table-of-contents a:hover,
.table-of-contents a.active {
    color: var(--accent-color);
}

.table-of-contents ul ul {
    margin-left: 1rem;
    margin-top: 0.5rem;
}

.share-buttons {
    display: grid;
    gap: 0.75rem;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.share-btn.linkedin {
    background: rgba(0, 119, 181, 0.1);
    color: #0077b5;
}

.share-btn.twitter {
    background: rgba(29, 161, 242, 0.1);
    color: #1da1f2;
}

.share-btn.facebook {
    background: rgba(24, 119, 242, 0.1);
    color: #1877f2;
}

.share-btn.copy {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-color);
}

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

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

.article-tags .tag {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.article-tags .tag:hover {
    background: var(--accent-color);
    color: white;
}

.related-articles {
    display: grid;
    gap: 1rem;
}

.related-article {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.related-article:last-child {
    border-bottom: none;
}

.related-article h4 {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

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

.related-article a:hover {
    color: var(--accent-color);
}

.related-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Article Footer */
.article-footer {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0;
}

.article-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.nav-article {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.1);
}

.nav-article.next {
    text-align: right;
}

.nav-content {
    flex: 1;
}

.nav-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
}

.nav-article i {
    color: var(--accent-color);
    font-size: 1.25rem;
}

.author-bio {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.author-bio .author-avatar img {
    width: 80px;
    height: 80px;
}

.author-details h3 {
    margin-bottom: 0.5rem;
    color: var(--accent-color);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.author-details h4 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.author-details p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.author-details .author-social a {
    font-size: 1.25rem;
    margin-right: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .article-content .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .article-sidebar {
        position: static;
        order: -1;
    }
    
    .sidebar-section {
        display: none;
    }
    
    .sidebar-section:first-child {
        display: block;
    }
}

@media (max-width: 768px) {
    .article-title {
        font-size: 2rem;
    }
    
    .article-subtitle {
        font-size: 1.1rem;
    }
    
    .article-meta-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-author {
        flex-direction: column;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .article-navigation {
        grid-template-columns: 1fr;
    }
    
    .nav-article.next {
        text-align: left;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .article-text h2 {
        font-size: 1.5rem;
    }
    
    .article-text p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .article-header {
        padding: 2rem 0 3rem;
    }
    
    .article-title {
        font-size: 1.75rem;
    }
    
    .article-content {
        padding: 2rem 0;
    }
    
    .article-quote blockquote {
        font-size: 1.1rem;
    }
    
    .article-cta {
        padding: 2rem;
    }
    
    .article-cta h3 {
        font-size: 1.25rem;
    }
}
