/* UrduPro Custom Sidebars — frontend styles (BBC-style, Pakistani-green accents) */

.upcs-sidebar {
    margin: 2rem 0;
    padding: 1.25rem;
    background: #f7f7f7;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
}

.upcs-widget {
    margin-bottom: 1.75rem;
}

.upcs-widget:last-child {
    margin-bottom: 0;
}

.upcs-widget-title {
    position: relative;
    margin: 0 0 1rem;
    padding-bottom: 0.6rem;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #111;
    border-bottom: 2px solid #e3e3e3;
}

.upcs-widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 56px;
    height: 2px;
    background: #006600;
}

.upcs-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.upcs-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.upcs-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-decoration: none;
}

.upcs-thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 6px;
    overflow: hidden;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.upcs-thumb-initial {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #006600, #003d00);
}

.upcs-item-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.upcs-item-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: #111;
    line-height: 1.3;
}

.upcs-item-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: #006600;
    margin-top: 0.15rem;
}

.upcs-item-spec {
    font-size: 0.75rem;
    color: #777;
    margin-top: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Brand list */
.upcs-brand-list,
.upcs-guide-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.upcs-brand-list li a,
.upcs-guide-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0.25rem;
    border-bottom: 1px solid #e8e8e8;
    color: #222;
    text-decoration: none;
    font-size: 0.9rem;
}

.upcs-brand-list li a:hover,
.upcs-guide-list li a:hover {
    color: #006600;
}

.upcs-brand-count {
    display: inline-block;
    min-width: 26px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    background: #006600;
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
}

.upcs-note {
    font-size: 0.75rem;
    color: #888;
    margin-top: 0.6rem;
}

/* Two-column layout on wider screens when the theme allows */
@media (min-width: 1024px) {
    .upcs-sidebar--cars .upcs-items,
    .upcs-sidebar--mobiles .upcs-items,
    .upcs-sidebar--watches .upcs-items,
    .upcs-sidebar--bikes .upcs-items {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
}

@media (max-width: 600px) {
    .upcs-sidebar {
        padding: 1rem;
    }
    .upcs-thumb {
        flex-basis: 52px;
        width: 52px;
        height: 52px;
    }
}
