/* ── SRVogue Sidebar Shared + Popular Posts ─────────────────── */

:root {
    --srvw-accent:   #c4623a;
    --srvw-dark:     #1a1a2e;
    --srvw-muted:    #6b7280;
    --srvw-border:   #e8e3dc;
    --srvw-bg:       #faf8f6;
    --srvw-white:    #fff;
    --srvw-serif:    'Playfair Display', Georgia, serif;
    --srvw-sans:     'DM Sans', system-ui, sans-serif;
    --srvw-radius:   10px;
}

/* ── Widget Wrapper ─────────────────────────────────────────── */
.srvw-sidebar-block {
    font-family: var(--srvw-sans);
    margin-bottom: 28px;
}

.srvw-widget-inner {
    background: var(--srvw-white);
    border: 1px solid var(--srvw-border);
    border-radius: var(--srvw-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.srvw-widget-heading {
    font-family: var(--srvw-serif);
    font-size: 17px;
    font-weight: 600;
    color: var(--srvw-dark);
    margin: 0;
    padding: 16px 20px 14px;
    border-bottom: 2px solid var(--srvw-accent);
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--srvw-bg);
}

.srvw-widget-heading-icon {
    font-size: 16px;
    line-height: 1;
}

/* ── Popular Posts List ─────────────────────────────────────── */
.srvw-popular-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.srvw-popular-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--srvw-border);
    text-decoration: none;
    color: inherit;
    transition: background .15s;
}

.srvw-popular-item:last-child { border-bottom: none; }
.srvw-popular-item:hover { background: var(--srvw-bg); }

/* Number badge */
.srvw-popular-num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    background: var(--srvw-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.srvw-popular-item:nth-child(1) .srvw-popular-num { background: #c4623a; }
.srvw-popular-item:nth-child(2) .srvw-popular-num { background: #d97706; }
.srvw-popular-item:nth-child(3) .srvw-popular-num { background: #059669; }

/* Thumbnail */
.srvw-popular-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--srvw-border);
}

.srvw-popular-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.srvw-popular-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0ebe4;
    font-size: 20px;
}

/* Content */
.srvw-popular-content { flex: 1; min-width: 0; }

.srvw-popular-category {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--srvw-accent);
    margin: 0 0 4px;
}

.srvw-popular-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--srvw-dark);
    line-height: 1.4;
    margin: 0 0 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.srvw-popular-item:hover .srvw-popular-title { color: var(--srvw-accent); }

.srvw-popular-meta {
    font-size: 11px;
    color: var(--srvw-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.srvw-popular-meta svg {
    width: 11px;
    height: 11px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

/* ── Editor placeholder ─────────────────────────────────────── */
.srvw-editor-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: #fff9f5;
}

.srvw-notice-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }

.srvw-editor-notice strong {
    display: block;
    font-size: 14px;
    color: var(--srvw-dark);
    margin-bottom: 4px;
}

.srvw-editor-notice p {
    font-size: 13px;
    color: var(--srvw-muted);
    margin: 0;
    line-height: 1.5;
}
