/* ══════════════════════════════════════════════════════════════════════════════
   🎨 WALLET CONNECTION STYLES - Sistema de Conexión de Wallets
   ══════════════════════════════════════════════════════════════════════════════
   Estilos para el modal de conexión de wallets y notificaciones
   Compatible con MetaMask, Trust Wallet y Phantom
   Responsive para Desktop, Tablet, Android y iPhone
   ══════════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════
   MODAL DE CONEXIÓN DE WALLETS
   ═══════════════════════════════════════════════════════════════════ */

.wallet-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wallet-modal.hidden {
    display: none;
}

.wallet-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.wallet-modal-content {
    position: relative;
    background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 1px solid #333;
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.wallet-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #333;
}

.wallet-modal-header h3 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.wallet-modal-close {
    background: none;
    border: none;
    color: #999;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.wallet-modal-close:hover {
    background: #333;
    color: #fff;
}

.wallet-modal-body {
    padding: 20px;
}

.wallet-options {
    display: grid;
    gap: 12px;
}

.wallet-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #2a2a2a;
    border: 1px solid #404040;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #fff;
}

.wallet-option:hover {
    background: #353535;
    border-color: #FFD700;
    transform: translateY(-1px);
}

.wallet-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.connecting-state {
    text-align: center;
    padding: 40px 20px;
    color: #fff;
}

.connecting-state.hidden {
    display: none;
}

.connecting-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #333;
    border-top: 3px solid #FFD700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cancel-button {
    margin-top: 20px;
    padding: 10px 20px;
    background: #666;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cancel-button:hover {
    background: #777;
}

/* ═══════════════════════════════════════════════════════════════════
   NOTIFICACIONES PERSONALIZADAS - Responsive
   ═══════════════════════════════════════════════════════════════════ */

.custom-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 450px;
    width: calc(100% - 40px);
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 99999;
    animation: slideInRight 0.4s ease-out;
    border-left: 5px solid #FFD700;
}

.custom-notification.error {
    border-left-color: #ff4444;
    background: linear-gradient(145deg, #3a1a1a 0%, #2a0a0a 100%);
}

.custom-notification.success {
    border-left-color: #44ff44;
    background: linear-gradient(145deg, #1a3a1a 0%, #0a2a0a 100%);
}

.custom-notification.warning {
    border-left-color: #ffaa00;
    background: linear-gradient(145deg, #3a2a1a 0%, #2a1a0a 100%);
}

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.notification-icon {
    font-size: 28px;
    margin-right: 10px;
}

.notification-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    flex: 1;
}

.notification-close {
    background: none;
    border: none;
    color: #999;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.notification-message {
    color: #ccc;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.notification-details {
    color: #999;
    font-size: 13px;
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 8px;
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-details strong {
    color: #FFD700;
    display: block;
    margin-top: 8px;
    margin-bottom: 4px;
}

.notification-progress {
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-top: 15px;
    overflow: hidden;
}

.notification-progress-bar {
    height: 100%;
    background: #FFD700;
    border-radius: 3px;
    animation: progressBar linear;
}

.custom-notification.error .notification-progress-bar {
    background: #ff4444;
}

.custom-notification.success .notification-progress-bar {
    background: #44ff44;
}

/* ═══════════════════════════════════════════════════════════════════
   ANIMACIONES
   ═══════════════════════════════════════════════════════════════════ */

@keyframes slideInRight {
    from {
        transform: translateX(450px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(450px);
        opacity: 0;
    }
}

@keyframes progressBar {
    from { width: 100%; }
    to { width: 0%; }
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE - TABLET (< 768px)
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .custom-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        width: calc(100% - 20px);
        max-width: none;
        padding: 16px;
    }
    
    .notification-title {
        font-size: 16px;
    }
    
    .notification-message {
        font-size: 14px;
    }
    
    .notification-details {
        font-size: 12px;
        padding: 10px;
    }
    
    .notification-icon {
        font-size: 24px;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE - MÓVIL (< 480px)
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 480px) {
    .wallet-modal-content {
        margin: 10px;
        width: calc(100% - 20px);
    }
    
    .custom-notification {
        top: 5px;
        right: 5px;
        left: 5px;
        width: calc(100% - 10px);
        padding: 14px;
        border-radius: 10px;
    }
    
    .notification-title {
        font-size: 15px;
    }
    
    .notification-message {
        font-size: 13px;
    }
    
    .notification-details {
        font-size: 11px;
        padding: 8px;
    }
}
