/*
Theme Name: Veteranov109 Clean
Author: You
Version: 1.0
Description: Чистая базовая тема для пр. Ветеранов 109
*/

/* Базовые стили */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f6f9;
    color: #333;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.site-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
    border-radius: 0 0 20px 20px;
    margin-bottom: 30px;
}
.site-header h1 a {
    color: white;
    text-decoration: none;
    font-size: 2.5em;
    margin: 0;
}
.site-header p {
    font-size: 1.2em;
    opacity: 0.9;
    margin-top: 10px;
}
.site-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    min-height: 60vh;
}
.site-footer {
    text-align: center;
    padding: 20px;
    color: #666;
    margin-top: 30px;
}
/* Стили главного меню - Вариант 1 */
.main-menu {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px 20px;
    margin-top: 20px;
    backdrop-filter: blur(10px);
}
.menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
.menu-list li a {
    color: white;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.menu-list li a:hover {
    background: white;
    color: #1e3c72;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.menu-list li.current-menu-item a {
    background: white;
    color: #1e3c72;
    font-weight: bold;
}
/* Скрыть заголовок на ВСЕХ страницах */
article .wp-block-heading,
article h1,
article h2,
article .entry-content > *:first-child {
    display: none !important;
}
/* === АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ === */
@media (max-width: 768px) {
    /* Шапка */
    .site-header {
        padding: 20px 10px;
        border-radius: 0 0 15px 15px;
        overflow: hidden; /* Предотвращает выход за пределы */
    }
    
    .site-header h1 a {
        font-size: 1.4em !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
        display: inline-block;
    }
    
    .site-header p {
        font-size: 0.9em;
        padding: 0 10px;
    }
    
    /* Меню на мобильном */
    .menu-list {
        flex-direction: column;
        gap: 8px;
        align-items: center;
        padding: 0;
    }
    
    .menu-list li a {
        font-size: 0.9em !important;
        padding: 10px 20px !important;
        width: 85%;
        max-width: 300px;
        text-align: center;
        white-space: nowrap;
        box-sizing: border-box;
    }
    
    /* Контейнер */
    .container {
        padding: 10px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .site-content {
        padding: 15px;
        border-radius: 10px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .site-header {
        padding: 15px 8px;
    }
    
    .site-header h1 a {
        font-size: 1.2em !important;
    }
    
    .site-header p {
        font-size: 0.8em;
    }
    
    .menu-list li a {
        font-size: 0.85em !important;
        padding: 8px 15px !important;
        width: 90%;
    }
    
    .site-content {
        padding: 10px;
    }
}
/* === КАМЕРЫ - ИСПРАВЛЕНИЕ ДЛЯ МОБИЛЬНЫХ === */
@media (max-width: 768px) {
    /* Переносим кнопки под видео вместо наложения */
    .camera-system-wrapper [style*="position: absolute; top: 10px; right: 10px"] {
        position: static !important;
        justify-content: flex-end !important;
        padding: 8px 10px !important;
        background: rgba(0, 0, 0, 0.6) !important;
        margin-top: -40px;
        margin-right: 5px;
        margin-bottom: 8px;
        border-radius: 4px;
        z-index: 20 !important;
    }
    
    /* Уменьшаем кнопки */
    .camera-system-wrapper [data-action="fullscreen"],
    .camera-system-wrapper [data-action="sound"] {
        padding: 5px 10px !important;
        font-size: 14px !important;
        min-width: 32px !important;
        min-height: 32px !important;
    }
    
    /* Уменьшаем высоту видео */
    .camera-system-wrapper video[data-camera] {
        height: 180px !important;
    }
    
    /* Уменьшаем заголовок камеры */
    .camera-system-wrapper [style*="padding: 12px; background: #1a1a3e"] {
        padding: 8px !important;
        font-size: 12px !important;
    }
    
    /* Уменьшаем LIVE индикатор */
    .camera-system-wrapper [style*="position: absolute; bottom: 10px; left: 10px"] {
        font-size: 9px !important;
        padding: 2px 8px !important;
        bottom: 5px !important;
        left: 5px !important;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 400px) {
    .camera-system-wrapper [style*="position: absolute; top: 10px; right: 10px"] {
        margin-top: -35px;
        padding: 5px !important;
    }
    
    .camera-system-wrapper [data-action="fullscreen"],
    .camera-system-wrapper [data-action="sound"] {
        padding: 4px 6px !important;
        font-size: 12px !important;
        min-width: 28px !important;
    }
    
    .camera-system-wrapper video[data-camera] {
        height: 150px !important;
    }
}

/* === ИСПРАВЛЕНИЕ КНОПОК МЕНЮ === */
.main-menu {
    text-align: center;
    padding: 20px 15px;
}

.menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.menu-list li {
    width: 100%;
    display: flex;
    justify-content: center;
}

.menu-list li a {
    display: inline-block;
    min-width: 220px;
    max-width: 280px;
    width: 100%;
    text-align: center;
    padding: 14px 20px !important;
    box-sizing: border-box;
    text-decoration: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s;
}

.menu-list li a:hover,
.menu-list li.current-menu-item a {
    background: white;
    color: #1e3c72;
    border-color: white;
}

/* Для мобильных */
@media (max-width: 768px) {
    .menu-list li a {
        min-width: 200px !important;
        max-width: 260px !important;
        padding: 12px 20px !important;
        font-size: 0.95em !important;
    }
}

@media (max-width: 480px) {
    .menu-list li a {
        min-width: 180px !important;
        max-width: 240px !important;
        padding: 10px 18px !important;
        font-size: 0.9em !important;
    }
}

