/* ==========================================================================
 * WIDGET MEDIA LIST (EVENT DETAIL PREMIUM)
 *
 * Visual rows for the "popular events", "nearby events" and "nearby
 * establishments" widgets: a small thumbnail (with a date badge for events), a
 * two-line title and one quiet meta line (city + category). Same language as the
 * events list cards: violet accent, soft radius, secondary text kept discreet.
 * ========================================================================== */

.wmedia-list {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.wmedia {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .35rem;
    margin: 0 -.35rem;
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    transition: background-color .15s ease;
}

.wmedia:hover {
    background: rgba(var(--primary-rgb, 109, 40, 217), .06);
    color: inherit;
}

.wmedia-thumb {
    position: relative;
    flex: none;
    width: 64px;
    height: 48px;
    overflow: hidden;
    border-radius: 8px;
    background: #f1f3f5;
}

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

/* Page screenshots (websites): anchor on the top of the page. */
.wmedia-thumb--top img {
    object-position: top center;
}

/* Placeholder: same violet gradient as the event cards. */
.wmedia-thumb-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #581c87, #7e22ce);
    color: rgba(255, 255, 255, .85);
    font-size: 1.2rem;
}

/* Date badge over the thumbnail (events). */
.wmedia-date {
    position: absolute;
    top: 3px;
    left: 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 26px;
    padding: 2px 4px 1px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .96);
    color: #1f2937;
    line-height: 1;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}

.wmedia-date b {
    font-size: .8rem;
    font-weight: 800;
}

.wmedia-date span {
    margin-top: 1px;
    font-size: .5rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--primary, #6D28D9);
}

.wmedia-body {
    min-width: 0;
    flex: 1 1 auto;
}

.wmedia-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: .85rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--bs-body-color, #1f2937);
}

.wmedia-meta {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-top: 2px;
    min-width: 0;
    font-size: .72rem;
    color: var(--text-muted, #6b7280);
    white-space: nowrap;
}

.wmedia-meta > span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wmedia-chip {
    flex: none;
    max-width: 50%;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--primary-soft-bg, #F5F3FF);
    color: var(--primary, #6D28D9);
    font-size: .64rem;
    font-weight: 600;
}
