/*
Theme Name: Gym Schedule Theme
Theme URI: https://example.com
Description: Кастомная тема для системы бронирования занятий в спортзале
Version: 1.0.0
Author: Gym Schedule Team
License: GPL v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gym-schedule-theme
*/

/* === Основные стили === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Шапка === */
.site-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.site-title {
    font-size: 28px;
    font-weight: bold;
    margin: 0;
}

.site-description {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

/* === Навигация === */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
    display: block;
    padding: 5px 0;
}

.main-navigation a:hover {
    opacity: 0.8;
}

/* Выпадающее меню залов */
.menu-item-has-children > a::after {
    content: ' ▼';
    margin-left: 5px;
    font-size: 12px;
}

.halls-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 250px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-radius: 5px;
    padding: 10px 0;
    display: none !important;
    z-index: 1000;
    list-style: none;
}

.menu-item-has-children:hover .halls-dropdown {
    display: block !important;
}

.hall-item {
    position: relative;
    padding: 10px 20px;
    border-bottom: 1px solid #eee;
}

.hall-item:last-child {
    border-bottom: none;
}

.hall-item > a {
    display: block;
    color: #333;
    padding: 0;
    transition: background 0.3s;
}

.hall-item > a:hover {
    background: #f5f5f5;
}

.hall-name {
    display: block;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 5px;
}

.hall-description {
    display: block;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.hall-actions {
    position: absolute;
    top: 0;
    right: 100%;
    background: white;
    min-width: 150px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-radius: 5px;
    padding: 10px 0;
    display: none !important;
    z-index: 1001;
    list-style: none;
}

.hall-item:hover .hall-actions {
    display: block !important;
}

.hall-actions li {
    padding: 8px 20px;
    border-bottom: 1px solid #eee;
}

.hall-actions li:last-child {
    border-bottom: none;
}

.hall-actions a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.hall-actions a:hover {
    color: #333;
}

/* Адаптивное меню для мобильных устройств */
@media (max-width: 768px) {
    .main-navigation {
        flex-direction: column;
        align-items: flex-start;
        position: relative;
    }
    
    /* Кнопка бургер-меню */
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        z-index: 1001;
    }
    
    .mobile-menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background: white;
        margin: 5px 0;
        transition: all 0.3s;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Контейнер меню */
    .navigation-menu {
        display: none;
        width: 100%;
        background: #667eea;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .navigation-menu.active {
        display: block;
        max-height: 1000px;
    }
    
    .navigation-menu ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 0;
    }
    
    .navigation-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .navigation-menu a {
        padding: 15px 20px;
        width: 100%;
        display: block;
        color: white;
    }
    
    .menu-item-has-children > a::after {
        content: ' +';
        float: right;
    }
    
    .menu-item-has-children.active > a::after {
        content: ' -';
    }
    
    .halls-dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        display: none !important;
        background: rgba(255,255,255,0.1);
    }
    
    .menu-item-has-children.active .halls-dropdown {
        display: block !important;
    }
    
    .hall-item {
        padding: 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .hall-item > a {
        padding: 15px 30px;
        color: white;
    }
    
    .hall-actions {
        position: static;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        display: none !important;
        background: rgba(255,255,255,0.05);
    }
    
    .hall-item.active .hall-actions {
        display: block !important;
    }
    
    .hall-actions li {
        padding: 0;
        border-bottom: none;
    }
    
    .hall-actions a {
        padding: 12px 40px;
        display: block;
        color: white;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-top: 20px;
        padding: 20px;
        background: rgba(255,255,255,0.1);
    }
    
    .contact-info a {
        color: white;
        padding: 5px 20px;
    }
    
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .site-branding {
        margin-bottom: 20px;
    }
    
    body.menu-open {
        overflow: hidden;
    }
}

@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .navigation-menu {
        display: flex !important;
        align-items: center;
        gap: 30px;
    }
}

.main-navigation a:hover {
    opacity: 0.8;
}

.contact-info {
    display: flex;
    gap: 15px;
    font-size: 14px;
}

.contact-info a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.contact-info a:hover {
    opacity: 0.8;
}

/* === Контент === */
.site-content {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

/* === Титульная страница === */
.hero-section {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 40px;
}

.hero-section h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: white;
    color: #11998e;
}

.btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.3);
}

/* === Секции === */
.section {
    background: white;
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.section-title {
    font-size: 32px;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

/* === Карточки залов === */
halls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.hall-card {
    background: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.hall-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.hall-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.hall-card-content {
    padding: 20px;
}

.hall-card h3 {
    margin-bottom: 10px;
    color: #667eea;
}

.hall-card p {
    color: #666;
    margin-bottom: 15px;
}

.hall-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #888;
}

.hall-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* === Карточки тренеров === */
.trainers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.trainer-card {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.trainer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.trainer-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    font-weight: bold;
}

.trainer-card h3 {
    margin-bottom: 10px;
    color: #333;
}

.trainer-card p {
    color: #666;
    margin-bottom: 15px;
}

.trainer-specialization {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 15px;
}

/* === Страница авторизации === */
.login-section {
    max-width: 400px;
    margin: 50px auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.login-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #667eea;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #333;
}

.form-group input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.login-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
}

.login-button:hover {
    transform: translateY(-2px);
}

/* === Подвал === */
.site-footer {
    background: #333;
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: #667eea;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    line-height: 1.8;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #888;
}

/* === Адаптивность === */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-navigation ul {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 32px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .halls-grid,
    .trainers-grid {
        grid-template-columns: 1fr;
    }
}

/* === Дополнительные классы === */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.p-20 {
    padding: 20px;
}
