html {
    scroll-behavior: smooth;
}

        .fade-in {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.6s ease-out, transform 0.6s ease-out;
        }
        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }
        .search-input:focus {
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }
        .category-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        }
        .result-card {
            transition: all 0.3s ease;
            min-height: 140px; 
        }
        .result-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        }
        .job-card:hover {
            transform: scale(1.02);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        }
        /* Mobile menu slide */
        .mobile-menu {
            transform: translateX(-100%);
            transition: transform 0.3s ease-in-out;
        }
        .mobile-menu.open {
            transform: translateX(0);
        }
        .mobile-menu-overlay {
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease-in-out;
        }
        .mobile-menu-overlay.open {
            opacity: 1;
            visibility: visible;
        }
        
/* Avatar styles */
.user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.user-avatar-lg {
    width: 48px;
    height: 48px;
    font-size: 18px;
}

.user-avatar-xl {
    width: 64px;
    height: 64px;
    font-size: 24px;
}

/* Dropdown animations */
#dropdownMenu {
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile user badge */
.user-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background-color: #10B981;
    border: 2px solid white;
    border-radius: 50%;
}


.blog-content {
    color: #1f2937;
    font-size: 1.0625rem;
    line-height: 1.85;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
}

.blog-content > * + * {
    margin-top: 1.2rem;
}

.blog-content h2,
.blog-content h3,
.blog-content h4 {
    color: #111827;
    font-weight: 800;
    line-height: 1.25;
    margin-top: 2rem;
    scroll-margin-top: 96px;
}

.blog-content h2 {
    font-size: 1.75rem;
}

.blog-content h3 {
    font-size: 1.35rem;
}

.blog-content a {
    color: #1E40AF;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-content img,
.blog-content video,
.blog-content iframe,
.blog-content canvas {
    max-width: 100%;
}

.blog-content img,
.blog-content iframe,
.blog-content canvas {
    border-radius: 8px;
}

.blog-content table {
    width: 100%;
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}

.blog-content th,
.blog-content td {
    border: 1px solid #e5e7eb;
    padding: 0.75rem 0.9rem;
    text-align: left;
}

.blog-content th {
    background: #f3f4f6;
    color: #111827;
}

.blog-content blockquote {
    border-left: 4px solid #1E40AF;
    background: #eff6ff;
    padding: 1rem 1.25rem;
    border-radius: 0 8px 8px 0;
    color: #1f2937;
}

.blog-content ul,
.blog-content ol {
    padding-left: 1.5rem;
}

.blog-content ul {
    list-style: disc;
}

.blog-content ol {
    list-style: decimal;
}

.blog-content .chart,
.blog-content .diagram,
.blog-content .stat-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
}

.blog-content .indice-chart {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07);
}

.blog-content .indice-chart-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.blog-content .indice-chart-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #111827;
}

.blog-content .indice-chart-subtitle {
    margin: 0.2rem 0 0;
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
}

.blog-content .indice-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    color: #4b5563;
    font-size: 0.85rem;
    white-space: nowrap;
}

.blog-content .indice-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.blog-content .indice-chart-dot {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
    display: inline-block;
}

.blog-content .indice-chart-svg {
    width: 100%;
    min-width: 680px;
    height: auto;
    display: block;
}

.blog-content .indice-chart-point {
    cursor: pointer;
    outline: none;
    stroke: #fff;
    stroke-width: 2;
    transition: r 0.15s ease, filter 0.15s ease;
}

.blog-content .indice-chart-point:hover,
.blog-content .indice-chart-point:focus {
    r: 7;
    filter: drop-shadow(0 4px 10px rgba(15, 23, 42, 0.25));
}

.indice-chart-tooltip {
    position: fixed;
    z-index: 9999;
    transform: translate(-50%, calc(-100% - 12px));
    pointer-events: none;
    opacity: 0;
    background: #111827;
    color: #fff;
    border-radius: 8px;
    padding: 0.55rem 0.7rem;
    font-size: 0.82rem;
    line-height: 1.35;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.24);
    max-width: 260px;
    transition: opacity 0.12s ease;
}

.indice-chart-tooltip.is-visible {
    opacity: 1;
}

.blog-content .indice-chart-table {
    width: 100%;
    display: table;
    white-space: normal;
    margin-top: 1rem;
    font-size: 0.85rem;
}

.blog-content .indice-donut-wrap {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: center;
}

.blog-content .indice-donut {
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: conic-gradient(#1E40AF 0 48.86%, #ef4444 48.86% 100%);
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.blog-content .indice-donut::after {
    content: "";
    position: absolute;
    inset: 42px;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 1px #e5e7eb;
}

.blog-content .indice-donut-total {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 800;
    color: #111827;
}

.blog-content .indice-donut-total small {
    font-size: 0.72rem;
    color: #6b7280;
    font-weight: 700;
    text-transform: uppercase;
}

.blog-content .indice-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.blog-content .indice-kpi {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.9rem;
    background: #fff;
}

.blog-content .indice-kpi strong {
    display: block;
    font-size: 1.5rem;
    line-height: 1.2;
    color: #111827;
}

.blog-content .indice-kpi span {
    display: block;
    margin-top: 0.25rem;
    color: #6b7280;
    font-size: 0.85rem;
}

.blog-content .blog-import-gallery {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 1rem;
    padding: 0.35rem 0.2rem 1rem;
    scrollbar-width: thin;
}

.blog-content .blog-import-gallery figure {
    flex: 0 0 min(82vw, 360px);
    scroll-snap-align: start;
    margin: 0;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.blog-content .blog-import-gallery img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.blog-carousel-shell {
    position: relative;
}

.blog-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(229, 231, 235, 0.95);
    background: rgba(255, 255, 255, 0.94);
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.blog-carousel-btn:hover {
    background: #1E40AF;
    color: #fff;
}

.blog-carousel-prev {
    left: 0.75rem;
}

.blog-carousel-next {
    right: 0.75rem;
}


/* ============================================================
   BLOG LOT 4 — DESIGN MAGAZINE / NEWS
   ============================================================ */

/* ── Bară progres citire (fixed, top 0) ─────────────────── */
#blogReadProgress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #1E40AF 0%, #3B82F6 55%, #06b6d4 100%);
    width: 0%;
    z-index: 9999;
    transition: width 0.08s linear;
    border-radius: 0 2px 2px 0;
    pointer-events: none;
}

/* ── TOC links (JS toggles toc-active) ─────────────────── */
.toc-link {
    display: block;
    color: #4b5563;
    padding: 0.3rem 0 0.3rem 0.75rem;
    border-left: 2px solid transparent;
    text-decoration: none;
    line-height: 1.45;
    font-size: 0.825rem;
    transition: color 0.12s, border-color 0.12s;
}

.toc-link.toc-h3 {
    padding-left: 1.4rem;
    font-size: 0.78rem;
    color: #9ca3af;
}

.toc-link.toc-active,
.toc-link:hover {
    color: #1E40AF;
    border-left-color: #1E40AF;
}




/* ── Tipografie .blog-content rafinată ──────────────────── */
.blog-content pre {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.65;
    margin-top: 1.5rem;
}

.blog-content code:not(pre code) {
    background: #f1f5f9;
    color: #0f172a;
    border-radius: 4px;
    padding: 0.12em 0.38em;
    font-size: 0.875em;
    font-family: ui-monospace, 'Fira Code', monospace;
}

.blog-content hr {
    border: none;
    border-top: 2px solid #f3f4f6;
    margin: 2rem 0;
}

.blog-content .lead {
    font-size: 1.175rem;
    line-height: 1.78;
    color: #374151;
}

.blog-content figcaption {
    text-align: center;
    font-size: 0.82rem;
    color: #9ca3af;
    margin-top: 0.5rem;
    font-style: italic;
}


@media (max-width: 767px) {
    .blog-content {
        font-size: 1rem;
        line-height: 1.75;
    }

    .blog-content .indice-chart-header,
    .blog-content .indice-donut-wrap {
        display: block;
    }

    .blog-content .indice-chart-legend {
        margin-top: 0.8rem;
    }

    .blog-content .indice-donut {
        margin: 0 auto 1rem;
    }

    .blog-content .indice-kpi-grid {
        grid-template-columns: 1fr;
    }
}
