/**
 * HealthTurk.net - Mobile Hamburger Menu & Slide Drawer Styles
 * High-performance, touch-friendly, animated mobile navigation
 */

/* Hamburger Button */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    z-index: 1002;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.hamburger-btn:hover {
    background-color: var(--bg-light);
}

.hamburger-btn span {
    display: block;
    width: 24px;
    height: 2.5px;
    background-color: var(--primary-navy);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

/* Transform Hamburger to 'X' */
.hamburger-btn.is-active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.hamburger-btn.is-active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-btn.is-active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile Menu Backdrop */
.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 28, 51, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

/* Mobile Slide-out Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background-color: #ffffff;
    z-index: 1002;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: right 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mobile-drawer.is-open {
    right: 0;
}

/* Drawer Header */
.drawer-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
}

.drawer-close-btn {
    background: var(--bg-light);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary-navy);
}

/* Drawer Body */
.drawer-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Quick Switchers in Drawer */
.drawer-switchers {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    background: var(--bg-light);
    padding: 6px;
    border-radius: 10px;
}

.drawer-select {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-navy);
    background: #ffffff;
    outline: none;
}

/* Drawer Navigation Links */
.drawer-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drawer-nav-item {
    border-radius: 8px;
    overflow: hidden;
}

.drawer-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    color: var(--primary-navy);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.drawer-nav-link:hover {
    background-color: var(--bg-light);
    color: var(--accent-teal);
}

/* Accordion for Treatments */
.accordion-toggle {
    cursor: pointer;
}

.accordion-arrow {
    font-size: 0.8rem;
    transition: transform 0.25s ease;
}

.accordion-toggle.is-active .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    list-style: none;
    background-color: var(--bg-light);
    border-radius: 8px;
    margin: 4px 0 8px;
    padding: 0 10px;
}

.accordion-sub-menu li a {
    display: block;
    padding: 8px 12px;
    font-size: 0.9rem;
    color: var(--text-main);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.accordion-sub-menu li:last-child a {
    border-bottom: none;
}

/* Drawer CTAs */
.drawer-ctas {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.drawer-ctas .btn {
    width: 100%;
}

/* Drawer Footer */
.drawer-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-light);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Show Hamburger on screens <= 991px */
@media (max-width: 991px) {
    .hamburger-btn {
        display: flex;
    }
}
