/* Article Page Styles */

/* Article Page Container */
.article-page {
    padding-top: 80px;
    min-height: 100vh;
}

/* Simple Article Container (for static pages like About, Terms, etc.) */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.article-container .article-header {
    text-align: center;
    padding: 60px 24px 40px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(59, 130, 246, 0.05) 100%);
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-bottom: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.article-container .article-header h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.article-subtitle {
    font-size: 1.15rem;
    color: #64748b;
    margin: 0;
}

/* Article Content Styles */
.article-content {
    padding-bottom: 80px;
}

.article-content section {
    margin-bottom: 40px;
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    margin-top: 48px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.article-content section:first-child h2 {
    margin-top: 0;
}

.article-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 32px;
    margin-bottom: 12px;
}

.article-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 16px;
}

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

.article-content li {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 10px;
}

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

.article-content a {
    color: #3b82f6;
    text-decoration: none;
}

.article-content a:hover {
    text-decoration: underline;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.highlight-box h2 {
    margin-top: 0 !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    font-size: 1.25rem;
}

.highlight-box p:last-child {
    margin-bottom: 0;
}

/* Legal Content adjustments */
.legal-content h2 {
    font-size: 1.35rem;
}

.legal-content section {
    margin-bottom: 32px;
}

/* Article Header */

.article-header {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(168, 85, 247, 0.05) 100%);
    border-bottom: 1px solid var(--border-subtle);
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9em;
    margin-bottom: 24px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--accent-secondary);
}

.article-meta-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.category-tag {
    padding: 6px 14px;
    background: var(--accent-gradient);
    color: white;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.read-time {
    color: var(--text-muted);
    font-size: 0.9em;
}

.article-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 900px;
}

.article-excerpt {
    font-size: 1.25em;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 800px;
    margin-bottom: 32px;
}

.article-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1em;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
}

.author-title {
    color: var(--text-muted);
    font-size: 0.85em;
}

.publish-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.publish-date {
    color: var(--text-secondary);
    font-size: 0.9em;
}

.update-date {
    color: var(--text-muted);
    font-size: 0.8em;
}

/* Hero Image */
.article-hero {
    padding: 40px 0;
}

.hero-image {
    height: 400px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(168, 85, 247, 0.1) 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-subtle);
}

.hero-icon {
    font-size: 8em;
}

/* Article Layout */
.article-content-wrapper {
    padding: 60px 0;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 60px;
}

/* Article Body */
.article-body {
    max-width: 720px;
}

.article-body p {
    color: var(--text-secondary);
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 24px;
}

.article-body p.lead {
    font-size: 1.3em;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.7;
    margin-bottom: 32px;
}

.article-body h2 {
    font-size: 1.75em;
    font-weight: 700;
    margin-top: 48px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.article-body h3 {
    font-size: 1.35em;
    font-weight: 700;
    margin-top: 36px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.article-body ul {
    list-style: none;
    padding: 0;
    margin-bottom: 24px;
}

.article-body ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 1.05em;
    line-height: 1.7;
}

.article-body ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-secondary);
    font-weight: 600;
}

.article-body ul li strong {
    color: var(--text-primary);
}

.article-body blockquote {
    margin: 40px 0;
    padding: 32px;
    background: var(--bg-card);
    border-left: 4px solid var(--accent-primary);
    border-radius: 0 16px 16px 0;
}

.article-body blockquote p {
    font-size: 1.2em;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.article-body blockquote cite {
    color: var(--text-muted);
    font-size: 0.9em;
    font-style: normal;
}

/* Info Box */
.info-box {
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid var(--border-accent);
    border-radius: 16px;
    padding: 24px;
    margin: 32px 0;
}

.info-box h4 {
    font-size: 1.1em;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.info-box p {
    margin-bottom: 0;
    font-size: 1em;
}

/* CTA Box */
.cta-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 32px;
    margin: 48px 0;
    text-align: center;
}

.cta-box h3 {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 12px;
}

.cta-box p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.btn-cta {
    display: inline-block;
    padding: 14px 32px;
    background: var(--accent-gradient);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

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

.sidebar-section {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-section h4 {
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 8px;
}

.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.share-btn:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
}

/* Mentioned Cards */
.mentioned-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mentioned-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-elevated);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.2s ease;
}

.mentioned-card:hover {
    background: var(--bg-hover);
    transform: translateX(4px);
}

.card-icon {
    font-size: 1.2em;
}

/* Table of Contents */
.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc li {
    margin-bottom: 12px;
}

.toc a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.2s ease;
    display: block;
    padding: 4px 0;
}

.toc a:hover {
    color: var(--accent-secondary);
}

/* Newsletter Sidebar */
.newsletter-sidebar p {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-bottom: 16px;
}

.newsletter-sidebar form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.newsletter-sidebar input {
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9em;
}

.newsletter-sidebar input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.newsletter-sidebar button {
    padding: 12px;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.newsletter-sidebar button:hover {
    transform: translateY(-2px);
}

/* Article Footer */
.article-footer-section {
    padding: 40px 0;
    border-top: 1px solid var(--border-subtle);
}

.article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-label {
    color: var(--text-muted);
    font-size: 0.9em;
}

.tag {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85em;
    transition: all 0.2s ease;
}

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

/* Related Articles */
.related-articles {
    padding: 80px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
}

.related-articles h2 {
    font-size: 1.75em;
    margin-bottom: 40px;
}

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

.related-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-md);
}

.related-image {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
}

.related-content {
    padding: 24px;
}

.related-content .category-tag {
    font-size: 0.7em;
    padding: 4px 10px;
    margin-bottom: 12px;
    display: inline-block;
}

.related-content h3 {
    font-size: 1.1em;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
    line-height: 1.4;
}

.related-content p {
    color: var(--text-muted);
    font-size: 0.9em;
    margin-bottom: 16px;
    line-height: 1.5;
}

.related-content a {
    color: var(--accent-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
    
    .article-sidebar {
        position: relative;
        top: 0;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .sidebar-section {
        margin-bottom: 0;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .article-header {
        padding: 40px 0 30px;
    }
    
    .article-header h1 {
        font-size: 1.75rem;
    }
    
    .article-excerpt {
        font-size: 1.1em;
    }
    
    .article-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .publish-info {
        align-items: flex-start;
    }
    
    .hero-image {
        height: 240px;
    }
    
    .hero-icon {
        font-size: 5em;
    }
    
    .article-body p {
        font-size: 1em;
    }
    
    .article-body h2 {
        font-size: 1.4em;
    }
    
    .article-sidebar {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}


