/* Стили для кошелька Blagodar Space */

/* Основные константы */
:root {
    --primary-gradient: linear-gradient(135deg, #00ffff 0%, #aa00ff 50%, #ff00aa 100%);
    --button-height: 48px;
    --button-min-width: 220px;
    --border-radius: 50px;
    --transition: all 0.3s ease;
}

/* Стили кнопки кошелька */
.custom-wallet-button {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 600;
    margin: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-width: var(--button-min-width);
    height: var(--button-height);
    line-height: 1;
    text-align: center;
    z-index: 10002;
    position: relative;
}

.custom-wallet-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 255, 0.4);
}

/* Выпадающий список кошелька */
.wallet-dropdown {
    position: relative;
    display: inline-block;
}

.wallet-dropdown-toggle {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.5rem;
    min-width: var(--button-min-width);
    height: var(--button-height);
    line-height: 1;
    text-align: center;
    z-index: 9999;
    position: relative;
}

.wallet-dropdown-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 255, 0.4);
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.wallet-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.wallet-dropdown-menu {
    position: absolute;
    z-index: 10000;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    margin-top: 0.5rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 999999;
}

@media (max-width: 768px) {
    .wallet-dropdown-menu {
        position: fixed;
        top: auto;
        bottom: 20px;
        left: 20px;
        right: 20px;
        min-width: auto;
        width: calc(100% - 40px);
        z-index: 999999;
    }
}

.wallet-dropdown.active .wallet-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: #333;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: #f8f9fa;
}

.dropdown-item.disconnect {
    color: #dc3545;
}

.dropdown-item.disconnect:hover {
    background: #f8d7da;
}

/* Анимации уведомлений */
@keyframes slideIn {
    from { 
        transform: translateX(100%); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0); 
        opacity: 1; 
    }
}

@keyframes slideOut {
    from { 
        transform: translateX(0); 
        opacity: 1; 
    }
    to { 
        transform: translateX(100%); 
        opacity: 0; 
    }
}

/* Стили уведомлений */
.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    max-width: 300px;
    word-wrap: break-word;
    animation: slideIn 0.3s ease;
}

.alert-success {
    background: #28a745;
}

.alert-error {
    background: #dc3545;
}

.alert-warning {
    background: #ffc107;
    color: #212529;
}

.alert-info {
    background: #17a2b8;
} 