/* assets/css/asbam-resultats.css */

/* ── Front-end ─────────────────────────────────────────────────────────── */

.asbam-matches-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 700px;
}

.asbam-match {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.asbam-match--played    { border-left: 4px solid #2e7d32; }
.asbam-match--scheduled { border-left: 4px solid #1565c0; }
.asbam-match--postponed { border-left: 4px solid #e65100; opacity: .75; }

.asbam-match__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    background: #f5f5f5;
    font-size: .75rem;
    color: #555;
}

.asbam-match__location--home { color: #2e7d32; font-weight: 600; }
.asbam-match__location--away { color: #1565c0; font-weight: 600; }

.asbam-match__teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    gap: 8px;
}

.asbam-match__team {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 1rem;
    flex: 1;
}

.asbam-match__team--away { justify-content: flex-end; text-align: right; }

.asbam-match__logo {
    height: 36px;
    width: 36px;
    object-fit: contain;
    border-radius: 4px;
}

.asbam-match__score {
    text-align: center;
    min-width: 80px;
}

.asbam-match__score strong { font-size: 1.4rem; }

.asbam-match__sets {
    display: flex;
    gap: 4px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 4px;
}

.asbam-match__sets span {
    background: #f0f0f0;
    border-radius: 3px;
    padding: 1px 5px;
    font-size: .7rem;
    color: #444;
}

.asbam-match__score-date { font-size: .9rem; color: #333; }

.asbam-match__footer {
    padding: 5px 12px 8px;
    font-size: .75rem;
    color: #777;
    display: flex;
    gap: 16px;
}

.asbam-empty {
    color: #888;
    font-style: italic;
    padding: 12px 0;
}

/* Standings */
.asbam-standings__table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}

.asbam-standings__table th,
.asbam-standings__table td {
    padding: 6px 10px;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
}

.asbam-standings__table th { background: #f5f5f5; font-weight: 600; }
.asbam-standings__table td:nth-child(2) { text-align: left; }
.asbam-standings__row--asbam { background: #e8f5e9; font-weight: 600; }

/* ── Admin ─────────────────────────────────────────────────────────────── */

.asbam-admin .asbam-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 20px;
    max-width: 800px;
}

.asbam-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: .8rem;
}

.asbam-badge--ok   { background: #e8f5e9; color: #2e7d32; }
.asbam-badge--auto { background: #fff8e1; color: #e65100; }
.asbam-badge--none { background: #fce4ec; color: #c62828; }

#asbam-import-result {
    padding: 12px;
    background: #f5f5f5;
    border-radius: 4px;
    font-family: monospace;
    font-size: .85rem;
    white-space: pre;
}
