/* =============================================
   HEADER
   ============================================= */
.site-header {
    height: var(--header-height);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.9);
    transition: background var(--transition), border-color var(--transition);
}

[data-theme="dark"] .site-header {
    background: rgba(31,41,55,0.92);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
}

.logo span { color: var(--primary); }

/* Nav */
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav a {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.92rem;
    transition: all var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(108,99,255,0.1);
    color: var(--primary);
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all var(--transition);
}

.icon-btn:hover {
    background: var(--bg-sidebar);
    color: var(--text);
}

/* Mobile menu toggle */
.menu-toggle { display: none; }

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
    }

    .main-nav.open { display: flex; }
    .main-nav a { width: 100%; }
    .menu-toggle { display: flex; }
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #a855f7 100%);
    color: #fff;
    padding: 72px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23fff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content { position: relative; }

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.88;
    max-width: 560px;
    margin: 0 auto 32px;
}

.hero-search {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.hero-search input {
    width: 100%;
    padding: 14px 56px 14px 20px;
    border-radius: 999px;
    border: none;
    font-size: 0.95rem;
    background: rgba(255,255,255,0.95);
    color: var(--text);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.hero-search input:focus { outline: none; }

.hero-search button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background var(--transition);
}

.hero-search button:hover { background: var(--primary-dark); }

/* =============================================
   CATEGORY BAR
   ============================================= */
.category-bar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

.category-bar-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-bar-inner::-webkit-scrollbar { display: none; }

.cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition);
}

.cat-btn:hover,
.cat-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* =============================================
   POST CARD
   ============================================= */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.post-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all var(--transition);
    cursor: pointer;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.post-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea, #764ba2);
    position: relative;
    overflow: hidden;
}

.post-card-image-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.post-card-body {
    padding: 20px;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.post-card-category {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-card-date {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-left: auto;
}

.post-card h2 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--text);
}

.post-card h2:hover { color: var(--primary); }

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

.post-card-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.author-mini {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.author-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
}

.post-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    color: var(--text-light);
}

.post-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Featured Card */
.post-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.post-card.featured .post-card-image-placeholder {
    height: 100%;
    min-height: 260px;
    font-size: 5rem;
}

@media (max-width: 640px) {
    .post-card.featured {
        grid-template-columns: 1fr;
    }

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

/* Featured badge */
.featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--secondary);
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* =============================================
   LOAD MORE
   ============================================= */
.load-more-section {
    text-align: center;
    padding: 32px 0;
}

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.sidebar-widget {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 24px;
    transition: background var(--transition), border-color var(--transition);
}

.sidebar-widget h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Popular posts */
.popular-post-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: all var(--transition);
}

.popular-post-item:last-child { border-bottom: none; }
.popular-post-item:hover .popular-post-title { color: var(--primary); }

.popular-post-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    background: var(--bg-sidebar);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    overflow: hidden;
}

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

.popular-post-title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
    transition: color var(--transition);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-post-meta {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* Newsletter */
.newsletter-widget input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    font-size: 0.875rem;
    margin-bottom: 10px;
    transition: border-color var(--transition);
}

.newsletter-widget input:focus {
    outline: none;
    border-color: var(--primary);
}

.newsletter-widget p {
    font-size: 0.83rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.newsletter-widget .btn { width: 100%; justify-content: center; }

/* Stats widget */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-item {
    background: var(--bg-sidebar);
    border-radius: var(--radius-sm);
    padding: 14px;
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* =============================================
   POST DETAIL PAGE
   ============================================= */
.post-hero {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 48px 0 0;
}

.post-hero-inner { max-width: 760px; }

.post-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.post-breadcrumb a { color: var(--primary); }
.post-breadcrumb span { color: var(--text-light); }

.post-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 16px;
    line-height: 1.25;
}

.post-hero-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    margin-top: 20px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.post-hero-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar-lg {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.post-cover-image {
    width: 100%;
    height: 420px;
    background: linear-gradient(135deg, var(--primary), #a855f7);
    margin-top: 32px;
    border-radius: var(--radius) var(--radius) 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
}

/* Post content */
.post-content {
    max-width: 760px;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text);
}

.post-content h2 {
    font-size: 1.6rem;
    margin: 40px 0 16px;
}

.post-content h3 {
    font-size: 1.3rem;
    margin: 32px 0 12px;
}

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

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

.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 8px; }

.post-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    margin: 24px 0;
    background: var(--bg-sidebar);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-muted);
}

.post-content code {
    background: var(--bg-sidebar);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.88em;
    color: var(--secondary);
}

.post-content pre {
    background: #1f2937;
    color: #e5e7eb;
    padding: 20px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin: 24px 0;
    font-size: 0.88rem;
    line-height: 1.6;
}

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

.post-content img {
    border-radius: var(--radius-sm);
    margin: 24px 0;
}

/* Post tags */
.post-tags {
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 32px 0;
}

/* Share */
.share-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.share-bar span {
    font-weight: 600;
    font-size: 0.9rem;
}

.share-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
}

.share-btn:hover { transform: translateY(-2px); }
.share-twitter { background: #1da1f2; }
.share-linkedin { background: #0077b5; }
.share-facebook { background: #1877f2; }
.share-copy { background: var(--bg-sidebar); color: var(--text); border: 1px solid var(--border); }

/* Author bio */
.author-bio-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.author-bio-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    flex-shrink: 0;
}

.author-bio-content h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.author-bio-content p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Comments */
.comments-section { margin-top: 48px; }

.comment-item {
    display: flex;
    gap: 14px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.comment-body { flex: 1; }
.comment-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.comment-author { font-weight: 600; font-size: 0.9rem; }
.comment-date { font-size: 0.78rem; color: var(--text-light); }
.comment-text { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

.comment-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 24px;
}

.comment-form h4 { margin-bottom: 16px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.form-group { margin-bottom: 12px; }
.form-group label { font-size: 0.85rem; font-weight: 600; display: block; margin-bottom: 6px; }

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    font-size: 0.875rem;
    font-family: inherit;
    transition: border-color var(--transition);
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

@media (max-width: 640px) {
    .form-row { grid-template-columns: 1fr; }
    .author-bio-card { flex-direction: column; align-items: center; text-align: center; }
    .post-cover-image { height: 240px; font-size: 4rem; }
}

/* =============================================
   ABOUT PAGE
   ============================================= */
.about-hero {
    text-align: center;
    padding: 72px 0 48px;
}

.about-hero .avatar-xl {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 8px 32px rgba(108,99,255,0.3);
}

.about-hero h1 { font-size: 2.2rem; margin-bottom: 8px; }
.about-hero .subtitle { font-size: 1.1rem; color: var(--primary); font-weight: 600; margin-bottom: 16px; }
.about-hero .bio { max-width: 600px; margin: 0 auto 24px; color: var(--text-muted); }

.social-links { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition);
    background: var(--bg-card);
}

.social-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(108,99,255,0.05);
    transform: translateY(-2px);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: all var(--transition);
}

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

.skill-icon { font-size: 2.2rem; margin-bottom: 10px; }
.skill-name { font-weight: 700; font-size: 0.95rem; }
.skill-level { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

/* Timeline */
.timeline { position: relative; padding-left: 24px; }

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding: 0 0 32px 24px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--bg);
    box-shadow: 0 0 0 2px var(--primary);
}

.timeline-date { font-size: 0.8rem; color: var(--primary); font-weight: 700; margin-bottom: 6px; }
.timeline-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.timeline-subtitle { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 8px; }
.timeline-desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: #1f2937;
    color: #9ca3af;
    margin-top: auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 56px 0 40px;
    border-bottom: 1px solid #374151;
}

.footer-brand .logo {
    color: #fff;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #9ca3af;
    font-size: 0.875rem;
    transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--primary); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    font-size: 0.825rem;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom a { color: var(--primary); }

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}

@media (max-width: 480px) {
    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* =============================================
   SEARCH OVERLAY
   ============================================= */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 200;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
    backdrop-filter: blur(4px);
}

.search-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.search-box {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    width: 90%;
    max-width: 560px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform: translateY(-20px);
    transition: transform var(--transition);
}

.search-overlay.open .search-box { transform: translateY(0); }

.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
}

.search-input-wrap input {
    flex: 1;
    border: none;
    background: none;
    font-size: 1rem;
    color: var(--text);
}

.search-input-wrap input:focus { outline: none; }
.search-icon { color: var(--text-muted); font-size: 1.1rem; }

.search-results {
    margin-top: 16px;
    max-height: 320px;
    overflow-y: auto;
}

.search-result-item {
    padding: 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    gap: 12px;
    align-items: center;
    transition: background var(--transition);
}

.search-result-item:hover { background: var(--bg-sidebar); }

.search-result-emoji { font-size: 1.8rem; flex-shrink: 0; }

.search-result-info h5 {
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.search-result-info p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* =============================================
   SCROLL TO TOP
   ============================================= */
.scroll-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 14px rgba(108,99,255,0.4);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all var(--transition);
    z-index: 99;
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.scroll-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* =============================================
   TOAST NOTIFICATION
   ============================================= */
.toast {
    position: fixed;
    bottom: 80px;
    right: 28px;
    background: var(--text);
    color: var(--bg-card);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all var(--transition);
    z-index: 200;
    box-shadow: var(--shadow);
}

.toast.show { opacity: 1; transform: translateY(0); }

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, var(--border) 25%, var(--bg-sidebar) 50%, var(--border) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Reading progress bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--primary);
    z-index: 200;
    transition: width 0.1s linear;
}
