/* =====================================================
   Trending Menu Bar — WordPress Plugin Stylesheet
   trending-menu-wp v1.0.0
===================================================== */

/* Bar container */
.tmw-bar {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 10px 16px;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    scrollbar-width: none;       /* Firefox */
    -ms-overflow-style: none;    /* IE/Edge */
    margin: 8px 0 12px;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.tmw-bar::-webkit-scrollbar {
    display: none;               /* Chrome/Safari */
}

/* ── Trending label ── */
.tmw-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    font-size: 13.5px;
    color: #e8372f;
    flex-shrink: 0;
    padding-right: 10px;
    border-right: 1.5px solid #e0e0e0;
    margin-right: 2px;
    line-height: 1;
}

.tmw-icon {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #e8372f;
    stroke-width: 2.2;
    flex-shrink: 0;
}

/* ── Menu items ── */
.tmw-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 13px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #333333;
    background: #f7f7f7;
    border: 1px solid #e5e5e5;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    flex-shrink: 0;
    user-select: none;
    line-height: 1.4;
}

.tmw-item:hover {
    background: #fff0f0;
    border-color: #e8372f;
    color: #e8372f !important;
    text-decoration: none !important;
}

/* Active / current category */
.tmw-item.tmw-active,
.tmw-item.current-menu-item {
    background: #e8372f;
    color: #ffffff !important;
    border-color: #e8372f;
}

.tmw-item.tmw-active:hover,
.tmw-item.current-menu-item:hover {
    background: #c0392b;
    border-color: #c0392b;
    color: #ffffff !important;
}

/* ── Badges ── */
.tmw-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tmw-badge svg {
    width: 9px;
    height: 9px;
}

.tmw-badge-red {
    background: #e8372f;
}

.tmw-badge-green {
    background: #27ae60;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .tmw-bar {
        padding: 8px 12px;
        gap: 7px;
    }

    .tmw-item {
        padding: 4px 10px;
        font-size: 12px;
    }

    .tmw-label {
        font-size: 12.5px;
    }
}
