
/* QQ's Blog - Clean Dark Theme */

:root {
    --bg: #0a0c10;
    --bg-secondary: #0d1117;
    --surface: #161b22;
    --surface-hover: #1c2128;
    --border: #30363d;
    --text: #e6edf3;
    --text-secondary: #7d8590;
    --accent: #58a6ff;
    --accent-hover: #79b8ff;
    --glass-bg: rgba(22, 27, 34, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glow-color: rgba(88, 166, 255, 0.3);
    --glow-strong: rgba(88, 166, 255, 0.5);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 0 0 rgba(88,166,255,0), 0 8px 32px rgba(0,0,0,0);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(88, 166, 255, 0.4);
    box-shadow: 0 0 20px var(--glow-color), 0 8px 32px rgba(0,0,0,0.4);
}

#cursor-glow {
    position: fixed;
    pointer-events: none;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(88,166,255,0.12) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Links */
a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Header */
.site-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.wrapper {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.site-emoji {
    font-size: 24px;
}

.site-title:hover {
    text-decoration: none;
}

.site-nav {
    float: right;
    display: flex;
    gap: 24px;
}

.site-nav a {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.site-nav a:hover {
    color: var(--accent);
    text-decoration: none;
}

/* Main Content */
.page-content {
    flex: 1;
    padding: 40px 0;
}

.post-meta {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(88, 166, 255, 0.1);
    border-radius: 12px;
    font-size: 12px;
    color: var(--accent);
    margin-right: 6px;
}

.post-excerpt {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* Individual Post */
.post {
    max-width: 100%;
}

.post-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.post-title {
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 16px;
    font-weight: 700;
}

.post-content {
    font-size: 18px;
    line-height: 1.8;
}

.post-content h2 {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--accent);
    font-weight: 600;
}

.post-content h3 {
    font-size: 22px;
    margin-top: 32px;
    margin-bottom: 12px;
    font-weight: 600;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content ul,
.post-content ol {
    margin-bottom: 20px;
    padding-left: 28px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content code {
    background: var(--surface-hover);
    padding: 3px 6px;
    border-radius: 4px;
    font-family: 'Fira Code', 'SF Mono', Monaco, Consolas, monospace;
    font-size: 0.85em;
}

.post-content pre {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
    border: 1px solid var(--glass-border);
    border-top: 3px solid rgba(88, 166, 255, 0.5);
}

.post-content pre code {
    background: none;
    padding: 0;
    font-size: 14px;
}

.post-content blockquote {
    border-left: 4px solid var(--accent);
    box-shadow: -3px 0 12px rgba(88, 166, 255, 0.4);
    padding-left: 20px;
    margin: 24px 0;
    color: var(--text-secondary);
    font-style: italic;
}

.post-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 40px 0;
}

/* Global hr styling */
hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 40px 0;
}

/* Post Footer */
.post-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.post-footer p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* Footer */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 32px 0;
    margin-top: auto;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-links {
    margin: 16px 0;
}

.footer-links a {
    margin: 0 8px;
}

/* Responsive */
@media (max-width: 600px) {
    .site-nav {
        float: none;
        display: flex;
        justify-content: center;
        margin-top: 12px;
        gap: 16px;
    }
    
    .site-title {
        display: block;
        text-align: center;
    }

    .post-title {
        font-size: 28px;
    }
    
    .post-content {
        font-size: 16px;
    }
    
    .wrapper {
        padding: 0 16px;
    }
}
