/* ================================ */
/* # View: Workout Collection       */
/* ================================ */

/* ------- */
/* Content */
/* ------- */
.view-workout-collection-content {
    width: 100cqw;
    height: 100cqh;
    container-type: size;
    overflow: hidden;

    display: grid;
    grid-template-columns: 100cqw;
    grid-template-rows: 84cqh 14cqh;
    gap: 2cqh;
}

.collection-list {
    container-type: size;
    height: 100%;
    overflow-y: auto;
}

.workout-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10cqh;
    padding: 2cqh 6cqw 2cqh 4cqw;
    margin: 0, 10cqw, 0, 0;    
    background: var(--ocean-deep-mid);
    margin: 0 2cqw 2cqh 0;

    border-radius: 100cqh;
    transition: all 0.2s;
    cursor: pointer;
}

.workout-item:hover {
    background: none;
}

.workout-item-selected {
    background: none;
    border: 1cqh solid var(--ocean-deep-mid);
}

.workout-item-name {
    flex: 1;
    color: var(--color-text);
    font-size: 3dvh;
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
}

.workout-item-actions {
    display: flex;
    gap: 1cqh;
    flex-shrink: 0;
}

.workout-item-actions .btn {
    padding: 1cqh 2cqw 1cqh 2cqw;
    font-size: 4cqh;
    background: var(--button-delete-bg);
    border: var(--button-delete-border);
    border-radius: 2cqh;
    color: white;
    font-weight: 700;
}

.btn-delete {
    background: linear-gradient(135deg, #8b0000 0%, #b22222 100%);
    color: white;
    font-size: 3.5dvh;
    font-weight: 700;
}

.btn-delete:hover {
    background: linear-gradient(135deg, #b22222 0%, #dc143c 100%);
}
