/**
 * Стили для хедера массажного салона
 */

/* ===== ОСНОВНОЙ ХЕДЕР ===== */
.massage-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.massage-header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* ===== ЛОГОТИП ===== */
.massage-logo {
    flex-shrink: 0;
}

.massage-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.massage-logo img {
    max-height: 50px;
    width: auto;
}

.massage-logo .site-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c5f2d;
    text-decoration: none;
}

/* ===== НАВИГАЦИЯ ===== */
.massage-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

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

.menu-item {
    position: relative;
}

.menu-item > a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
}

.menu-item > a:hover {
    color: #2c5f2d;
}

.menu-item > a svg {
    transition: transform 0.3s;
}

.menu-item.has-dropdown:hover > a svg {
    transform: rotate(180deg);
}

/* ===== ВЫПАДАЮЩЕЕ МЕНЮ ===== */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 10px 0;
    list-style: none;
    margin: 5px 0 0 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.menu-item.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
    color: #2c5f2d;
    padding-left: 25px;
}

.dropdown-menu .divider {
    height: 1px;
    background: #e9ecef;
    margin: 8px 0;
}

/* ===== КНОПКА ЗАПИСИ ===== */
.booking-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 154, 158, 0.3);
    white-space: nowrap;
}

.booking-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 154, 158, 0.4);
    background: linear-gradient(135deg, #ff8a8e 0%, #fdbfdf 100%);
}

/* ===== МОБИЛЬНАЯ КНОПКА МЕНЮ ===== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 968px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .massage-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 30px 30px;
        gap: 0;
        transition: right 0.3s ease;
        overflow-y: auto;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }

    .massage-nav.active {
        right: 0;
    }

    .massage-menu {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .menu-item {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .menu-item > a {
        width: 100%;
        padding: 15px 0;
        justify-content: space-between;
    }

    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        transform: none;
        box-shadow: none;
        padding: 0;
        margin: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .menu-item.has-dropdown.open .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
        padding: 10px 0 10px 20px;
    }

    .dropdown-menu a {
        padding: 10px 0;
    }

    .dropdown-menu a:hover {
        background: none;
        padding-left: 5px;
    }

    .booking-button {
        width: 100%;
        text-align: center;
        margin-top: 20px;
    }

    /* Затемнение фона при открытом меню */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
}

@media (max-width: 640px) {
    .massage-header-container {
        height: 70px;
    }

    .massage-logo .site-title {
        font-size: 20px;
    }

    .massage-nav {
        width: 280px;
    }
}

/* ===== СКРОЛЛИНГ ЭФФЕКТ ===== */
.massage-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.massage-header.scrolled .massage-header-container {
    height: 70px;
}

/* ===== АКТИВНАЯ СТРАНИЦА ===== */
.menu-item.current-menu-item > a,
.menu-item.current_page_item > a {
    color: #2c5f2d;
    font-weight: 600;
}
