/* ============================================
   DEGRADE MENU MODERN - Меню деградации
   Стиль как у меню характеристик/тканей
   ============================================ */

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

/* === ОСНОВНОЙ КОНТЕЙНЕР === */
.degrade-menu-modern {
    font-family: Arial, sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    overflow-y: auto;
    animation: degradeFadeIn 0.3s ease;
}

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

.degrade-modern-window {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background: #000000;
    position: relative;
    min-height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* === HEADER === */
.degrade-modern-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(60, 20, 20, 0.95), rgba(40, 15, 15, 0.95));
    border: 2px solid rgba(180, 60, 60, 0.5);
    border-radius: 12px;
    margin-bottom: 20px;
}

.degrade-modern-title {
    margin: 0;
    font-size: 1.5rem;
    color: #ff6b6b;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

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

.degrade-close-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: 2px solid rgba(220, 53, 69, 0.5);
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.degrade-close-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(220, 53, 69, 0.5);
}

/* === ИКОНКА АППАРАТА === */
.degrade-device-section {
    background: linear-gradient(135deg, rgba(40, 15, 15, 0.9), rgba(30, 10, 10, 0.9));
    border: 2px solid rgba(180, 60, 60, 0.5);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    text-align: center;
}

.degrade-device-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: degradePulse 2s ease-in-out infinite;
}

@keyframes degradePulse {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(255, 107, 107, 0.3));
    }
    50% { 
        transform: scale(1.05);
        filter: drop-shadow(0 0 20px rgba(255, 107, 107, 0.5));
    }
}

/* === ОПИСАНИЕ === */
.degrade-description {
    background: linear-gradient(135deg, rgba(40, 15, 15, 0.9), rgba(30, 10, 10, 0.9));
    border: 2px solid rgba(180, 60, 60, 0.5);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.degrade-description-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #ff6b6b;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.degrade-description-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* === ЧТО ПРОИЗОЙДЁТ === */
.degrade-effects-section {
    background: linear-gradient(135deg, rgba(40, 15, 15, 0.9), rgba(30, 10, 10, 0.9));
    border: 2px solid rgba(180, 60, 60, 0.5);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.degrade-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #ff6b6b;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.degrade-effects-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.degrade-effect-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.degrade-effect-item.positive {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.2), rgba(15, 80, 50, 0.2));
    border: 1px solid rgba(40, 167, 69, 0.4);
}

.degrade-effect-item.negative {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.15), rgba(150, 30, 40, 0.15));
    border: 1px solid rgba(220, 53, 69, 0.4);
}

.degrade-effect-item.neutral {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(180, 140, 0, 0.15));
    border: 1px solid rgba(255, 193, 7, 0.4);
}

.degrade-effect-item:hover {
    transform: translateX(5px);
}

.effect-icon {
    font-size: 1.3rem;
    width: 32px;
    text-align: center;
}

.effect-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    flex: 1;
}

/* === СТОИМОСТЬ === */
.degrade-cost-section {
    background: linear-gradient(135deg, rgba(40, 15, 15, 0.9), rgba(30, 10, 10, 0.9));
    border: 2px solid rgba(180, 60, 60, 0.5);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.degrade-cost-items {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cost-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.95), rgba(20, 20, 20, 0.95));
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.cost-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.cost-item img {
    width: 28px;
    height: 28px;
}

.cost-value {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ff6b6b;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* === СКИДКА === */
.degrade-discount {
    text-align: center;
    margin-top: 10px;
    padding: 10px;
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.2), rgba(15, 80, 50, 0.2));
    border: 1px solid rgba(40, 167, 69, 0.4);
    border-radius: 8px;
    color: #7fff7f;
    font-size: 0.9rem;
}

.degrade-discount-icon {
    margin-right: 8px;
}

/* === КНОПКА ДЕГРАДАЦИИ === */
.degrade-action-section {
    text-align: center;
}

.degrade-btn {
    padding: 16px 50px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
    /* Центрирование текста */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

.degrade-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(220, 53, 69, 0.5);
    background: linear-gradient(135deg, #e04555, #d83343);
}

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

/* === ПРЕДУПРЕЖДЕНИЕ === */
.degrade-warning {
    margin-top: 15px;
    padding: 12px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    color: #ffc107;
    font-size: 0.85rem;
    text-align: center;
}

.degrade-warning-icon {
    margin-right: 8px;
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 768px) {
    .degrade-modern-window {
        padding: 15px;
        justify-content: flex-start;
        padding-top: 10px;
    }
    
    .degrade-modern-header {
        padding: 12px 15px;
        margin-bottom: 15px;
    }
    
    .degrade-modern-title {
        font-size: 1.1rem;
    }
    
    .degrade-modern-title-icon {
        font-size: 1.4rem;
    }
    
    .degrade-close-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .degrade-device-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .degrade-device-icon {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }
    
    .degrade-description {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .degrade-description-header {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }
    
    .degrade-description-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .degrade-effects-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .degrade-section-header {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    
    .degrade-effects-list {
        gap: 8px;
    }
    
    .degrade-effect-item {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .effect-icon {
        font-size: 1.1rem;
        width: 28px;
    }
    
    .effect-text {
        font-size: 0.85rem;
    }
    
    .degrade-cost-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .degrade-cost-items {
        flex-direction: row;
        gap: 15px;
    }
    
    .cost-item {
        padding: 12px 18px;
        flex: 1;
        justify-content: center;
    }
    
    .cost-item img {
        width: 24px;
        height: 24px;
    }
    
    .cost-value {
        font-size: 1.1rem;
    }
    
    .degrade-discount {
        font-size: 0.8rem;
        padding: 8px;
    }
    
    .degrade-btn {
        width: 100%;
        padding: 14px 30px;
        font-size: 1rem;
        letter-spacing: 1px;
    }
    
    .degrade-warning {
        font-size: 0.8rem;
        padding: 10px;
        margin-top: 12px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .degrade-modern-window {
        padding: 10px;
    }
    
    .degrade-modern-header {
        padding: 10px 12px;
    }
    
    .degrade-modern-title {
        font-size: 1rem;
        gap: 8px;
    }
    
    .degrade-device-section {
        padding: 12px;
    }
    
    .degrade-device-icon {
        font-size: 2rem;
    }
    
    .degrade-description,
    .degrade-effects-section,
    .degrade-cost-section {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .degrade-effect-item {
        padding: 8px 10px;
    }
    
    .effect-text {
        font-size: 0.8rem;
    }
    
    .degrade-cost-items {
        gap: 10px;
    }
    
    .cost-item {
        padding: 10px 15px;
    }
    
    .cost-value {
        font-size: 1rem;
    }
    
    .degrade-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}
