/* Адаптивный дизайн для мобильных устройств в горизонтальном формате */

/* Общие оптимизации для горизонтального формата */
@media screen and (orientation: landscape) and (max-height: 600px) {
    /* Оптимизация контейнера */
    .container {
        height: 100vh;
        overflow: hidden;
    }
    
    /* Компактный заголовок */
    .header {
        padding: 3px 8px;
        border-bottom: 1px solid #0f0;
    }
    
    .nav-list {
        justify-content: space-around;
        margin: 0;
    }
    
    .nav-item {
        padding: 4px 8px;
        font-size: 0.6rem;
        text-align: center;
        min-width: 60px;
    }
    
    /* Основной контент с прокруткой */
    .main-content {
        padding: 8px;
        overflow-y: auto;
        height: calc(100vh - 50px);
    }
    
    /* Компактные заголовки разделов */
    .tab-content h1 {
        font-size: 1rem;
        margin-bottom: 8px;
        text-align: center;
    }
    
    /* SPECIAL интерфейс адаптирован в special-stats.css */
    
    /* Задания в компактном виде */
    #quests {
        padding: 8px;
    }
    
    #quest-search-bar {
        width: 100%;
        padding: 4px;
        font-size: 0.6rem;
        margin-bottom: 8px;
        border: 1px solid #0f0;
        background: rgba(0, 0, 0, 0.8);
        color: #0f0;
    }
    
    .quests-list {
        gap: 8px;
        max-height: 300px;
        overflow-y: auto;
    }
    
    .quest-item {
        padding: 8px;
        border: 1px solid #0f0;
        background: rgba(0, 0, 0, 0.9);
    }
    
    .quest-title {
        font-size: 0.5rem;
    }
    
    .quest-priority {
        font-size: 0.4rem;
        padding: 2px 4px;
    }
    
    .quest-description {
        font-size: 0.4rem;
        line-height: 1.3;
        margin-bottom: 8px;
    }
    
    .quest-objectives h4 {
        font-size: 0.4rem;
        margin-bottom: 4px;
    }
    
    .quest-objectives li {
        font-size: 0.35rem;
        line-height: 1.2;
        margin-bottom: 2px;
    }
    
    .quest-reward span {
        font-size: 0.35rem;
    }
    
    /* Карта компактная */
    #map {
        padding: 8px;
    }
    
    .map-container {
        height: 200px;
        position: relative;
    }
    
    .interactive-map {
        width: 100%;
        height: 100%;
    }
    
    .map-instructions {
        font-size: 0.4rem;
        margin: 4px 0;
        text-align: center;
    }
    
    /* Радио в две колонки */
    #radio {
        padding: 8px;
    }
    
    .radio-placeholder {
        font-size: 0.5rem;
        text-align: center;
        margin-bottom: 8px;
    }
    
    .radio-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px;
        margin-bottom: 8px;
    }
    
    .radio-station {
        font-size: 0.45rem;
        padding: 6px;
        border: 1px solid #0f0;
        background: rgba(0, 0, 0, 0.7);
        cursor: pointer;
        text-align: center;
        line-height: 1.2;
    }
    
    .radio-station:hover {
        background: rgba(0, 255, 0, 0.1);
    }
    
    .currently-playing {
        font-size: 0.5rem;
        text-align: center;
    }
    
    /* Боковая панель для деталей предметов */
    .side-panel {
        position: fixed;
        top: 50px;
        right: -300px;
        width: 280px;
        height: calc(100vh - 50px);
        background: rgba(0, 0, 0, 0.95);
        border: 2px solid #0f0;
        padding: 10px;
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .side-panel.visible {
        right: 0;
    }
    
    .side-panel-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
    }
    
    .item-details-name {
        font-size: 0.6rem;
    }
    
    .close-button {
        background: none;
        border: 1px solid #0f0;
        color: #0f0;
        font-size: 1rem;
        cursor: pointer;
        padding: 2px 6px;
    }
    
    .item-details-icon {
        width: 60px;
        height: 60px;
        margin: 10px auto;
        display: block;
    }
    
    .item-details-description,
    .item-details-weight,
    .item-details-value {
        font-size: 0.5rem;
        margin: 5px 0;
        line-height: 1.3;
    }
}

/* Дополнительные оптимизации для очень маленьких экранов */
@media screen and (orientation: landscape) and (max-height: 450px) {
    .nav-item {
        font-size: 0.5rem;
        padding: 2px 4px;
    }
    
    .tab-content h1 {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }
    
    /* SPECIAL адаптивность в special-stats.css */
    
    .quests-list {
        gap: 6px;
        max-height: 200px;
    }
    
    .quest-item {
        padding: 6px;
    }
    
    .quest-title {
        font-size: 0.4rem;
    }
    
    .quest-description {
        font-size: 0.35rem;
    }
    
    .quest-objectives h4 {
        font-size: 0.35rem;
    }
    
    .quest-objectives li {
        font-size: 0.3rem;
    }
    
    .map-container {
        height: 150px;
    }
    
    .radio-list {
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    .radio-station {
        font-size: 0.4rem;
        padding: 4px;
    }
}

/* Скрытие элементов при необходимости */
@media screen and (orientation: landscape) and (max-height: 400px) {
    .map-instructions {
        display: none;
    }
    
    .radio-placeholder {
        display: none;
    }
} 