.article-hero {
    position: relative;
    max-height: 60vh;
    min-height: 400px;
    overflow: hidden;
    margin-top: 0;
}

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

.article-hero-overlay {
    position: absolute;
    inset: 0;
}

body[data-theme="dark"] .article-hero-overlay,
body[data-theme="blue"] .article-hero-overlay,
body[data-theme="purple"] .article-hero-overlay {
    background: linear-gradient(180deg, rgb(10 10 15 / 95%) 0%, rgb(10 10 15 / 30%) 50%, rgb(0 0 0 / 80%) 90%, var(--bg-primary) 100%);
}

body[data-theme="light"] .article-hero-overlay {
    background: linear-gradient(180deg, rgb(10 10 15 / 95%) 0%, rgb(10 10 15 / 30%) 50%, rgb(255 255 255 / 90%) 90%, var(--bg-primary) 100%);
}

.article-header {
    position: relative;
    margin-top: -100px;
    z-index: 2;
    padding: 0 2rem;
}

.article-header-inner {
    max-width: 860px;
    margin: 0 auto;
}

.article-meta-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.article-meta-top .category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-cyan);
    padding: 0.25rem 0.75rem;
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 100px;
}

.article-meta-top .date {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.article-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.article-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.article-author .author-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-magenta);
}

.article-body {
    max-width: 860px;
    margin: 0 auto;
    padding: 3rem 2rem 6rem;
}

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

.article-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 3rem 0 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.article-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

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

.article-content blockquote {
    border-left: 3px solid transparent;
    border-image: var(--gradient-primary);
    border-image-slice: 1;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0 8px 8px 0;
}

.article-content blockquote p {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.article-content img {
    border-radius: 12px;
    margin: 2rem 0;
    border: 1px solid var(--glass-border);
    transition: all 0.4s ease;
}

.article-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.article-content li {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.article-content a {
    color: var(--accent-cyan);
    border-bottom: 1px solid rgba(0, 240, 255, 0.3);
}

.article-content a:hover {
    border-bottom-color: var(--accent-cyan);
}

.article-content code {
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent-cyan);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.article-content pre {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    border: 1px solid var(--glass-border);
    margin: 1.5rem 0;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: var(--text-secondary);
}

.article-footer {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

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

.back-link svg {
    width: 16px;
    height: 16px;
}

.related-articles {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.related-articles h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-item {
    padding: 1rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.related-item:hover {
    border-color: var(--glass-border-hover);
    transform: translateX(8px);
}

.related-item a {
    font-weight: 600;
    color: var(--text-primary);
}

.related-item span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    display: block;
}
