﻿.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.modal-content {
    background: #1a1a1a;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
}

    .modal-header h3 {
        margin: 0;
        color: ghostwhite;
        font-size: 20px;
    }

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

    .modal-close:hover {
        color: #fff;
    }

.modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(80vh - 80px);
    align-content: center;
}

.card-preview {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

    .card-preview img {
        width: 80px;
        height: auto;
        border-radius: 8px;
    }

.card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-name {
    color: ghostwhite;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-set {
    color: lightsteelblue;
    font-size: 14px;
}

.binder-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.binder-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: ghostwhite;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

    .binder-option:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
        transform: translateX(4px);
    }

    .binder-option.main:hover {
        border-color: #22c55e;
    }

    .binder-option.trade:hover {
        border-color: #3b82f6;
    }

    .binder-option.wants:hover {
        border-color: #ef4444;
    }

    .binder-option.masterset:hover {
        border-color: #a855f7;
    }

    .binder-option img {
        width: 32px;
        height: 32px;
        object-fit: contain;
    }

.section-divider {
    margin: 16px 0 8px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #333;
    color: lightsteelblue;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}
