/* ── Mijn Liga's page ─────────────────────────────────────────────── */

.ligas-section {
    padding-top: 1.5em;
}

/* Page header */
.ligas-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.ligas-page-header-text {
    max-width: 640px;
}

.ligas-eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #ee1e46;
    margin-bottom: 8px;
}

.ligas-title {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
    margin: 0;
}

.ligas-lead {
    font-size: 15px;
    color: #94A3B8;
    line-height: 1.55;
    margin: 10px 0 0;
}

.ligas-create-btn {
    background: #ee1e46;
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.3px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(238, 30, 70, 0.33);
    transition: transform 0.15s, box-shadow 0.15s;
    white-space: nowrap;
}

.ligas-create-btn:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(238, 30, 70, 0.4);
    opacity: 1;
}

.ligas-create-btn span[aria-hidden="true"] {
    font-size: 18px;
    line-height: 1;
}

/* Card grid */
.liga-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.liga-card {
    position: relative;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: border-color 0.15s, transform 0.15s;
    overflow: hidden;
}

.liga-card:hover {
    border-color: rgba(255, 255, 255, 0.14);
}

.liga-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 14px 14px 0 0;
}

.liga-card--user .liga-card-accent {
    background: #ee1e46;
}

.liga-card--global .liga-card-accent {
    background: #F59E0B;
}

.liga-card--global {
    background: linear-gradient(160deg, rgba(245, 158, 11, 0.06), rgba(255, 255, 255, 0.01));
    border-color: rgba(245, 158, 11, 0.22);
}

.liga-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.liga-card-tournament {
    font-size: 10px;
    font-weight: 700;
    color: #64748B;
    letter-spacing: 1.2px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.liga-card--global .liga-card-tournament {
    color: #F59E0B;
}

.liga-card-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    line-height: 1.25;
    word-break: break-word;
}

.liga-card-name:hover {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: rgba(238, 30, 70, 0.6);
    opacity: 1;
}

.liga-role {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 4px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.liga-role--admin {
    background: rgba(238, 30, 70, 0.15);
    color: #ee1e46;
    border: 1px solid rgba(238, 30, 70, 0.35);
}

.liga-role--lid {
    background: rgba(255, 255, 255, 0.06);
    color: #94A3B8;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.liga-role--global {
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

/* Stats row */
.liga-card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    gap: 8px;
}

.liga-card-stat-label {
    font-size: 9px;
    font-weight: 700;
    color: #64748B;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.liga-card-stat-value {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.liga-card-rank {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.liga-card-rank--top {
    color: #FBBF24;
}

.liga-card-rank-total {
    font-size: 11px;
    color: #475569;
    font-weight: 500;
    margin-left: 2px;
}

.liga-card-leader {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Card actions */
.liga-card-actions {
    display: flex;
    gap: 8px;
}

.liga-card-btn {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.liga-card-btn--primary {
    flex: 1;
    background: #ee1e46;
    color: #fff;
}

.liga-card-btn--primary:hover {
    background: #d31a3d;
    color: #fff;
    opacity: 1;
}

.liga-card-btn--ghost {
    background: rgba(255, 255, 255, 0.04);
    color: #E5E7EB;
    border-color: rgba(255, 255, 255, 0.08);
    font-weight: 600;
}

.liga-card-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    opacity: 1;
}

/* Empty state */
.liga-empty {
    padding: 48px 32px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.10);
    border-radius: 14px;
}

.liga-empty-icon {
    font-size: 38px;
    margin-bottom: 10px;
}

.liga-empty-title {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.liga-empty-sub {
    font-size: 14px;
    color: #94A3B8;
    margin-bottom: 18px;
}

/* Join card */
.liga-join-card {
    margin-top: 28px;
    padding: 22px;
    background: linear-gradient(135deg, rgba(238, 30, 70, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(238, 30, 70, 0.25);
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.liga-join-eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;
    color: #ee1e46;
    margin-bottom: 6px;
}

.liga-join-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.liga-join-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.liga-join-input {
    padding: 11px 14px;
    border-radius: 10px;
    min-width: 220px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s;
}

.liga-join-input:focus {
    border-color: #ee1e46;
}

.liga-join-input::placeholder {
    color: #64748B;
}

.liga-join-btn {
    padding: 11px 18px;
    border-radius: 10px;
    background: #fff;
    color: #0B0F14;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.15s;
}

.liga-join-btn:hover {
    transform: translateY(-1px);
}

@media (max-width: 575px) {
    .ligas-title {
        font-size: 28px;
    }

    .liga-card-stats {
        grid-template-columns: 1fr 1fr;
    }

    .liga-card-stats > .liga-card-stat:nth-child(3) {
        grid-column: 1 / -1;
    }

    .liga-join-input {
        min-width: 0;
        flex: 1;
    }
}
