/**
 * TRANS MENU MODERN - Стили для современного меню трансмутации
 * Био-дизайн в стиле Evolution Game
 */

.trans-menu-modern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 20, 10, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.trans-modern-window {
    background: linear-gradient(135deg, #0a1f15 0%, #0d2818 50%, #0a1f15 100%);
    border: 2px solid #2a5a3a;
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 
        0 0 30px rgba(42, 90, 58, 0.4),
        inset 0 0 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

/* Custom scrollbar */
.trans-modern-window::-webkit-scrollbar {
    width: 8px;
}

.trans-modern-window::-webkit-scrollbar-track {
    background: rgba(0, 20, 10, 0.5);
    border-radius: 4px;
    margin: 8px 0;
}

.trans-modern-window::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #2a5a3a 0%, #1a3a2a 100%);
    border-radius: 4px;
    border: 1px solid rgba(42, 90, 58, 0.5);
}

.trans-modern-window::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #3a7a4a 0%, #2a5a3a 100%);
}

/* Header */
.trans-modern-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(180deg, rgba(42, 90, 58, 0.3) 0%, transparent 100%);
    border-bottom: 1px solid rgba(42, 90, 58, 0.3);
}

.trans-modern-title {
    margin: 0;
    font-size: 1.5rem;
    color: #7fff7f;
    text-shadow: 0 0 10px rgba(127, 255, 127, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
}

.trans-modern-title-icon {
    font-size: 1.8rem;
}

.trans-modern-close {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.2s;
}

.trans-modern-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Content */
.trans-modern-content {
    padding: 20px;
}

/* Info Section - Balance */
.trans-info-section {
    background: rgba(0, 40, 20, 0.4);
    border: 1px solid rgba(42, 90, 58, 0.4);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

.trans-balance {
    display: flex;
    justify-content: space-around;
    gap: 15px;
}

.trans-balance-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 30, 15, 0.5);
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid rgba(42, 90, 58, 0.3);
}

.balance-icon {
    font-size: 1.3rem;
}

.balance-label {
    color: #8faf8f;
}

.balance-value {
    font-weight: bold;
    color: #7fff7f;
    font-size: 1.1rem;
}

/* Exchange Section */
.trans-exchange-section {
    background: rgba(0, 40, 20, 0.4);
    border: 1px solid rgba(42, 90, 58, 0.4);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.trans-exchange-section h3 {
    margin: 0 0 20px 0;
    color: #7fff7f;
    font-size: 1.1rem;
}

.trans-exchange-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.trans-exchange-from,
.trans-exchange-to {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: rgba(0, 30, 15, 0.6);
    padding: 15px 25px;
    border-radius: 12px;
    border: 1px solid rgba(42, 90, 58, 0.4);
}

.trans-exchange-from {
    border-color: rgba(255, 100, 100, 0.3);
}

.trans-exchange-to {
    border-color: rgba(100, 255, 100, 0.3);
}

.exchange-amount {
    font-size: 1.8rem;
    font-weight: bold;
    color: #7fff7f;
}

.trans-exchange-from .exchange-amount {
    color: #ff9f9f;
}

.exchange-icon {
    font-size: 2rem;
}

.exchange-label {
    color: #8faf8f;
    font-size: 0.9rem;
}

.trans-exchange-arrow {
    font-size: 2rem;
    color: #7fff7f;
    animation: pulse 1.5s infinite;
}

.trans-exchange-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #8faf8f;
    font-size: 0.85rem;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(0, 30, 15, 0.4);
    border-radius: 8px;
}

.note-icon {
    font-size: 1rem;
}

/* Button */
.trans-btn {
    width: 100% !important;
    padding: 14px 20px !important;
    background: linear-gradient(180deg, #2a6a3a 0%, #1a4a2a 100%) !important;
    border: 1px solid #3a8a4a !important;
    border-radius: 8px !important;
    color: #e0ffe0 !important;
    font-size: 1rem !important;
    font-weight: bold !important;
    cursor: pointer;
    transition: all 0.2s;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    margin-left: -10px !important;
}

.trans-btn-icon {
    flex-shrink: 0;
}

.trans-btn-text {
    flex: 0 0 auto;
}

.trans-btn:hover:not(.disabled) {
    background: linear-gradient(180deg, #3a8a4a 0%, #2a6a3a 100%);
    box-shadow: 0 0 15px rgba(127, 255, 127, 0.4);
    transform: translateY(-2px);
}

.trans-btn:active:not(.disabled) {
    transform: translateY(0);
}

.trans-btn.disabled {
    background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 100%);
    border-color: #4a4a4a;
    color: #8a8a8a;
    cursor: not-allowed;
}

/* Timer */
.trans-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    padding: 12px;
    background: rgba(255, 200, 100, 0.1);
    border: 1px solid rgba(255, 200, 100, 0.3);
    border-radius: 8px;
}

.timer-icon {
    font-size: 1.2rem;
}

.timer-label {
    color: #cfaf8f;
}

.timer-value {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ffcf7f;
    font-family: monospace;
}

/* Lore Section */
.trans-lore-section {
    background: rgba(0, 30, 15, 0.3);
    border: 1px solid rgba(42, 90, 58, 0.3);
    border-radius: 12px;
    padding: 20px;
}

.trans-lore-section h3 {
    margin: 0 0 12px 0;
    color: #7fff7f;
    font-size: 1rem;
}

.trans-lore-text {
    color: #a0c0a0;
    margin: 0 0 15px 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

.trans-lore-hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #8faf8f;
    font-size: 0.85rem;
    padding: 10px;
    background: rgba(0, 40, 20, 0.4);
    border-radius: 8px;
}

.hint-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

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

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

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

/* Hidden utility */
.trans-menu-modern .hidden {
    display: none !important;
}

/* Скрываем старые селекторы меню */
body:has(.trans-menu-modern) .menu-buttons {
    display: none !important;
}

/* Mobile responsive */
@media (max-width: 500px) {
    .trans-modern-window {
        width: 95%;
        max-height: 90vh;
    }
    
    .trans-modern-header {
        padding: 12px 15px;
    }
    
    .trans-modern-title {
        font-size: 1.2rem;
    }
    
    .trans-modern-content {
        padding: 15px;
    }
    
    .trans-balance {
        flex-direction: column;
        gap: 10px;
    }
    
    .trans-exchange-visual {
        gap: 10px;
    }
    
    .trans-exchange-from,
    .trans-exchange-to {
        padding: 12px 20px;
    }
    
    .exchange-amount {
        font-size: 1.5rem;
    }
}
