/* ═══════════════════════════════════════════════════════════════════════════
   MK Event Card — componente unificato per tutte le liste eventi
   Classe root: .mk-ev-card
   Usato da: [eventi_correlati], [eventi_musicista], [eventi_locale]
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Grid wrapper (usato da eventi_musicista, eventi_locale, ecc.) ── */
.mk-ev-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

/* ── Card wrapper ── */
.mk-ev-card {
    display: block;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,200,87,0.18);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none !important;
    color: #f9fafb !important;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    font-family: 'Inter', sans-serif;
}
.mk-ev-card:hover {
    border-color: rgba(255,200,87,.6);
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(255,200,87,.16);
    color: #f9fafb !important;
    text-decoration: none !important;
}
.mk-ev-card.mk-ev-past     { opacity: .68; }
.mk-ev-card.mk-ev-annullato{ opacity: .5; border-color: rgba(239,68,68,.35) !important; }
.mk-ev-card.mk-ev-ongoing  { border-color: rgba(220,53,69,.5); }

/* ── Thumbnail ─────────────────────────────────────────────────────────── */
.mk-ev-thumb {
    position: relative;
    height: 140px;
    background: #0d1f3c;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
/* Sfondi tinti per placeholder senza immagine */
.mk-ev-thumb.mk-ev-ph-concerto-live { background-color: rgba(255,200,87,.09); }
.mk-ev-thumb.mk-ev-ph-dj-set        { background-color: rgba(76,175,80,.09); }
.mk-ev-thumb.mk-ev-ph-jam-session   { background-color: rgba(33,150,243,.09); }

.mk-ev-thumb-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent 18%, rgba(10,25,48,.72) 100%);
}

/* Emoji placeholder */
.mk-ev-ph {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 44px;
    z-index: 0;
}

/* Blocco data + ora — bottom-left, sfondo colore tipologia */
.mk-ev-date-block {
    position: absolute;
    bottom: 10px; left: 10px;
    z-index: 2;
    display: flex; flex-direction: column; align-items: flex-start;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 8px;
    padding: 5px 10px 6px;
    line-height: 1;
}
.mk-ev-date-num {
    font-family: 'Poppins', sans-serif;
    font-size: 28px; font-weight: 800;
    color: #fff; line-height: 1;
}
.mk-ev-date-sub {
    font-family: 'Poppins', sans-serif;
    font-size: 10px; font-weight: 700;
    color: rgba(255,255,255,.92);
    letter-spacing: .6px; text-transform: uppercase;
    margin-top: 3px;
}

/* Container chips tipologia — in alto a destra (libero da data e status badge) */
.mk-ev-tipo-wrap {
    position: absolute;
    top: 8px; right: 8px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
/* Tipologia pill */
.mk-ev-tipo {
    font-family: 'Poppins', sans-serif;
    font-size: 9px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .6px;
    border-radius: 20px; padding: 3px 10px;
    line-height: 1.5;
    white-space: nowrap;
}

/* Badge di stato — in alto a sinistra */
.mk-ev-status-badge {
    position: absolute;
    top: 8px; left: 8px;
    z-index: 3;
    font-size: 10px; font-weight: 700;
    border-radius: 20px; padding: 3px 9px;
    line-height: 1.4;
    white-space: nowrap;
}
.mk-ev-ongoing-badge   { background: rgba(220,53,69,.9);  color: #fff; }
.mk-ev-past-badge      { background: rgba(0,0,0,.55);     color: rgba(255,255,255,.6); }
.mk-ev-annullato-badge { background: rgba(220,53,69,.9);  color: #fff; }

/* ── Body ──────────────────────────────────────────────────────────────── */
.mk-ev-body {
    padding: 13px 15px 12px;
}
.mk-ev-name {
    font-family: 'Poppins', sans-serif;
    font-size: 14px; font-weight: 700;
    color: #fff !important;
    line-height: 1.3;
    margin: 0 0 5px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Lista artisti (multi-artista) */
.mk-ev-artists {
    display: flex; flex-direction: column; gap: 3px;
    margin-bottom: 5px;
}
.mk-ev-artist-row {
    font-size: 12px;
    display: flex; align-items: center; gap: 6px;
    overflow: hidden;
}
.mk-ev-artist-row i { color: #FFC857; font-size: 10px; flex-shrink: 0; }
.mk-ev-artist-link { color: #FFC857 !important; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-ev-artist-plain { color: rgba(255,200,87,.6); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mk-ev-venue {
    font-size: 12px; color: rgba(249,250,251,.55);
    display: flex; align-items: flex-start; gap: 5px;
    margin-bottom: 3px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    max-width: 100%;
}
.mk-ev-venue i {
    color: #FFC857; flex-shrink: 0; font-size: 11px; margin-top: 1px;
}

/* Footer micro-info */
.mk-ev-footer {
    display: flex; align-items: center; flex-wrap: wrap; gap: 5px;
    margin-top: 8px;
}
.mk-ev-parts {
    font-size: 11px; color: rgba(249,250,251,.4);
    display: flex; align-items: center; gap: 3px;
}
.mk-ev-parts i { color: rgba(255,200,87,.5); font-size: 10px; }
.mk-ev-confirmed {
    font-size: 10px; font-weight: 600; color: #4ade80;
    background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.2);
    border-radius: 20px; padding: 1px 7px;
}
.mk-ev-genere {
    font-size: 10px; color: rgba(249,250,251,.32);
    margin-left: auto;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    max-width: 90px;
}

/* ── Author row (contesto mappa / lista con pubblicatore) ── */
.mk-ev-author {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 15px 10px;
    border-top: 1px solid rgba(255,255,255,.05);
}
.mk-ev-author-img {
    width: 28px; height: 28px; border-radius: 50%;
    flex-shrink: 0; border: 1.5px solid #FFC857;
    background: rgba(255,200,87,.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; overflow: hidden;
}
.mk-ev-author-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.mk-ev-author-name {
    font-size: 11px; font-weight: 600; color: #FFC857;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    line-height: 1.3;
}
.mk-ev-author-role { font-size: 10px; color: rgba(249,250,251,.32); }

/* ── Profile tipo pill (thumbnail top-left nei profili mappa) ── */
.mk-ev-profile-tipo {
    position: absolute; top: 8px; left: 8px; z-index: 3;
    font-family: 'Poppins', sans-serif; font-size: 9px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .5px;
    background: rgba(0,0,0,.55); color: rgba(255,255,255,.75);
    border-radius: 20px; padding: 3px 9px;
}

/* Genre pills (profili musicista / locali) */
.mk-ev-genre-row {
    display: flex; flex-wrap: wrap; gap: 4px;
    margin-top: 6px;
}
.mk-ev-genre-pill {
    font-size: 9px; color: rgba(249,250,251,.32);
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px; padding: 2px 8px;
    white-space: nowrap;
}

/* Badge pill — Fan Rewards, Verificato, PRO */
.mk-ev-badge-pill {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 9px; font-weight: 700;
    border-radius: 20px; padding: 2px 8px;
    white-space: nowrap;
}
.mk-ev-badge-pill.green { background: rgba(74,222,128,.1);  color: #4ade80; border: 1px solid rgba(74,222,128,.2); }
.mk-ev-badge-pill.blue  { background: rgba(96,165,250,.1);  color: #60a5fa; border: 1px solid rgba(96,165,250,.2); }
