/* ──────────────────────────────────────────────────────────────────────
   Azione Cristiana — Tessere associative
   CSS isolato con prefisso .act- per non interferire col tema/altri plugin.
   v0.1.0
   ────────────────────────────────────────────────────────────────────── */

/* ─── La mia tessera (area riservata) ────────────────────────────────── */
.act-my-card {
    font-family: inherit;
}
.act-my-card .act-my-card-title {
    margin: 0 0 12px;
    font-size: 1.1em;
}
.act-card-info {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
}
.act-card-info th,
.act-card-info td {
    padding: 6px 8px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}
.act-card-info th {
    color: #666;
    font-weight: 600;
    width: 38%;
}
.act-card-info code {
    background: #f7f7f7;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

/* ─── Status badge ───────────────────────────────────────────────────── */
.act-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}
.act-status--attiva     { background: #198754; }
.act-status--sospesa    { background: #fd7e14; }
.act-status--revocata   { background: #dc3545; }
.act-status--scaduta    { background: #6c757d; }
.act-status--sostituita { background: #6f42c1; }

/* ─── Messaggi ───────────────────────────────────────────────────────── */
.act-msg {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin: 8px 0;
}
.act-msg--info    { background: #e7f3ff; border-left: 3px solid #0d6efd; color: #084298; }
.act-msg--warning { background: #fff8e1; border-left: 3px solid #ffc107; color: #856404; }
.act-msg--error   { background: #f8d7da; border-left: 3px solid #dc3545; color: #842029; }

/* ─── Verifica pubblica tessera ──────────────────────────────────────── */
.act-verify-wrap {
    max-width: 520px;
    margin: 40px auto;
    padding: 0 16px;
}
.act-verify-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    padding: 28px;
    text-align: center;
}
.act-verify-brand h2 {
    margin: 0 0 4px;
    font-size: 1.4em;
    color: #1a2540;
}
.act-verify-sub {
    color: #666;
    font-size: 13px;
    margin: 0 0 24px;
}
.act-verify-result {
    padding: 22px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
}
.act-verify-result--valid {
    background: #d1e7dd;
    color: #0a3622;
}
.act-verify-result--invalid {
    background: #f8d7da;
    color: #58151c;
}
.act-verify-result--neutral {
    background: #e9ecef;
    color: #495057;
}
.act-verify-icon {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 6px;
}
.act-verify-result h3 {
    margin: 6px 0 12px;
    font-size: 1.3em;
}
.act-verify-meta {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    text-align: left;
    display: inline-block;
}
.act-verify-meta li {
    padding: 4px 0;
    font-size: 14px;
}
.act-verify-meta code {
    background: rgba(0,0,0,0.06);
    padding: 2px 6px;
    border-radius: 4px;
}
.act-verify-note {
    font-size: 12px;
    color: #666;
    margin-top: 16px;
    font-style: italic;
}
