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

.cube-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;
}

.cube-modern-window {
    background: linear-gradient(135deg, #0a1f15 0%, #0d2818 50%, #0a1f15 100%);
    border: 2px solid #2a5a3a;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    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 styling */
.cube-modern-window::-webkit-scrollbar {
    width: 8px;
}

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

.cube-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);
}

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

/* Header */
.cube-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);
}

.cube-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;
}

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

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

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

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

/* Cube Info Section */
.cube-info-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;
}

.cube-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.cube-status-icon {
    font-size: 3rem;
    animation: pulse 2s infinite;
}

.cube-status-text {
    font-size: 1.1rem;
    color: #a0ffa0;
}

.cube-timer-display {
    background: rgba(127, 255, 127, 0.1);
    border: 1px solid rgba(127, 255, 127, 0.3);
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 15px;
    display: inline-block;
}

.timer-label {
    color: #8faf8f;
    margin-right: 8px;
}

.timer-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #7fff7f;
    font-family: monospace;
}

.cube-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.cube-stat-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);
}

.cube-stat-item .stat-icon {
    font-size: 1.2rem;
}

.cube-stat-item .stat-label {
    color: #8faf8f;
}

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

/* Bet Section */
.cube-bet-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;
}

.cube-bet-section h3 {
    margin: 0 0 15px 0;
    color: #7fff7f;
    font-size: 1.1rem;
}

.current-bet-display {
    background: rgba(127, 255, 127, 0.1);
    border: 1px solid rgba(127, 255, 127, 0.2);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
    text-align: center;
}

.bet-label {
    color: #8faf8f;
    margin-right: 8px;
}

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

.bet-currency {
    color: #8faf8f;
    margin-left: 5px;
}

.bet-input-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cube-bet-input {
    flex: 1;
    min-width: 150px;
    padding: 12px 15px;
    background: rgba(0, 30, 15, 0.6);
    border: 1px solid rgba(42, 90, 58, 0.5);
    border-radius: 8px;
    color: #e0ffe0;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cube-bet-input:focus {
    border-color: #7fff7f;
    box-shadow: 0 0 10px rgba(127, 255, 127, 0.3);
}

.cube-bet-input::placeholder {
    color: #5a8a5a;
}

.cube-bet-btn {
    padding: 12px 24px;
    background: linear-gradient(180deg, #2a6a3a 0%, #1a4a2a 100%);
    border: 1px solid #3a8a4a;
    border-radius: 8px;
    color: #e0ffe0;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.cube-bet-btn:active {
    transform: translateY(0);
}

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

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

.cube-note {
    color: #a0c0a0;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.cube-rules-list {
    margin: 0;
    padding-left: 20px;
    color: #8faf8f;
}

.cube-rules-list li {
    margin-bottom: 8px;
    line-height: 1.4;
}

/* 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); }
    50% { transform: scale(1.1); }
}

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

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

/* Mobile responsive */
@media (max-width: 600px) {
    .cube-modern-window {
        width: 95%;
        max-height: 90vh;
    }
    
    .cube-modern-header {
        padding: 12px 15px;
    }
    
    .cube-modern-title {
        font-size: 1.2rem;
    }
    
    .cube-modern-content {
        padding: 15px;
    }
    
    .cube-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .bet-input-container {
        flex-direction: column;
    }
    
    .cube-bet-btn {
        width: 100%;
    }
}
