/**
 * WalletConnect Integration Styles
 * Modern design with glassmorphism effects
 */

/* WalletConnect Button */
#wc-connect-btn {
    background: linear-gradient(135deg, #5866F6 0%, #3B4BDA 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(88, 102, 246, 0.3);
    position: relative;
    overflow: hidden;
}

#wc-connect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 102, 246, 0.4);
    background: linear-gradient(135deg, #6B75F7 0%, #4456E0 100%);
}

#wc-connect-btn:active {
    transform: translateY(0);
}

#wc-connect-btn.connected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

#wc-connect-btn.connected:hover {
    background: linear-gradient(135deg, #7689EC 0%, #8457B0 100%);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

#wc-connect-btn i {
    font-size: 18px;
}

/* WalletConnect Status Display */
.wc-status-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
}

.wc-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.wc-status-row:last-child {
    margin-bottom: 0;
}

.wc-status-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

#wc-status {
    font-weight: 600;
    font-size: 14px;
}

#wc-status.status-connected {
    color: #00ff88;
}

#wc-status.status-disconnected {
    color: #ff4444;
}

#wc-address {
    font-family: 'Courier New', monospace;
    color: #5866F6;
    font-size: 14px;
}

/* WalletConnect Modal */
.wc-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

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

.wc-modal-content {
    background: linear-gradient(135deg, rgba(30, 30, 40, 0.95) 0%, rgba(20, 20, 30, 0.95) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.wc-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wc-modal-header h2 {
    margin: 0;
    color: white;
    font-size: 20px;
    font-weight: 600;
}

.wc-close-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.wc-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.wc-modal-body {
    padding: 24px;
}

/* Loading State */
.wc-loading {
    text-align: center;
    padding: 40px;
}

.wc-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(88, 102, 246, 0.2);
    border-top-color: #5866F6;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.wc-loading p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin: 0 0 8px 0;
}

.wc-loading .wc-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0;
}

/* QR Code Container */
#wc-qr-container {
    text-align: center;
}

.wc-instructions {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.5;
}

#wc-qr-code {
    background: white;
    padding: 20px;
    border-radius: 16px;
    display: inline-block;
    margin-bottom: 20px;
}

#wc-qr-code img {
    display: block;
    width: 200px;
    height: 200px;
}

/* URI Copy Container */
.wc-uri-container {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.wc-uri-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-family: 'Courier New', monospace;
}

.wc-copy-btn {
    background: linear-gradient(135deg, #5866F6 0%, #3B4BDA 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.wc-copy-btn:hover {
    background: linear-gradient(135deg, #6B75F7 0%, #4456E0 100%);
    transform: translateY(-1px);
}

/* Alternative connection options */
.wc-alternatives {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.wc-alternatives p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 12px;
}

.wc-phantom-btn {
    background: linear-gradient(135deg, #AB9FF2 0%, #8B7FD2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(171, 159, 242, 0.3);
}

.wc-phantom-btn:hover {
    background: linear-gradient(135deg, #B8ADF4 0%, #9A8FDB 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(171, 159, 242, 0.4);
}

.wc-phantom-btn img {
    border-radius: 50%;
}

/* Notifications */
.wc-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, rgba(30, 30, 40, 0.95) 0%, rgba(20, 20, 30, 0.95) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 14px;
    z-index: 10001;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.wc-notification.show {
    transform: translateX(0);
}

.wc-notification i {
    font-size: 18px;
}

.wc-notification-success {
    border-color: rgba(0, 255, 136, 0.3);
}

.wc-notification-success i {
    color: #00ff88;
}

.wc-notification-error {
    border-color: rgba(255, 68, 68, 0.3);
}

.wc-notification-error i {
    color: #ff4444;
}

.wc-notification-info {
    border-color: rgba(88, 102, 246, 0.3);
}

.wc-notification-info i {
    color: #5866F6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .wc-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    #wc-qr-code img {
        width: 160px;
        height: 160px;
    }
    
    .wc-notification {
        right: 10px;
        left: 10px;
        bottom: 10px;
        transform: translateY(100px);
    }
    
    .wc-notification.show {
        transform: translateY(0);
    }
    
    #wc-connect-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Integration with existing theme */
.profile-section.walletconnect-section {
    background: linear-gradient(135deg, rgba(88, 102, 246, 0.1) 0%, rgba(59, 75, 218, 0.1) 100%);
    border: 1px solid rgba(88, 102, 246, 0.2);
}

.walletconnect-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.walletconnect-section h2 i {
    color: #5866F6;
}

/* Hover effects for wallet address */
#wc-address:hover {
    color: #6B75F7;
    text-decoration: underline;
    cursor: pointer;
}