/* ============================================================
   Meetles Alertes — UI
   Aligné sur les variables BuddyBoss (--bb-*) pour rester
   cohérent avec le thème actif.
   ============================================================ */

.meetles-alerts {
    --ma-brand: var(--bb-primary-color, #5800FF);
    --ma-bg: var(--bb-content-background-color, #fff);
    --ma-alt: var(--bb-content-alternate-background-color, #F5F7FA);
    --ma-border: var(--bb-content-border-color, #e7e9ec);
    --ma-text: var(--bb-body-text-color, #4D5C6D);
    --ma-head: var(--bb-headings-color, #122B46);
    --ma-radius: var(--bb-block-radius, 8px);
    margin: 20px 0;
    color: var(--ma-text);
}

/* --- Guest --- */
.meetles-alerts--guest {
    background: var(--ma-alt);
    border: 1px solid var(--ma-border);
    border-radius: var(--ma-radius);
    padding: 20px 24px;
    text-align: center;
}
.meetles-alerts-login-btn {
    display: inline-block;
    background: var(--ma-brand);
    color: #fff !important;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 600;
}

/* --- Form --- */
.meetles-alerts-form {
    background: var(--ma-bg);
    border: 1px solid var(--ma-border);
    border-radius: var(--ma-radius);
    padding: 22px 24px;
    box-shadow: 0 1px 3px rgba(18,43,70,.08);
}
.meetles-alerts-title { margin: 0 0 4px; font-size: 18px; color: var(--ma-head); }
.meetles-alerts-help { margin: 0 0 18px; font-size: 13px; color: var(--ma-text); }

.meetles-alerts-block { margin-bottom: 18px; }
.meetles-alerts-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ma-head);
    margin-bottom: 8px;
}
.meetles-alerts-opt { font-weight: 400; color: #9aa4b1; font-size: 12px; }

.meetles-alerts-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--ma-border);
    border-radius: var(--ma-radius);
    background: var(--ma-bg);
    color: var(--ma-head);
    font-size: 14px;
    box-sizing: border-box;
}
.meetles-alerts-input:focus {
    outline: none;
    border-color: var(--ma-brand);
    box-shadow: 0 0 0 3px rgba(88,0,255,.12);
}

.meetles-alerts-zone-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.meetles-alerts-zone-row .meetles-alerts-city { flex: 1 1 220px; }
.meetles-alerts-radius {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    white-space: nowrap;
}
.meetles-alerts-radius select { width: auto; }
.meetles-alerts-zone-hint { margin: 8px 0 0; font-size: 12px; color: #c0392b; }

.meetles-alerts-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 6px;
}
.meetles-alerts-submit {
    background: var(--ma-brand);
    color: #fff;
    border: 0;
    padding: 11px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: opacity .2s ease;
}
.meetles-alerts-submit:hover { opacity: .9; }
.meetles-alerts-submit:disabled { opacity: .6; cursor: default; }
.meetles-alerts-feedback { font-size: 13px; }
.meetles-alerts-feedback.is-ok { color: #1e7e34; }
.meetles-alerts-feedback.is-error { color: #c0392b; }

/* --- BGG autocomplete (repris de meetles-seekers) --- */
.meetles-bgg-ac { position: relative; }
.meetles-bgg-ac-input { position: relative; }
.meetles-bgg-ac-results {
    list-style: none !important;
    margin: 4px 0 0 !important;
    padding: 0 !important;
    position: absolute;
    z-index: 9999;
    left: 0; right: 0;
    background: var(--ma-bg);
    border: 1px solid var(--ma-border);
    border-radius: var(--ma-radius);
    box-shadow: 0 8px 24px rgba(18,43,70,.16);
    max-height: 320px;
    overflow-y: auto;
}
.meetles-bgg-ac-results li {
    list-style: none !important;
    margin: 0 !important;
}
.meetles-bgg-ac-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
}
.meetles-bgg-ac-item:hover { background: var(--ma-alt); }
.meetles-bgg-ac-item img,
.meetles-bgg-ac-noimg {
    width: 40px; height: 40px;
    border-radius: 6px;
    object-fit: cover;
    flex: 0 0 40px;
    display: flex; align-items: center; justify-content: center;
    background: var(--ma-alt);
    font-size: 20px;
}
.meetles-bgg-ac-meta { display: flex; flex-direction: column; }
.meetles-bgg-ac-itemname { font-size: 14px; color: var(--ma-head); }
.meetles-bgg-ac-year { font-size: 12px; color: #9aa4b1; }
.meetles-bgg-ac-loading,
.meetles-bgg-ac-empty { padding: 10px 12px; font-size: 13px; color: var(--ma-text); }

.meetles-bgg-ac-selected {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--ma-alt);
    border-radius: var(--ma-radius);
}
.meetles-bgg-ac-thumb {
    width: 48px; height: 48px;
    border-radius: 6px;
    object-fit: cover;
    border: 2px solid var(--ma-brand);
    background: #fff;
}
.meetles-bgg-ac-info { display: flex; flex-direction: column; gap: 2px; }
.meetles-bgg-ac-name { color: var(--ma-head); font-size: 14px; }
.meetles-bgg-ac-clear { color: var(--ma-brand); font-size: 12px; text-decoration: none; }
.meetles-bgg-ac-clear:hover { text-decoration: underline; }

/* --- Mes alertes --- */
.meetles-alerts-mine { margin-top: 26px; }
.meetles-alerts-mine-title {
    margin: 0 0 12px;
    font-size: 15px;
    color: var(--ma-head);
}
.meetles-alerts-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.meetles-alerts-item {
    list-style: none !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: var(--ma-bg);
    border: 1px solid var(--ma-border);
    border-radius: var(--ma-radius);
}
.meetles-alerts-item.is-paused { opacity: .55; }
.ma-crit {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    color: var(--ma-head);
}
.ma-crit .ma-thumb {
    width: 28px; height: 28px;
    border-radius: 5px;
    object-fit: cover;
    vertical-align: middle;
}
.ma-and { color: #9aa4b1; font-weight: 700; }
.ma-del {
    background: transparent;
    border: 0;
    color: #9aa4b1;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 6px;
}
.ma-del:hover { color: #c0392b; background: var(--ma-alt); }
.meetles-alerts-empty {
    list-style: none !important;
    margin: 0 !important;
    font-size: 13px;
    color: #9aa4b1;
    font-style: italic;
    padding: 8px 0;
}

/* PAC (Google Places) au-dessus de tout */
.pac-container { z-index: 100000 !important; }

@media (max-width: 600px) {
    .meetles-alerts-zone-row { flex-direction: column; align-items: stretch; }
    .meetles-alerts-radius { justify-content: space-between; }
}
