/* article.css — Styles for individual static blog article pages */

.article-main {
    padding-top: 120px;
    min-height: 80vh;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.article-container {
    width: 100%;
    max-width: 820px;
    padding: 0 20px 80px;
}

/* Back Link */
.article-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 30px;
    transition: color 0.3s, transform 0.3s;
    text-decoration: none;
}

.article-back-link:hover {
    color: var(--accent-violet);
    transform: translateX(-5px);
}

/* Article Card */
.article-full {
    background: rgba(15, 20, 35, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 50px 45px;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(41, 85, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.article-full::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(41, 85, 255, 0.4), rgba(179, 102, 255, 0.15));
    background-size: 200% 200%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: border-shimmer 4s linear infinite;
    pointer-events: none;
}

@keyframes border-shimmer {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Article Header */
.article-header {
    margin-bottom: 35px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 25px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.article-tag {
    background: rgba(41, 85, 255, 0.15);
    color: var(--accent-blue);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid rgba(41, 85, 255, 0.3);
}

.article-title {
    font-size: 2.4rem;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.2;
    font-family: var(--font-display), 'Inter', sans-serif;
    background: linear-gradient(135deg, #fff 0%, #b366ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.article-excerpt {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-style: italic;
    opacity: 0.85;
}

/* Article Body */
.article-body {
    font-size: 1.05rem;
    color: #ddd;
    line-height: 1.8;
}

.article-body p {
    margin-bottom: 22px;
}

.article-body h2 {
    font-size: 1.6rem;
    color: #fff;
    margin: 40px 0 18px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-violet));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-display), 'Inter', sans-serif;
}

.article-body h3 {
    font-size: 1.3rem;
    color: #fff;
    margin: 30px 0 14px;
    padding-left: 14px;
    border-left: 3px solid var(--accent-violet);
}

.article-body strong {
    color: #fff;
}

.article-body em {
    color: var(--accent-cyan);
    font-style: italic;
}

.article-body a {
    color: var(--accent-blue);
    text-decoration: none;
    border-bottom: 1px solid rgba(41, 85, 255, 0.3);
    transition: color 0.3s, border-color 0.3s;
}

.article-body a:hover {
    color: var(--accent-violet);
    border-bottom-color: var(--accent-violet);
}

.article-body ul {
    margin: 20px 0;
    padding-left: 0;
    list-style: none;
}

.article-body ul li {
    position: relative;
    padding: 12px 0 12px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.article-body ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-violet);
    font-weight: bold;
    font-size: 1.1rem;
}

.article-body ul li:last-child {
    border-bottom: none;
}

/* Inline Images */
.blog-inline-image {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 30px 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-inline-image:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(41, 85, 255, 0.2);
}

/* Related Articles */
.related-articles {
    margin-top: 60px;
}

.related-articles h3 {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.related-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 24px;
    background: rgba(20, 25, 45, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(41, 85, 255, 0.2);
    border-color: rgba(41, 85, 255, 0.3);
}

.related-date {
    font-size: 0.8rem;
    color: var(--accent-violet);
    font-weight: 600;
    letter-spacing: 1px;
}

.related-title {
    font-size: 1rem;
    color: #fff;
    font-weight: 500;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
    .article-full {
        padding: 30px 22px;
    }

    .article-title {
        font-size: 1.8rem;
    }

    .article-body h2 {
        font-size: 1.3rem;
    }

    .article-body h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .article-full {
        padding: 25px 18px;
        border-radius: 18px;
    }

    .article-title {
        font-size: 1.5rem;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}