/* ========================================
   Zane's Blog — Design System
   Inspired by diygod.cc
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---- CSS Variables ---- */
:root {
    /* Light Theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fc;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f2f8;
    --bg-glass: rgba(255, 255, 255, 0.72);
    --bg-nav: rgba(255, 255, 255, 0.85);

    --text-primary: #1a1a2e;
    --text-secondary: #555770;
    --text-muted: #8e90a6;
    --text-link: #6c5ce7;

    --border-color: rgba(0, 0, 0, 0.06);
    --border-hover: rgba(108, 92, 231, 0.3);

    --accent: #6c5ce7;
    --accent-light: #a29bfe;
    --accent-gradient: linear-gradient(135deg, #6c5ce7, #a29bfe);
    --accent-bg: rgba(108, 92, 231, 0.08);

    --tag-bg: rgba(108, 92, 231, 0.1);
    --tag-text: #6c5ce7;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 20px rgba(108, 92, 231, 0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg-primary: #0f0f1a;
    --bg-secondary: #16162a;
    --bg-card: #1a1a30;
    --bg-card-hover: #22223a;
    --bg-glass: rgba(15, 15, 26, 0.8);
    --bg-nav: rgba(15, 15, 26, 0.9);

    --text-primary: #e8e8f0;
    --text-secondary: #a0a0b8;
    --text-muted: #6e6e88;
    --text-link: #a29bfe;

    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(162, 155, 254, 0.3);

    --accent: #a29bfe;
    --accent-light: #6c5ce7;
    --accent-gradient: linear-gradient(135deg, #a29bfe, #6c5ce7);
    --accent-bg: rgba(162, 155, 254, 0.1);

    --tag-bg: rgba(162, 155, 254, 0.15);
    --tag-text: #a29bfe;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(162, 155, 254, 0.2);
}

/* ---- Global Reset ---- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    transition: background var(--transition), color var(--transition);
}

a {
    color: var(--text-link);
    text-decoration: none;
    transition: color var(--transition);
}

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

img {
    max-width: 100%;
    height: auto;
}

/* ---- Navigation ---- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition);
}

.navbar-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    position: relative;
}

.nav-brand {
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
    background: var(--accent-bg);
}

.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all var(--transition);
    color: var(--text-secondary);
}

.theme-toggle:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
    transform: rotate(30deg);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
}

/* ---- Main Layout ---- */
.main-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    min-height: calc(100vh - 64px - 120px);
}

/* ---- Hero Section (Homepage) ---- */
.hero {
    padding: 60px 0 40px;
    text-align: center;
}

.hero-avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin: 0 auto 24px;
    box-shadow: var(--shadow-glow);
    overflow: hidden;
    transition: transform var(--transition);
}

.hero-avatar:hover {
    transform: scale(1.05) rotate(5deg);
}

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

.hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-bio {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.9;
    max-width: 560px;
    margin: 0 auto;
    white-space: pre-line;
}

.hero-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.hero-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all var(--transition);
    text-decoration: none;
}

.hero-social a svg {
    width: 20px;
    height: 20px;
}

.hero-social a:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* ---- Section Headers ---- */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 48px 0 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.section-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.section-header .view-all {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: color var(--transition);
}

.section-header .view-all:hover {
    color: var(--accent);
}

/* ---- Homepage Two-Column Layout ---- */
.home-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.home-col .section-header {
    margin-top: 0;
    margin-bottom: 12px;
}

/* Mini project cards for homepage sidebar */
.project-list-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.project-card-mini {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    border-radius: var(--radius-md);
    transition: all var(--transition);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.project-card-mini::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 0;
    background: var(--accent-gradient);
    border-radius: 0 3px 3px 0;
    transition: height var(--transition);
}

.project-card-mini:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color);
    transform: translateX(4px);
}

.project-card-mini:hover::before {
    height: 100%;
}

.project-card-mini-img {
    width: 120px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-secondary);
}

.project-card-mini-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card-mini:hover .project-card-mini-img img {
    transform: scale(1.08);
}

.project-card-mini-info {
    flex: 1;
    min-width: 0;
}

.project-card-mini-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    transition: color var(--transition);
    letter-spacing: -0.01em;
}

.project-card-mini:hover .project-card-mini-name {
    color: var(--accent);
}

.project-card-mini-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- Post Cards ---- */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.post-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    border-radius: var(--radius-md);
    transition: all var(--transition);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.post-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 0;
    background: var(--accent-gradient);
    border-radius: 0 3px 3px 0;
    transition: height var(--transition);
}

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

.post-card:hover::before {
    height: 100%;
}

.post-card-info {
    flex: 1;
    min-width: 0;
}

.post-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    transition: color var(--transition);
    letter-spacing: -0.01em;
}

.post-card:hover .post-card-title {
    color: var(--accent);
}

.post-card-excerpt {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-cover {
    width: 120px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-secondary);
}

.post-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card:hover .post-card-cover img {
    transform: scale(1.08);
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.post-card-category {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 20px;
    background: var(--accent-bg);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 500;
}

.post-card-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 20px;
    background: var(--tag-bg);
    color: var(--tag-text);
    font-size: 0.75rem;
    font-weight: 500;
}

/* ---- Posts Page Filters ---- */
.filter-section {
    margin-bottom: 32px;
}

.filter-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 500;
}

.filter-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-item {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.84rem;
    font-weight: 500;
    transition: all var(--transition);
}

.filter-item:hover,
.filter-item.active {
    background: var(--accent-bg);
    border-color: var(--border-hover);
    color: var(--accent);
}

.filter-item .count {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 4px;
}

/* ---- Single Post ---- */
.post-header {
    padding: 40px 0 32px;
    text-align: center;
}

.post-header h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    line-height: 1.3;
}

.post-header-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 0.88rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.post-cover {
    margin: 0 auto 32px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.post-cover img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-primary);
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: 2em;
    margin-bottom: 0.8em;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.post-content h2 {
    font-size: 1.5rem;
}

.post-content h3 {
    font-size: 1.25rem;
}

.post-content p {
    margin-bottom: 1.2em;
}

.post-content img {
    border-radius: var(--radius-md);
    margin: 1.5em 0;
    box-shadow: var(--shadow-md);
}

.post-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 12px 20px;
    margin: 1.5em 0;
    background: var(--accent-bg);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-secondary);
}

.post-content code {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.88em;
    color: var(--accent);
}

.post-content pre {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 20px;
    margin: 1.5em 0;
    overflow-x: auto;
    border: 1px solid var(--border-color);
}

.post-content pre code {
    background: none;
    padding: 0;
    color: var(--text-primary);
    font-size: 0.88rem;
    line-height: 1.6;
}

.post-content ul,
.post-content ol {
    margin: 1em 0;
    padding-left: 1.5em;
}

.post-content li {
    margin-bottom: 0.4em;
}

.post-content a {
    border-bottom: 1px solid var(--accent-light);
    transition: border-color var(--transition);
}

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

.post-content hr {
    border: none;
    height: 1px;
    background: var(--border-color);
    margin: 2em 0;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.post-content th,
.post-content td {
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    text-align: left;
}

.post-content th {
    background: var(--bg-secondary);
    font-weight: 600;
}

/* Post navigation */
.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.post-nav a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    flex: 1;
    transition: all var(--transition);
    max-width: 48%;
}

.post-nav a:hover {
    border-color: var(--border-hover);
    background: var(--accent-bg);
}

.post-nav-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.post-nav-title {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.post-nav a.next {
    text-align: right;
    margin-left: auto;
}

/* ---- Project Cards ---- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.project-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition);
}

.project-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.project-card:hover::after {
    opacity: 1;
}

.project-card-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-card-image img {
    transform: scale(1.05);
}

.project-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-card-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    transition: color var(--transition);
}

.project-card:hover .project-card-name {
    color: var(--accent);
}

.project-card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    flex: 1;
}


/* ---- About Page ---- */
.about-content {
    max-width: 700px;
    margin: 0 auto;
}

.about-content h1 {
    font-size: 2rem;
    margin-bottom: 24px;
    text-align: center;
}

/* ---- Pagination ---- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.pagination a:hover {
    border-color: var(--border-hover);
    color: var(--accent);
    background: var(--accent-bg);
}

.pagination .current {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* ---- Footer ---- */
.footer {
    text-align: center;
    padding: 32px 24px 40px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.82rem;
}

.footer-running {
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.footer-social a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: all var(--transition);
}

.footer-social a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

/* ---- 404 Page ---- */
.page-404 {
    text-align: center;
    padding: 80px 0;
}

.page-404 h1 {
    font-size: 6rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
}

.page-404 p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
    color: white;
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    border-color: var(--border-hover);
    color: var(--accent);
}

.btn-danger {
    background: #ff4757;
    color: white;
}

.btn-danger:hover {
    background: #e0323e;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.82rem;
}

/* ---- Empty State ---- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .navbar-inner {
        padding: 0 16px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 24px;
        gap: 8px;
        z-index: 99;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links a {
        padding: 12px 16px;
        font-size: 1rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .main-content {
        padding: 24px 16px 60px;
    }

    .hero {
        padding: 40px 0 24px;
    }

    .home-columns {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-bio {
        font-size: 0.88rem;
    }

    .section-header {
        margin: 32px 0 16px;
    }

    .post-card {
        padding: 16px;
        gap: 12px;
    }

    .post-card-cover {
        width: 90px;
        height: 60px;
    }

    .post-header h1 {
        font-size: 1.6rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .post-nav {
        flex-direction: column;
    }

    .post-nav a {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .post-header h1 {
        font-size: 1.4rem;
    }
}

/* ---- Animations ---- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.5s ease-out forwards;
}

.post-card:nth-child(1) {
    animation-delay: 0.05s;
}

.post-card:nth-child(2) {
    animation-delay: 0.1s;
}

.post-card:nth-child(3) {
    animation-delay: 0.15s;
}

.post-card:nth-child(4) {
    animation-delay: 0.2s;
}

.post-card:nth-child(5) {
    animation-delay: 0.25s;
}

.post-card:nth-child(6) {
    animation-delay: 0.3s;
}

.post-card:nth-child(7) {
    animation-delay: 0.35s;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ---- Selection ---- */
::selection {
    background: var(--accent-bg);
    color: var(--accent);
}

/* ---- Copy Toast ---- */
.copy-toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 12px 28px;
    border-radius: var(--radius-xl);
    font-size: 0.88rem;
    font-weight: 500;
    z-index: 9999;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    pointer-events: none;
}

.copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.copy-toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}