/**
 * Roster Trash Modal Styles
 * 
 * Styles for the roster trash management modal
 */

/* Modal Overlay */
.roster-trash-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.roster-trash-modal.open {
    opacity: 1;
}

/* Modal Content */
.roster-trash-modal-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 700px;
    width: 90%;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Make modal draggable */
.roster-trash-modal-content.draggable .roster-trash-modal-header {
    cursor: move;
    user-select: none;
}

/* Modal Header */
.roster-trash-modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.roster-trash-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.roster-trash-modal-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.roster-trash-modal-close-btn:hover {
    color: #333;
}

/* Tab Navigation */
.trash-tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    background: #f8f9fa;
}

.trash-tab {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
    position: relative;
    bottom: -2px;
}

.trash-tab:hover {
    background: #e9ecef;
    color: #333;
}

.trash-tab.active {
    color: #4CAF50;
    border-bottom-color: #4CAF50;
    background: #fff;
}

/* Sort Controls */
.trash-sort-controls {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sort-label {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
    white-space: nowrap;
}

.trash-sort-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #333;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease;
    min-width: 200px;
}

.trash-sort-select:hover {
    border-color: #999;
}

.trash-sort-select:focus {
    outline: none;
    border-color: #4CAF50;
}

/* Modal Body */
.roster-trash-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

/* Empty State */
.trash-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
}

.trash-empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.trash-empty-state p {
    font-size: 1.1rem;
    margin: 0;
}

/* Trash List */
.trash-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Trash Entry Card */
.trash-entry-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    background: #fff;
    transition: all 0.2s ease;
}

.trash-entry-card:hover {
    border-color: #bbb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.trash-entry-card.selected {
    border-color: #4CAF50;
    background: #f1f8f4;
}

/* Entry Header */
.trash-entry-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.trash-entry-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #4CAF50;
}

.trash-player-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    flex: 1;
}

/* Player Info */
.trash-player-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-left: 35px;
}

.player-info-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    background: #e9ecef;
    border-radius: 12px;
    font-size: 0.85rem;
    color: #495057;
}

.player-info-badge.gender-male {
    background: #e3f2fd;
    color: #1976d2;
}

.player-info-badge.gender-female {
    background: #fce4ec;
    color: #c2185b;
}

.player-info-badge.rating {
    background: #fff3e0;
    color: #f57c00;
}

/* Entry Bottom Row - Timestamps and Actions */
.trash-entry-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* gap: 1rem; */
    /* padding-left: 35px; */
}

/* Timestamps */
.trash-timestamps {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    flex: 1;
    min-width: 0;
    padding-right: 0.4rem;
}

.timestamp-row {
    font-size: 0.85rem;
    color: #666;
}

.timestamp-label {
    font-weight: 500;
    margin-right: 0.375rem;
}

/* Entry Actions */
.trash-entry-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.trash-action-btn {
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 4px;
    font-size: 1.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    white-space: nowrap;
}

.trash-restore-btn {
    background: #58a9f7;
    color: #fff;
}

.trash-restore-btn:hover {
    background: #45a049;
}

.trash-delete-btn {
    background: #f44336;
    color: #fff;
}

.trash-delete-btn:hover {
    background: #da190b;
}

/* Modal Footer */
.roster-trash-modal-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Mass Selection Controls */
.trash-mass-select {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trash-select-all-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #4CAF50;
}

.trash-select-all-label {
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
    user-select: none;
}

/* Mass Action Buttons */
.trash-mass-actions {
    display: flex;
    gap: 0.5rem;
}

.trash-mass-btn {
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.trash-mass-restore-btn {
    background: #4CAF50;
    color: #fff;
}

.trash-mass-restore-btn:hover:not(:disabled) {
    background: #45a049;
}

.trash-mass-delete-btn {
    background: #f44336;
    color: #fff;
}

.trash-mass-delete-btn:hover:not(:disabled) {
    background: #da190b;
}

.trash-mass-btn:disabled {
    background: #ccc;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Roster Trash Button (in main UI) */
.btn-roster-trash {
    padding: 0 0.35rem;
    background: #f57c00;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1.45rem;
    /* font-weight: 500; */
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    white-space: nowrap;
}

.btn-roster-trash:hover {
    background: #ef6c00;
}

/* Roster Actions Container */
.roster-actions-container {
    padding-right: 1.25rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .roster-trash-modal-content {
        width: 95%;
        max-height: 100dvh;
    }

    .roster-trash-modal-header {
        padding: 1rem;
    }

    .roster-trash-modal-header h2 {
        font-size: 1.25rem;
    }

    .trash-sort-controls {
        padding: 0.75rem 1rem;
        flex-direction: row;
        align-items: stretch;
    }

    .trash-sort-select {
        width: fit-content;
        min-width: auto;
    }

    .roster-trash-modal-body {
        padding: 1rem;
    }

    .trash-entry-card {
        padding: 0.5rem;
    }

    .trash-player-info {
        padding-left: 29px;
    }

    .trash-entry-bottom {
        flex-direction: row;
        align-items: stretch;
        /* padding-left: 29px; */
    }

    .trash-entry-actions {
        /* margin-top: 0.5rem; */
    }

    .roster-trash-modal-footer {
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
    }

    .trash-mass-select {
        width: 100%;
        justify-content: center;
    }

    .trash-mass-actions {
        width: 100%;
        flex-direction: column;
    }

    .trash-mass-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .roster-trash-modal-content {
        width: 100%;
        max-height: 100dvh;
        border-radius: 0;
    }

    .roster-trash-modal-header {
        border-radius: 0;
    }

    .roster-trash-modal-footer {
        border-radius: 0;
    }

    .trash-player-name {
        font-size: 1rem;
    }

    .trash-entry-header {
        gap: 0.5rem;
    }

    .trash-player-info {
        padding-left: 25px;
    }

    .trash-entry-bottom {
        /* padding-left: 25px; */
    }

    .player-info-badge {
        font-size: 0.8rem;
        padding: 0.2rem 0.5rem;
    }

    .timestamp-row {
        font-size: 0.8rem;
    }

    .btn-roster-trash {
        /* font-size: 1.2rem; */
        /* padding: 0.1rem; */
    }
}

/* Card Removal Animations */
@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-100%);
    }
}

@keyframes fadeOutUp {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
}

/* Animation classes */
.trash-entry-card.animating-restore {
    animation: slideOutLeft 0.4s ease-out forwards;
}

.trash-entry-card.animating-delete {
    animation: fadeOutUp 0.4s ease-out forwards;
}

.trash-entry-card.animating-send-to-trash {
    animation: slideOutRight 0.4s ease-out forwards;
}
