@use "../../../styles/mixins.scss";

.organizerList {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.organizerItem {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--mantine-color-gray-3);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    position: relative;

    &:hover {
        background: var(--mantine-color-gray-0);
        border-color: var(--mantine-color-primary-5);
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);

        .selectIcon {
            opacity: 1;
        }
    }

    &:active {
        transform: translateY(0);
    }
}

.organizerLogo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--mantine-color-gray-1);

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.logoPlaceholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mantine-color-gray-2);
    color: var(--mantine-color-gray-6);
}

.organizerInfo {
    flex: 1;
    min-width: 0;
}

.organizerName {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--mantine-color-gray-9);
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.selectIcon {
    color: var(--mantine-color-primary-6);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.emptyState {
    text-align: center;
    padding: 40px 20px;
    color: var(--mantine-color-gray-6);

    svg {
        margin-bottom: 16px;
        opacity: 0.5;
    }

    p {
        margin: 0;
        font-size: 0.875rem;
    }
}

.createButton {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    border: 1px dashed var(--mantine-color-gray-4);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    color: var(--mantine-color-gray-6);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;

    &:hover {
        border-color: var(--mantine-color-primary-5);
        color: var(--mantine-color-primary-6);
        background: var(--mantine-color-primary-0);
    }
}

.archivedToggle {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 8px 4px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--mantine-color-gray-6);
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 4px;

    &:hover {
        color: var(--mantine-color-gray-8);
    }
}

.archivedCount {
    color: var(--mantine-color-gray-5);
    font-weight: 400;
}

.archivedItem {
    composes: organizerItem;
    opacity: 0.6;
    border-color: var(--mantine-color-gray-2);

    &:hover {
        opacity: 0.85;
    }
}

.archiveBadge {
    display: flex;
    align-items: center;
    color: var(--mantine-color-gray-5);
}
