/* Custom styles to complement Tailwind */
#selection-grid {
    min-height: 200px;
}

.selection-slot {
    aspect-ratio: 2/3;
    border-radius: 0.5rem;
    border: 1px dashed rgba(212, 175, 55, 0.2);
    background: rgba(115, 17, 212, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    min-height: 120px;
}

.selection-slot.filled {
    border: 1px solid rgba(212, 175, 55, 0.3);
    background: #1e1429;
    animation: cardAppear 0.3s ease;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.selection-slot .remove-card-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #2d2d2d;
    color: #d4af37;
    border-radius: 9999px;
    padding: 4px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.selection-slot .remove-card-btn:hover {
    background: rgba(185, 28, 28, 0.4);
}

.card-option {
    aspect-ratio: 2/3;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.3);
    background: #1e1429;
    padding: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    min-height: 140px;
}

.card-option:hover {
    transform: scale(1.05);
    border-color: rgba(212, 175, 55, 0.6);
}

.card-option:active {
    transform: scale(0.95);
}

.card-option.selected {
    opacity: 0.5;
    cursor: not-allowed;
}

#deck-container {
    aspect-ratio: 2/3 !important;
    width: 160px !important;
    height: 240px !important;
}

#deck-container.disabled {
    opacity: 0.5;
    filter: grayscale(100%);
    cursor: not-allowed;
}

#submit-btn.enabled {
    background: #7311d4;
    color: white;
    cursor: pointer;
    opacity: 1;
    box-shadow: 0 0 20px rgba(115, 17, 212, 0.4);
}

#submit-btn.enabled:hover {
    background: rgba(115, 17, 212, 0.9);
}

#card-modal.show {
    display: flex !important;
    animation: fadeIn 0.3s ease;
}

#card-modal .modal-content {
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Ensure modal is visible when shown */
#card-modal.show {
    display: flex !important;
}
