/* MOSCAP Core asset — FluentSnippets "TMP ID SYSTEM (CSS)" (46-tmp-id-system-css.php, run_at=wp_head)
   снипетээс 2026-11-22-нд нүүлгэсэн; includes/assets.php ачаална. Энэ толгойноос
   бусад код өөрчлөгдөөгүй.
*/

/* =============================================
   MOSCAP — TMP ID System CSS
   FluentSnippets > TMP ID SYSTEM (CSS) > Frontend Head
============================================= */

/* ——— ID picker dropdown ——— */
.moscap-id-picker {
    margin-top: 8px;
    background: #fff;
    border: 1.5px solid #006EB4;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    z-index: 100;
}
.moscap-id-picker__label {
    font-size: 12px;
    font-weight: 700;
    color: #006EB4;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e0edf8;
}
.moscap-id-picker__btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    border: 1px solid #e0edf8;
    border-radius: 6px;
    background: #f8fbfe;
    font-size: 13px;
    color: #1e3a5f;
    cursor: pointer;
    margin-bottom: 6px;
    transition: all 0.2s ease;
    font-family: 'Noto Sans', sans-serif;
}
.moscap-id-picker__btn:hover {
    background: #e0f0ff;
    border-color: #006EB4;
}
.moscap-id-picker__btn:last-child { margin-bottom: 0; }
.moscap-id-picker__btn--tmp {
    background: rgba(245,158,11,0.08);
    border-color: rgba(245,158,11,0.3);
    color: #92400e;
    font-style: italic;
}
.moscap-id-picker__btn--tmp:hover {
    background: rgba(245,158,11,0.15);
    border-color: #f59e0b;
}
.moscap-id-picker__role {
    font-size: 11px;
    color: #6b7280;
    margin-left: 6px;
}

/* ——— ID hints ——— */
.moscap-id-hint {
    font-size: 11px;
    font-weight: 600;
    margin-top: 5px;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}
.moscap-id-hint--success {
    color: #059669;
    background: rgba(16,185,129,0.1);
}
.moscap-id-hint--warning {
    color: #d97706;
    background: rgba(245,158,11,0.1);
}
.moscap-id-hint--info {
    color: #006EB4;
    background: rgba(0,110,180,0.08);
}

/* ——— TMP ID display in works list ——— */
.moscap-tmp-id {
    color: #d97706;
    font-weight: 700;
    font-size: 11px;
    background: rgba(245,158,11,0.12);
    border: 1px solid rgba(245,158,11,0.3);
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

/* ——— Merge modal ——— */
#moscap-merge-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.mmm-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6,16,30,0.85);
    backdrop-filter: blur(4px);
}
.mmm-box {
    position: relative;
    z-index: 1;
    background: #0d2240;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    width: 100%;
    max-width: 560px;
    box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}
.mmm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mmm-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    font-family: 'Inter', sans-serif;
}
.mmm-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
}
.mmm-close:hover { color: #fff; background: rgba(255,255,255,0.1); }
.mmm-body { padding: 24px; }
.mmm-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 6px;
    display: block;
    font-family: 'Inter', sans-serif;
}
.mmm-tmp-display {
    font-size: 14px;
    font-weight: 700;
    color: #f59e0b;
    background: rgba(245,158,11,0.12);
    border: 1px solid rgba(245,158,11,0.3);
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-family: monospace;
}
.mmm-works-list {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    max-height: 160px;
    overflow-y: auto;
}
.mmm-work-item {
    font-size: 12px;
    color: rgba(255,255,255,0.65);
    padding: 4px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mmm-work-item:last-child { border-bottom: none; }
.mmm-work-item strong { color: #fff; }
.mmm-real-id-input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    background: rgba(255,255,255,0.07);
    border: 1.5px solid rgba(255,255,255,0.12);
    border-radius: 7px;
    font-size: 13px;
    color: #fff;
    font-family: monospace;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
    margin-bottom: 16px;
}
.mmm-real-id-input:focus { border-color: #006EB4; }
.mmm-real-id-input::placeholder { color: rgba(255,255,255,0.25); }
.mmm-alert {
    padding: 10px 14px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    display: none;
}
.mmm-alert--error   { background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }
.mmm-alert--success { background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.3); color: #6ee7b7; }
.mmm-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.mmm-btn {
    height: 38px;
    padding: 0 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}
.mmm-btn--cancel { background: transparent; border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.7); }
.mmm-btn--cancel:hover { border-color: rgba(255,255,255,0.4); color: #fff; }
.mmm-btn--merge { background: #006EB4; border-color: #006EB4; color: #fff; }
.mmm-btn--merge:hover { background: #1a87cf; border-color: #1a87cf; }
.mmm-btn--merge:disabled { opacity: 0.6; cursor: not-allowed; }

/* ——— Merge button in artist edit modal ——— */
.maem-merge-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    color: #f59e0b !important;
    border: 1.5px solid #f59e0b;
    border-radius: 5px;
    cursor: pointer;
    background: transparent;
    transition: all 0.2s;
    text-decoration: none !important;
    white-space: nowrap;
    margin-top: 8px;
}
.maem-merge-btn:hover {
    background: #f59e0b;
    color: #fff !important;
}
