/* Membership Manager — Public Styles */

/* ─── Notices ─── */
.mm-notice {
    padding: 14px 18px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 15px;
}
.mm-success { background: #d1fae5; border-left: 4px solid #10b981; color: #065f46; }
.mm-warning { background: #fef3c7; border-left: 4px solid #f59e0b; color: #92400e; }
.mm-error   { background: #fee2e2; border-left: 4px solid #ef4444; color: #991b1b; }
.mm-locked  { background: #f1f5f9; border-left: 4px solid #94a3b8; color: #334155; }

/* ─── Buttons ─── */
.mm-button {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    line-height: 1.4;
    transition: opacity .15s;
}
.mm-button:hover { opacity: .88; }
.mm-button-primary   { background: #2271b1; color: #fff; }
.mm-button-secondary { background: #f0f0f1; color: #1d2327; }
.mm-button-sm        { padding: 6px 14px; font-size: 13px; margin-left: 10px; }

/* ─── Registration Form ─── */
.mm-registration-wrapper { max-width: 680px; margin: 0 auto; }
.mm-registration-form    { margin-top: 24px; }

.mm-form-row   { margin-bottom: 18px; }
.mm-form-half,
.mm-form-thirds {
    display: grid;
    gap: 16px;
}
.mm-form-half   { grid-template-columns: 1fr 1fr; }
.mm-form-thirds { grid-template-columns: 1fr 1fr 1fr; }

@media (max-width: 600px) {
    .mm-form-half,
    .mm-form-thirds { grid-template-columns: 1fr; }
}

.mm-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 14px;
}
.mm-field .required { color: #d63638; }
.mm-field input,
.mm-field select,
.mm-field textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
    background: #fff;
}
.mm-field input:focus,
.mm-field select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34,113,177,.2);
}
.mm-submit-row   { margin-top: 28px; }
.mm-privacy-note { font-size: 13px; color: #666; margin-bottom: 14px; }

/* ─── Roster ─── */
.mm-roster-wrapper { overflow-x: auto; }
.mm-roster-intro   { color: #666; margin-bottom: 16px; }
.mm-roster-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}
.mm-roster-table th,
.mm-roster-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}
.mm-roster-table thead { background: #f8fafc; font-weight: 700; }
.mm-roster-table tbody tr:hover { background: #f8fafc; }

/* ─── My Membership ─── */
.mm-my-membership { max-width: 520px; }
.mm-info-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.mm-info-table th,
.mm-info-table td { padding: 9px 14px; border-bottom: 1px solid #e5e7eb; text-align: left; }
.mm-info-table th  { width: 38%; font-weight: 600; color: #666; background: #f8fafc; }

/* ─── Status badges (public) ─── */
.mm-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: capitalize;
}
.mm-status-active   { background: #d1fae5; color: #065f46; }
.mm-status-pending  { background: #fef3c7; color: #92400e; }
.mm-status-expired  { background: #fee2e2; color: #991b1b; }
.mm-status-inactive { background: #f1f5f9; color: #475569; }

/* ─── Type badges (public) ─── */
.mm-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    vertical-align: middle;
}
.mm-badge-sm { font-size: 10px; padding: 1px 6px; }
.mm-type-standard   { background: #e0f2fe; color: #0369a1; }
.mm-type-lifetime   { background: #fef9c3; color: #713f12; }
.mm-type-silent_key { background: #ede9fe; color: #4c1d95; }

/* ─── Roster contact icons ─── */
.mm-contact-cell { white-space: nowrap; }
.mm-contact-link, .mm-contact-addr {
    display: inline-block;
    font-size: 18px;
    margin-right: 4px;
    text-decoration: none;
    cursor: default;
    opacity: .75;
    transition: opacity .15s;
}
.mm-contact-link:hover { opacity: 1; }

/* ─── Silent Key section ─── */
.mm-sk-section {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 2px solid #ede9fe;
}
.mm-sk-title {
    color: #4c1d95;
    font-size: 18px;
    margin-bottom: 6px;
}
.mm-sk-desc { color: #666; font-style: italic; margin-bottom: 16px; }
.mm-sk-table { opacity: .85; }
.mm-sk-table tbody tr td { color: #555; }

/* ─── Privacy form ─── */
.mm-divider { border: none; border-top: 1px solid #e5e7eb; margin: 32px 0; }
.mm-privacy-intro { color: #555; margin-bottom: 16px; }
.mm-privacy-options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.mm-privacy-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    background: #fafafa;
    transition: background .15s;
}
.mm-privacy-row:hover { background: #f0f9ff; }
.mm-privacy-row input[type=checkbox] { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; }
.mm-privacy-row span strong { display: block; }
.mm-privacy-row span small { color: #888; }
.mm-privacy-note { font-size: 13px; color: #666; margin-bottom: 14px; }


/* ─── Access Denied ─── */
.mm-access-denied { text-align: center; padding: 60px 20px; }
.mm-access-denied h1 { font-size: 32px; margin-bottom: 16px; }
.mm-access-denied .mm-button { margin: 6px; }

/* Callsign QRZ links */
.mm-callsign-link { font-weight: bold; text-decoration: none; color: inherit; }
.mm-callsign-link:hover { text-decoration: underline; }
.mm-ext-icon { font-size: 11px; opacity: 0.6; }

/* ARRL badge */
.mm-arrl-yes { color: #00a32a; font-weight: bold; }

/* ── Roster search ── */
.mm-roster-search-form  { margin-bottom: 1em; }
.mm-roster-search       { display: flex; gap: .5em; align-items: center; flex-wrap: wrap; }
.mm-roster-search-input { padding: .4em .6em; border: 1px solid #ccc; border-radius: 3px; font-size: .95em; min-width: 220px; }
.mm-roster-search-btn   { padding: .4em .9em; background: #2271b1; color: #fff; border: none; border-radius: 3px; cursor: pointer; font-size: .95em; }
.mm-roster-search-btn:hover { background: #135e96; }
.mm-roster-clear        { font-size: .9em; color: #666; }

/* ── Roster sortable column headers ── */
.mm-roster-table th.mm-sortable a {
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}
.mm-roster-table th.mm-sortable a:hover { text-decoration: underline; }
.mm-roster-table th.mm-sort-active a    { color: #2271b1; font-weight: 600; }
