/**
 * TradeZing Alert UI - Crypto Modal Styles
 *
 * Styles for the crypto exchange selection modal.
 */

/* Modal Container */
.crypto-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
}

/* Overlay */
.crypto-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

/* Modal Content */
.crypto-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Close Button */
.crypto-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.crypto-modal-close:hover {
    color: #000;
}

/* Header */
.crypto-modal-header {
    padding: 30px 30px 20px;
}

.crypto-modal-title {
    font-size: 24px;
    font-weight: 500;
    color: #000;
    margin: 0 0 8px 0;
}

.crypto-modal-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Body */
.crypto-modal-body {
    padding: 30px;
    padding-top: 0;
}

/* Trade Details */
.crypto-trade-details {
    margin-bottom: 30px;
    border-top: 1px solid #dcdcdc;
    border-bottom: 1px solid #dcdcdc;
}

.trade-detail-row {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #dcdcdc;
}

.trade-detail-row:last-child {
    border-bottom: none;
}

.trade-label {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 20%;
    flex-shrink: 0;
}

.trade-value {
    font-size: 14px;
    color: #000;
    font-weight: 500;
    width: 80%;
    padding-left: 15px;
    word-wrap: break-word;
}

.trade-value .crypto-buy-dot {
    color: #78B159;
    font-size: 16px;
    margin-right: 5px;
}

.trade-value .crypto-sell-dot {
    color: #DD2D44;
    font-size: 16px;
    margin-right: 5px;
}

/* Exchanges Section */
.crypto-exchanges-section h3 {
    font-size: 24px;
    font-weight: 500;
    color: #000;
    margin: 0 0 20px 0;
}

/* Exchanges Grid */
.crypto-exchanges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* Exchange Item */
.crypto-exchange-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.crypto-exchange-item:hover {
    border-color: #482be7;
    background: #f8f6ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 43, 231, 0.15);
}

.crypto-exchange-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 8px;
}

.crypto-exchange-item span {
    font-size: 14px;
    color: #000;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 600px) {
    .crypto-modal-content {
        width: 95%;
        max-height: 85vh;
    }

    .crypto-exchanges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .crypto-exchange-item {
        padding: 15px 5px;
    }

    .crypto-exchange-item img {
        width: 40px;
        height: 40px;
    }

    .crypto-modal-header {
        padding: 20px 20px 15px;
    }

    .crypto-modal-body {
        padding: 20px;
    }
}
