/* ========================================
   Club Admin Modal
   ======================================== */

/* Overlay (full-screen backdrop) */
.club-adm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.club-adm-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal card */
.club-adm-modal {
    background: var(--HM-card-bg);
    border: 1px solid var(--HM-border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 440px;
    transform: translateY(-16px) scale(0.98);
    transition: transform 0.2s ease;
    overflow: hidden;
}

.club-adm-modal-overlay.active .club-adm-modal {
    transform: translateY(0) scale(1);
}

/* Header */
.club-adm-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--HM-border);
}

.club-adm-modal-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--HM-text);
}

.club-adm-modal-title i {
    color: var(--HM-primary);
    font-size: 1.1rem;
}

.club-adm-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--HM-bg);
    border: 1px solid var(--HM-border);
    border-radius: 6px;
    color: var(--HM-text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.club-adm-modal-close:hover {
    background: var(--HM-border);
    color: var(--HM-text);
}

/* Body */
.club-adm-modal-body {
    padding: 1.25rem 1.5rem;
}

.club-adm-modal-hint {
    font-size: 0.875rem;
    color: var(--HM-text-muted);
    margin: 0 0 1rem 0;
}

/* Club list */
.club-adm-modal-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.club-adm-modal-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--HM-border);
    background: var(--HM-bg);
    color: var(--HM-text);
    text-decoration: none;
    transition: all 0.2s;
}

.club-adm-modal-item:hover {
    border-color: var(--HM-primary);
    background: var(--HM-card-bg);
    color: var(--HM-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.club-adm-modal-item-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--HM-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: background 0.2s;
}

.club-adm-modal-item:hover .club-adm-modal-item-icon {
    background: var(--HM-primary-hover);
}

.club-adm-modal-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
    min-width: 0;
}

.club-adm-modal-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.club-adm-modal-item-url {
    font-size: 0.78rem;
    color: var(--HM-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.club-adm-modal-item-arrow {
    color: var(--HM-text-muted);
    font-size: 0.875rem;
    flex-shrink: 0;
    transition: color 0.2s, transform 0.2s;
}

.club-adm-modal-item:hover .club-adm-modal-item-arrow {
    color: var(--HM-primary);
    transform: translateX(3px);
}

/* Responsive — full-width on small screens */
@media (max-width: 480px) {
    .club-adm-modal {
        max-width: 100%;
        border-radius: 12px 12px 0 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
    }

    .club-adm-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }
}
