/* Layout - Navigation, Dropdown, Mobile Menu */

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    transform: translateY(-8px) scale(0.95);
    margin-top: 12px;
    min-width: 220px;
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.dropdown-item {
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    border-radius: 6px;
    transition: all 0.15s ease;
    text-decoration: none;
}

.dropdown-item:hover {
    background: #F1F5F9;
    color: #0F172A;
}

.dropdown-arrow {
    display: inline-block;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55), color 0.35s ease;
    transform-origin: center center;
    will-change: transform;
    transform: rotate(90deg);
    color: #94a3b8;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(-90deg) scale(1.15);
    color: #00BAFF;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    border-top: 2px solid #E2E8F0;
    border-bottom: 2px solid #E2E8F0;
    padding: 16px 0;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    z-index: 40;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-item {
    display: block;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 500;
    color: #64748b;
    border-bottom: 1px solid #F1F5F9;
    text-decoration: none;
    transition: all 0.2s ease;
}

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

.mobile-menu-item:hover,
.mobile-menu-item:active {
    color: #0F172A;
    background-color: #F8FAFC;
    padding-left: 28px;
}

.mobile-dropdown-items {
    background: #F8FAFC;
    padding: 8px 0;
    margin-top: 8px;
    margin-bottom: 8px;
    display: none;
    border-left: 3px solid #00BAFF;
}

.mobile-dropdown-items.active {
    display: block;
}

.mobile-dropdown-items .mobile-menu-item {
    font-size: 15px;
    padding: 10px 24px 10px 32px;
    border-bottom: none;
}

.mobile-dropdown-items .mobile-menu-item:hover {
    padding-left: 36px;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    margin: -8px;
    -webkit-tap-highlight-color: transparent;
    z-index: 51;
}

.hamburger:active {
    background-color: #F1F5F9;
    border-radius: 6px;
}

.hamburger span {
    width: 26px;
    height: 3px;
    background: #0F172A;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger active state (X) */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

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

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