/* ── Design Tokens ─────────────────────────────────────────────── */
:root {
    --bg-dark: #050505;
    --bg-card: rgba(18, 18, 18, 0.6);
    --accent: #ffdd00;
    --accent-glow: rgba(255, 221, 0, 0.15);
    --accent-glow2: rgba(255, 221, 0, 0.25);
    --text-muted: #888;
    --border: rgba(255, 255, 255, 0.08);
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ── Base ───────────────────────────────────────────────────────── */
body {
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at 30% 20%, #1a1a1a 0%, var(--bg-dark) 70%);
    color: #fff;
    font-family: var(--font-body);
    min-height: 100vh;
}

p {
    font-size: 1rem;
    font-family: var(--font-body);
}

/* ── Floating Home Button ───────────────────────────────────────── */
.home-btn {
    position: fixed;
    top: 22px;
    left: 22px;
    z-index: 1000;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 1.05rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.home-btn:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    box-shadow: 0 8px 25px var(--accent-glow2);
    transform: scale(1.1) translateY(-2px);
}

@media (max-width: 600px) {
    .home-btn {
        top: auto;
        bottom: 22px;
        left: auto;
        right: 22px;
    }
}

/* ── Page Wrapper ───────────────────────────────────────────────── */
.page-wrapper {
    max-width: 760px;
    margin: 0 auto;
    padding: 90px 24px 80px;
}

/* ── Header ─────────────────────────────────────────────────────── */
.blog-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.blog-header h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff 20%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.08));
    margin: 0 0 0.4rem;
}

.blog-header .subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.25em;
    /* text-transform: uppercase; */
    margin: 0 0 0.5rem;
}

.blog-header .mirror-info {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.blog-header .mirror-info a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s;
}

.blog-header .mirror-info a:hover {
    opacity: 0.75;
}

.header-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 1rem auto 0;
    border: none;
}

/* ── Glassmorphic card ──────────────────────────────────────────── */
.glass-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px var(--accent-glow);
}

/* ── Article List ───────────────────────────────────────────────── */
.blog-article-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.blog-article-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
}

.blog-article-item:hover {
    background: rgba(255, 221, 0, 0.07);
    border-color: rgba(255, 221, 0, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 221, 0, 0.1);
}

.blog-article-serial {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-muted);
    min-width: 2.5rem;
    text-align: center;
    font-family: var(--font-display);
    transition: color 0.2s;
}

.blog-article-item:hover .blog-article-serial {
    color: var(--accent);
}

.blog-article-info {
    flex: 1;
}

.blog-article-title {
    font-size: 1rem;
    font-weight: 600;
    color: #e8e8e8;
    margin: 0;
}

.blog-article-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.blog-article-arrow {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: transform 0.2s ease, color 0.2s ease;
}

.blog-article-item:hover .blog-article-arrow {
    transform: translateX(4px);
    color: var(--accent);
}

/* ── Article Content View ───────────────────────────────────────── */
.blog-article-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 1rem 0;
    line-height: 1.8;
    font-size: 1rem;
    font-family: var(--font-body);
    color: #d5d5d5;
}

.blog-article-content h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #fff;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.blog-article-content h2 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    color: #e8e8e8;
}

.blog-article-content h3 {
    font-size: 1.15rem;
    margin-top: 1.5rem;
    color: #ccc;
}

.blog-article-content p {
    margin-bottom: 1rem;
}

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

.blog-article-content li {
    margin-bottom: 0.4rem;
}

.blog-article-content code {
    background: rgba(255, 255, 255, 0.08);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'Consolas', 'Courier New', monospace;
    color: var(--accent);
}

.blog-article-content pre {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    color: #d4d4d4;
    padding: 1rem 1.2rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.2rem;
}

.blog-article-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.blog-article-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 0.5rem 1rem;
    margin: 1rem 0;
    background: rgba(255, 221, 0, 0.05);
    border-radius: 0 6px 6px 0;
    color: #aaa;
}

.blog-article-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

.blog-article-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 1rem 0;
}

.blog-article-content a {
    color: var(--accent);
    text-decoration: underline;
}

/* ── Back Button ────────────────────────────────────────────────── */
.blog-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #ccc;
    transition: all 0.2s ease;
    font-family: var(--font-body);
}

.blog-back-btn:hover {
    background: rgba(255, 221, 0, 0.1);
    border-color: rgba(255, 221, 0, 0.3);
    color: var(--accent);
    transform: translateX(-2px);
}

/* ── Article Meta ───────────────────────────────────────────────── */
.blog-article-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

/* ── Loading / Empty States ─────────────────────────────────────── */
.blog-loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.blog-loading i {
    font-size: 1.5rem;
    animation: spin 1s linear infinite;
}

.blog-empty {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.blog-empty i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    color: rgba(255, 221, 0, 0.2);
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ── Footer ─────────────────────────────────────────────────────── */
.page-footer {
    text-align: center;
    margin-top: 3rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 0.1em;
}