/* ── UI Worth Blog Styles ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background: #0f172a;
    color: rgba(255,255,255,0.82);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

/* ── Background ── */
.bg-wrapper { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.glow-blob { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.2; }
.blob-1 { width: 500px; height: 500px; background: #7c3aed; top: -150px; left: -150px; }
.blob-2 { width: 400px; height: 400px; background: #0ea5e9; bottom: -100px; right: -100px; }

/* ── Navbar ── */
.navbar {
    position: sticky; top: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 8%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.logo { font-size: 1.1rem; font-weight: 800; color: #fff; text-decoration: none; letter-spacing: -0.5px; }
.logo span { background: linear-gradient(135deg,#a78bfa,#38bdf8); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
.nav-links { display:flex; gap:28px; list-style:none; }
.nav-links a { color:rgba(255,255,255,0.55); text-decoration:none; font-weight:500; font-size:0.9rem; transition:color 0.2s; }
.nav-links a:hover { color:#fff; }
.btn-nav { background:#fff; color:#000; font-weight:700; font-size:0.85rem; padding:9px 20px; border-radius:40px; text-decoration:none; transition:background 0.2s,transform 0.2s; }
.btn-nav:hover { background:#e8e8e8; transform:translateY(-1px); }

/* ── Article Layout ── */
.article-wrapper {
    position: relative; z-index: 1;
    max-width: 760px; margin: 0 auto; padding: 60px 24px 80px;
}

/* ── Article Header ── */
.article-header { margin-bottom: 48px; }
.article-tag {
    display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; color: #a78bfa; margin-bottom: 16px;
    background: rgba(167,139,250,0.1); border: 1px solid rgba(167,139,250,0.2);
    padding: 4px 12px; border-radius: 20px;
}
.article-title {
    font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 900;
    color: #fff; letter-spacing: -1.5px; line-height: 1.15; margin-bottom: 16px;
}
.article-title span { background: linear-gradient(135deg,#a78bfa,#38bdf8); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
.article-meta { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.meta-item { font-size:0.82rem; color:rgba(255,255,255,0.35); }
.meta-sep { color:rgba(255,255,255,0.15); }
.reading-time { color:rgba(167,139,250,0.7); font-weight:600; }

/* ── Cover Image ── */
.article-cover {
    width:100%; border-radius:16px; margin:32px 0; overflow:hidden;
    border:1px solid rgba(255,255,255,0.07);
    aspect-ratio: 16/9; object-fit: cover;
}

/* ── Article Content ── */
.article-content h2 {
    font-size: 1.5rem; font-weight: 800; color: #fff;
    letter-spacing: -0.5px; margin: 44px 0 14px;
    padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.article-content h3 {
    font-size: 1.15rem; font-weight: 700; color: rgba(255,255,255,0.9);
    margin: 30px 0 10px;
}
.article-content p { color: rgba(255,255,255,0.62); margin-bottom: 18px; line-height: 1.85; }
.article-content ul, .article-content ol { color:rgba(255,255,255,0.62); padding-left:22px; margin-bottom:18px; }
.article-content li { margin-bottom:8px; line-height:1.75; }
.article-content strong { color: rgba(255,255,255,0.9); font-weight: 700; }
.article-content a { color: #a78bfa; text-decoration: none; }
.article-content a:hover { text-decoration: underline; }

/* ── Callout Box ── */
.callout {
    background: rgba(167,139,250,0.07); border: 1px solid rgba(167,139,250,0.2);
    border-left: 3px solid #a78bfa; border-radius: 10px;
    padding: 18px 22px; margin: 24px 0;
}
.callout p { color: rgba(255,255,255,0.75); margin: 0; }

/* ── Code Block ── */
.code-block {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px; padding: 20px 24px; margin: 20px 0;
    font-family: 'Courier New', monospace; font-size: 0.88rem;
    color: rgba(167,139,250,0.9); overflow-x: auto; line-height: 1.7;
}

/* ── CTA Box ── */
.cta-box {
    background: linear-gradient(135deg, rgba(124,58,237,0.15) 0%, rgba(14,165,233,0.1) 100%);
    border: 1px solid rgba(167,139,250,0.25);
    border-radius: 20px; padding: 40px 36px; margin: 48px 0;
    text-align: center;
}
.cta-box h3 {
    font-size: 1.5rem; font-weight: 900; color: #fff;
    letter-spacing: -0.5px; margin-bottom: 10px;
}
.cta-box p { color: rgba(255,255,255,0.55); margin-bottom: 24px; }
.cta-price {
    font-size: 0.85rem; color: rgba(255,255,255,0.35);
    text-decoration: line-through; margin-bottom: 4px;
}
.cta-btn {
    display: inline-block; background: #fff; color: #0f172a;
    font-weight: 800; font-size: 0.95rem; padding: 15px 36px;
    border-radius: 50px; text-decoration: none;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    letter-spacing: -0.01em;
}
.cta-btn:hover { background: #e8e8e8; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,255,255,0.15); }
.cta-note { margin-top: 12px; font-size: 0.78rem; color: rgba(255,255,255,0.25); }

/* ── Related Articles ── */
.related { margin-top: 60px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.07); }
.related h3 { font-size: 1rem; font-weight: 700; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 16px; }
.related-card {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px; padding: 20px; text-decoration: none;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.related-card:hover { border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.05); transform: translateY(-3px); }
.related-tag { font-size: 0.7rem; font-weight: 700; color: #a78bfa; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.related-title { font-size: 0.9rem; font-weight: 700; color: rgba(255,255,255,0.8); line-height: 1.4; }

/* ── Footer ── */
footer { text-align:center; padding:32px; color:rgba(255,255,255,0.2); font-size:0.8rem; border-top:1px solid rgba(255,255,255,0.05); position:relative; z-index:1; }
footer a { color:rgba(255,255,255,0.3); text-decoration:none; margin:0 8px; }
footer a:hover { color:#fff; }

/* ── Table of Contents ── */
.toc {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px; padding: 24px 28px; margin: 32px 0;
}
.toc-title { font-size:0.78rem; font-weight:700; color:rgba(255,255,255,0.4); text-transform:uppercase; letter-spacing:1.5px; margin-bottom:14px; }
.toc ol { padding-left:18px; }
.toc li { margin-bottom:6px; }
.toc a { color:rgba(167,139,250,0.8); font-size:0.9rem; text-decoration:none; transition:color 0.2s; }
.toc a:hover { color:#a78bfa; }

/* ── Progress Bar ── */
#progress-bar {
    position: fixed; top: 0; left: 0; height: 3px; width: 0%;
    background: linear-gradient(90deg, #a78bfa, #38bdf8);
    z-index: 999; transition: width 0.1s linear;
}

@media (max-width: 768px) {
    .navbar { padding: 14px 5%; }
    .nav-links { display: none; }
    .article-wrapper { padding: 40px 18px 60px; }
    .cta-box { padding: 28px 20px; }
}
