:root {
    --bg-dark: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', 'Noto Sans KR', sans-serif;
    line-height: 1.7;
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Glass Header */
.glass-header {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    font-weight: 800;
    font-size: 1.6rem;
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #a5b4fc, #e879f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 28px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #a5b4fc;
}

/* Hero Section */
.hero-section {
    padding: 70px 0 50px;
    border-bottom: 1px dashed var(--glass-border);
    margin-bottom: 50px;
    text-align: center;
}

.post-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.3;
    letter-spacing: -1px;
    color: #ffffff;
}

.post-meta {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.95rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.divider {
    opacity: 0.5;
}

/* Post Content */
.post-content {
    font-size: 1.15rem;
    padding-bottom: 80px;
    color: #cbd5e1;
}

.post-content h2 {
    font-size: 1.9rem;
    margin: 50px 0 24px;
    color: #f1f5f9;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    padding-left: 14px;
}

.post-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--accent);
    border-radius: 4px;
}

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

.post-content ul, .post-content ol {
    margin: 0 0 24px 24px;
}

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

/* CTA Box (Affiliate) */
.glass-panel {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.6));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    margin-top: 60px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.cta-box h3 {
    font-size: 1.6rem;
    margin-bottom: 16px;
    color: #fff;
}

.cta-box p {
    color: #94a3b8;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--accent), #a855f7);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.15rem;
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 35px -10px rgba(99, 102, 241, 0.8);
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.pulse-anim {
    animation: pulse 2.5s infinite ease-in-out;
}

footer {
    border-top: 1px solid var(--glass-border);
    padding: 60px 0;
    text-align: center;
    color: var(--text-muted);
}

footer .logo {
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.disclaimer {
    font-size: 0.85rem;
    margin-top: 16px;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 640px) {
    .post-title { font-size: 2.2rem; }
    .post-content h2 { font-size: 1.6rem; }
    .cta-button { width: 100%; padding: 16px 20px; }
}


/* Added Styles for Upgrades */
.article-auto-img { width: 100%; border-radius: 12px; margin: 30px 0; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.toc-panel { text-align: left !important; display: block; }
.toc-panel li::before { content: '👉'; margin-right: 8px; font-size: 0.9em; }

/* Related Posts */
.related-posts { margin-top: 60px; padding: 30px; background: rgba(30,41,59,0.5); border-radius: 16px; border: 1px solid var(--glass-border); text-align: left; }
.related-posts h3 { color: #fff; margin-bottom: 20px; font-size: 1.4rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; }
.related-posts ul { list-style: none; padding-left: 0; }
.related-posts li { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.related-posts li:last-child { border-bottom: none; }
.related-posts a { color: #818cf8; text-decoration: none; font-size: 1.1rem; transition: color 0.3s; display: block;}
.related-posts a:hover { color: #c084fc; text-decoration: underline; }

/* Floating CTA */
.floating-cta { position: fixed; bottom: 30px; right: 30px; background: linear-gradient(135deg, #f43f5e, #8b5cf6); color: white; padding: 16px 28px; border-radius: 50px; text-decoration: none; font-weight: 800; font-size: 1.1rem; box-shadow: 0 10px 25px rgba(244, 63, 94, 0.5); z-index: 1000; transition: transform 0.3s, box-shadow 0.3s; animation: pulse 2.5s infinite ease-in-out; }
.floating-cta:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(244, 63, 94, 0.7); }
@media (max-width: 640px) { .floating-cta { bottom: 20px; left: 20px; right: 20px; text-align: center; } }
