/* Article-specific styles - Stripe/Google Blog inspired */
.article-container {
    padding: var(--spacing-xl) 0;
    background: transparent;
    position: relative;
    z-index: 1;
}

.article-header {
    max-width: 720px;
    margin: 0 auto var(--spacing-xl);
    text-align: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.back-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.article-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1.5px;
}

.article-meta {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.article-meta time {
    color: rgba(255, 255, 255, 0.7);
}

.article-content {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.article-content h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
    letter-spacing: -1px;
}

.article-content h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    color: #ffffff;
    line-height: 1.4;
    letter-spacing: -0.5px;
}

.article-content h3 {
    font-size: clamp(1.375rem, 2vw, 1.75rem);
    font-weight: 600;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    color: #ffffff;
    letter-spacing: -0.3px;
}

.article-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.95);
}

.article-content p {
    margin-bottom: var(--spacing-md);
    color: rgba(255, 255, 255, 0.85);
}

.article-content ul,
.article-content ol {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-md);
    color: rgba(255, 255, 255, 0.85);
}

.article-content li {
    margin-bottom: var(--spacing-xs);
    line-height: 1.8;
}

.article-content li::marker {
    color: var(--primary-color);
}

.article-content a {
    color: var(--primary-light);
    text-decoration: none;
    border-bottom: 1px solid rgba(99, 91, 255, 0.3);
    transition: all 0.3s;
}

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

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

.article-content em {
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

/* Code blocks - Stripe/Google style */
.article-content code {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.9em;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Source Code Pro', monospace;
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-content pre {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    padding: var(--spacing-md);
    border-radius: 12px;
    overflow-x: auto;
    margin: var(--spacing-lg) 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.article-content pre::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-cyan));
    border-radius: 12px 12px 0 0;
}

.article-content pre code {
    background: none;
    padding: 0;
    border: none;
    color: #e0e0e0;
    font-size: 0.9rem;
    line-height: 1.6;
    display: block;
}

/* Prism.js syntax highlighting overrides - Stripe/Google style */
.article-content pre[class*="language-"] {
    background: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

.article-content code[class*="language-"] {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    color: #e0e0e0 !important;
}

/* Prism theme overrides for dark theme */
.article-content pre[class*="language-"] code[class*="language-"] {
    text-shadow: none !important;
}

/* Syntax highlighting colors - modern dark theme */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #6a737d !important;
    font-style: italic;
}

.token.punctuation {
    color: #e0e0e0 !important;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
    color: #79b8ff !important;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
    color: #9ecbff !important;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
    color: #ffab70 !important;
}

.token.atrule,
.token.attr-value,
.token.keyword {
    color: #f97583 !important;
}

.token.function,
.token.class-name {
    color: #b392f0 !important;
}

.token.regex,
.token.important,
.token.variable {
    color: #ffab70 !important;
}

/* Blockquotes */
.article-content blockquote {
    border-left: 3px solid var(--primary-color);
    padding-left: var(--spacing-md);
    margin: var(--spacing-lg) 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--spacing-md);
    border-radius: 8px;
    border-left-width: 4px;
}

.article-content blockquote p {
    margin-bottom: 0;
}

/* Images */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: var(--spacing-lg) 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Tables */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-lg) 0;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.article-content table th,
.article-content table td {
    padding: var(--spacing-sm);
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.article-content table th {
    background: rgba(99, 91, 255, 0.2);
    font-weight: 600;
    color: #ffffff;
}

.article-content table tr:last-child td {
    border-bottom: none;
}

/* Articles listing page - Stripe blog style */
.articles-page {
    padding: var(--spacing-xl) 0;
    background: transparent;
    position: relative;
    z-index: 1;
}

.articles-list {
    max-width: 800px;
    margin: 0 auto;
}

.article-preview {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.article-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-cyan));
    opacity: 0;
    transition: opacity 0.3s;
}

.article-preview:hover::before {
    opacity: 1;
}

.article-preview:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(99, 91, 255, 0.2);
}

.article-preview h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.article-preview h2 a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-preview h2 a:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-preview-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
    font-size: 1.05rem;
}

.article-preview-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .article-title {
        font-size: 2rem;
    }
    
    .article-content {
        font-size: 1rem;
        padding: 0 var(--spacing-sm);
    }
    
    .article-content h1 {
        font-size: 1.75rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-content pre {
        padding: var(--spacing-sm);
        font-size: 0.85rem;
    }
    
    .article-preview {
        padding: var(--spacing-md);
    }
}
