/* ── MCSMP Blocks — Shared Styles ─────────────────────────────────────────── */

.mcsmp-block {
    font-family: inherit;
    box-sizing: border-box;
}

/* ── Stat card (online-guests / online-members) ───────────────────────────── */

.mcsmp-stat {
    display:         flex;
    flex-direction:  column;
    align-items:     center;
    justify-content: center;
    gap:             .4rem;
    padding:         1.75rem 1.5rem;
    background:      #111827;
    border:          1px solid #1f2937;
    border-radius:   12px;
    color:           #e5e7eb;
    text-align:      center;
}

.mcsmp-stat__label {
    font-size:      .75rem;
    font-weight:    600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color:          #6b7280;
}

.mcsmp-stat__value {
    font-size:   3rem;
    font-weight: 800;
    line-height: 1;
    color:       #fbbf24;
}

/* ── Stale / error notices ────────────────────────────────────────────────── */

.mcsmp-stale {
    font-size:  .7rem;
    color:      #f59e0b;
    margin-top: .25rem;
}

.mcsmp-no-data {
    font-size:  .8rem;
    color:      #6b7280;
    font-style: italic;
}

/* ── Refresh button ───────────────────────────────────────────────────────── */

.mcsmp-refresh {
    display:     flex;
    align-items: center;
    gap:         .75rem;
    flex-wrap:   wrap;
}

.mcsmp-refresh__btn {
    padding:        .5rem 1.25rem;
    background:     #065f46;
    color:          #ecfdf5;
    border:         1px solid #047857;
    border-radius:  6px;
    cursor:         pointer;
    font-size:      .875rem;
    font-weight:    600;
    letter-spacing: .02em;
    transition:     background .15s, opacity .15s;
}

.mcsmp-refresh__btn:hover    { background: #047857; }
.mcsmp-refresh__btn:disabled { opacity: .55; cursor: not-allowed; }

.mcsmp-refresh__status {
    font-size: .75rem;
    color:     #9ca3af;
}

/* ── Tables (members-list / top-playtime) ─────────────────────────────────── */

.mcsmp-table-header {
    font-size:      .75rem;
    font-weight:    700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color:          #6b7280;
    margin-bottom:  .5rem;
    display:        flex;
    align-items:    center;
    gap:            .5rem;
}

.mcsmp-count {
    background:    #1f2937;
    color:         #9ca3af;
    border-radius: 9999px;
    padding:       .1rem .5rem;
    font-size:     .7rem;
}

.mcsmp-table {
    width:           100%;
    border-collapse: collapse;
    font-size:       .875rem;
    color:           #e5e7eb;
}

.mcsmp-table th {
    text-align:     left;
    padding:        .4rem .75rem;
    border-bottom:  2px solid #1f2937;
    font-size:      .7rem;
    font-weight:    700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color:          #6b7280;
}

.mcsmp-table td {
    padding:       .45rem .75rem;
    border-bottom: 1px solid #1a2030;
    vertical-align: middle;
}

.mcsmp-table tr:last-child td { border-bottom: none; }
.mcsmp-table tr:hover td      { background: #0f172a; }

/* ── Online / offline dots ────────────────────────────────────────────────── */

.mcsmp-dot         { font-size: .55rem; vertical-align: middle; }
.mcsmp-dot--online  { color: #34d399; }
.mcsmp-dot--offline { color: #374151; }

.mcsmp-online-badge {
    font-size:     .7rem;
    font-weight:   600;
    color:         #34d399;
    background:    #052e16;
    border-radius: 4px;
    padding:       .1rem .35rem;
}

.mcsmp-seen { color: #6b7280; font-size: .8rem; }

/* ── Group badges ─────────────────────────────────────────────────────────── */

.mcsmp-group {
    font-size:     .7rem;
    font-weight:   700;
    padding:       .1rem .4rem;
    border-radius: 4px;
    text-transform: capitalize;
}

.mcsmp-group--donator { color: #fbbf24; background: #1c1400; }
.mcsmp-group--member  { color: #e5e7eb; background: #1f2937; }
.mcsmp-group--guest   { color: #9ca3af; background: #111827; }

/* ── Leaderboard ranks ────────────────────────────────────────────────────── */

.mcsmp-rank     { font-size: 1.3rem; text-align: center; width: 2.5rem; }
.mcsmp-rank-num { font-size: .8rem; font-weight: 700; color: #6b7280; }
.mcsmp-name     { font-weight: 600; }
.mcsmp-time     { font-family: ui-monospace, monospace; color: #6ee7b7; font-size: .8rem; }

.mcsmp-empty { color: #6b7280; font-style: italic; font-size: .85rem; }

/* ── Editor placeholders ──────────────────────────────────────────────────── */

.mcsmp-editor-placeholder {
    display:         flex;
    flex-direction:  column;
    align-items:     center;
    justify-content: center;
    gap:             .35rem;
    padding:         1.5rem;
    border:          2px dashed #4338ca;
    border-radius:   10px;
    background:      #0c0a1e;
    color:           #a5b4fc;
    min-height:      90px;
    text-align:      center;
}

.mcsmp-editor-placeholder__icon  { font-size: 1.5rem; line-height: 1; }
.mcsmp-editor-placeholder__title { font-weight: 700; font-size: .9rem; color: #c7d2fe; }
.mcsmp-editor-placeholder__hint  { font-size: .72rem; color: #6366f1; }
