/* ============================================
   HORMONE MENU MODERN - Современное меню гормонов
   Независимая система с био-дизайном
   ============================================ */

/* Основной контейнер */
.hormone-menu-modern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

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

/* Главное окно - на весь экран */
.hormone-modern-window {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #00ff88;
    border-radius: 0;
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.3),
                inset 0 0 60px rgba(0, 255, 136, 0.05);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Заголовок с навигацией */
.hormone-modern-header {
    padding: 15px 20px;
    border-bottom: 2px solid rgba(0, 255, 136, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, rgba(0, 255, 136, 0.1) 0%, transparent 100%);
    gap: 20px;
    position: relative;
}

.hormone-modern-title {
    font-size: 24px;
    font-weight: bold;
    color: #00ff88;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.hormone-modern-title-icon {
    font-size: 28px;
    animation: pulse 2s ease-in-out infinite;
}

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

/* Кнопка закрытия */
.hormone-modern-header .hormone-modern-close {
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    filter: hue-rotate(180deg) saturate(2) !important;
    position: relative !important;
    top: 0 !important;
    margin: 0 !important;
    align-self: center !important;
}

.hormone-modern-header .hormone-modern-close:hover {
    transform: scale(1.1) !important;
    filter: hue-rotate(180deg) saturate(2) brightness(1.3) !important;
}

/* Подзаголовок со статистикой */
.hormone-modern-subheader {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
    background: rgba(0, 255, 136, 0.05);
}

.hormone-modern-stats {
    display: flex;
    gap: 15px;
    font-size: 13px;
    justify-content: center;
    flex-wrap: wrap;
}

.hormone-stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 20px;
    color: #fff;
}

.hormone-stat-icon {
    font-size: 14px;
}

.hormone-stat-value {
    font-weight: bold;
    color: #00ff88;
}

/* Контент с прокруткой */
.hormone-modern-content {
    padding: 20px 30px;
    overflow-y: auto;
    flex: 1;
}

.hormone-modern-content::-webkit-scrollbar {
    width: 10px;
}

.hormone-modern-content::-webkit-scrollbar-track {
    background: rgba(0, 255, 136, 0.05);
    border-radius: 10px;
}

.hormone-modern-content::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.3);
    border-radius: 10px;
}

.hormone-modern-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 136, 0.5);
}

/* Список гормонов */
.hormone-modern-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

/* Карточка гормона */
.hormone-item {
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.8) 0%, rgba(20, 20, 40, 0.9) 100%);
    border: 2px solid rgba(0, 255, 136, 0.2);
    border-radius: 16px;
    padding: 20px;
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 20px;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hormone-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 255, 136, 0.05) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.hormone-item:hover {
    border-color: rgba(0, 255, 136, 0.5);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.2);
    transform: translateY(-2px);
}

.hormone-item:hover::before {
    transform: translateX(100%);
}

/* Активный гормон */
.hormone-item.active {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15) 0%, rgba(0, 200, 100, 0.1) 100%);
    border-color: rgba(0, 255, 136, 0.5);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3),
                inset 0 0 30px rgba(0, 255, 136, 0.1);
}

.hormone-item.active::before {
    background: linear-gradient(90deg, transparent 0%, rgba(0, 255, 136, 0.1) 50%, transparent 100%);
}

/* Иконка гормона */
.hormone-icon {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    border: 3px solid rgba(0, 255, 136, 0.3);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 136, 0.05);
}

.hormone-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hormone-item:hover .hormone-icon {
    border-color: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
    transform: scale(1.05);
}

.hormone-item.active .hormone-icon {
    border-color: #00ff88;
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.6);
}

/* Информация о гормоне */
.hormone-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hormone-title {
    font-size: 20px;
    font-weight: bold;
    color: #00ff88;
    margin: 0;
}

.hormone-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.4;
}

/* Контролы гормона */
.hormone-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 5px;
}

/* Таймер */
.hormone-timer {
    font-size: 14px;
    font-weight: bold;
    color: #00ff88;
    padding: 8px 16px;
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid rgba(0, 255, 136, 0.4);
    border-radius: 8px;
    animation: timerPulse 2s ease-in-out infinite;
}

@keyframes timerPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(0, 255, 136, 0.3); }
    50% { box-shadow: 0 0 20px rgba(0, 255, 136, 0.5); }
}

/* Стоимость */
.hormone-cost {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.hormone-cost b {
    color: #00ff88;
}

/* Кнопка активации */
.hormone-activate-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    border: 2px solid #00ff88;
    border-radius: 10px;
    color: #000;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    vertical-align: middle;
}

.hormone-activate-btn:hover {
    background: linear-gradient(135deg, #00ff88 0%, #00ff88 100%);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    transform: translateY(-2px);
}

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

/* Автопродление */
.hormone-auto-prolong {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
}

.hormone-auto-checkbox {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

/* Информационный раздел */
.hormone-info-section {
    background: rgba(0, 150, 255, 0.1);
    border: 2px solid rgba(0, 150, 255, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.hormone-info-section h3 {
    color: #0096ff;
    margin: 0 0 10px 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hormone-info-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

/* Секция покупки */
.hormone-purchase-section {
    background: rgba(255, 200, 0, 0.1);
    border: 2px solid rgba(255, 200, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
}

.hormone-purchase-section h3 {
    color: #ffc800;
    margin: 0 0 15px 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hormone-discount {
    color: #00ff88;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
    animation: pulse 1.5s ease-in-out infinite;
}

.hormone-purchase-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.hormone-purchase-card {
    background: rgba(255, 200, 0, 0.1);
    border: 2px solid rgba(255, 200, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hormone-purchase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 200, 0, 0.1) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.hormone-purchase-card:hover {
    background: rgba(255, 200, 0, 0.2);
    border-color: #ffc800;
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(255, 200, 0, 0.3);
}

.hormone-purchase-card:hover::before {
    transform: translateX(100%);
}

.purchase-quantity {
    font-size: 28px;
    font-weight: bold;
    color: #ffc800;
    margin-bottom: 5px;
}

.purchase-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.purchase-price {
    font-size: 16px;
    color: #fff;
    font-weight: bold;
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */

@media (max-width: 768px) {
    .hormone-modern-window {
        width: 100%;
        height: 100%;
        border-radius: 0;
        border: none;
    }

    .hormone-modern-header {
        padding: 10px 15px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .hormone-modern-title {
        font-size: 18px;
        flex: 1;
        min-width: 150px;
    }

    .hormone-modern-title-icon {
        font-size: 22px;
    }

    .menu-navigation {
        order: 3;
        width: 100%;
        justify-content: space-between;
        gap: 4px;
        position: static;
        transform: none;
    }

    .hormone-modern-close {
        order: 2;
    }

    .hormone-modern-subheader {
        padding: 8px 15px;
    }

    .hormone-modern-stats {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }

    .hormone-stat-item {
        flex: 1;
        min-width: calc(33.333% - 7px);
        padding: 6px 10px;
        font-size: 12px;
        justify-content: center;
    }

    .hormone-modern-content {
        padding: 12px 15px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .hormone-item {
        grid-template-columns: 60px 1fr;
        gap: 12px;
        padding: 12px;
        border-radius: 12px;
    }

    .hormone-icon {
        width: 60px;
        height: 60px;
    }

    .hormone-title {
        font-size: 16px;
    }

    .hormone-description {
        font-size: 12px;
        line-height: 1.3;
    }

    .hormone-controls {
        gap: 10px;
    }

    .hormone-timer {
        font-size: 12px;
        padding: 6px 12px;
    }

    .hormone-activate-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .hormone-cost {
        font-size: 12px;
    }

    .hormone-auto-prolong {
        font-size: 12px;
    }

    .hormone-info-section,
    .hormone-purchase-section {
        padding: 15px;
    }

    .hormone-info-section h3,
    .hormone-purchase-section h3 {
        font-size: 16px;
    }

    .hormone-purchase-options {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .purchase-quantity {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .hormone-modern-header {
        padding: 12px 15px;
    }

    .hormone-modern-title {
        font-size: 16px;
    }

    .hormone-stat-item {
        font-size: 11px;
        padding: 5px 8px;
    }

    .hormone-modern-content {
        padding: 10px 12px;
    }

    .hormone-item {
        padding: 10px;
        gap: 10px;
    }

    .hormone-icon {
        width: 50px;
        height: 50px;
    }

    .hormone-title {
        font-size: 15px;
    }

    .hormone-description {
        font-size: 11px;
    }
}

/* Ландшафтная ориентация на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
    .hormone-modern-header {
        padding: 10px 15px;
    }

    .hormone-modern-title {
        font-size: 18px;
    }

    .hormone-modern-stats {
        gap: 8px;
    }

    .hormone-stat-item {
        font-size: 11px;
        padding: 5px 8px;
    }

    .hormone-modern-content {
        padding: 10px 15px;
    }

    .hormone-item {
        padding: 10px;
    }

    .hormone-modern-list {
        gap: 12px;
    }
}
