﻿/* Custom Menu Styles - No Bootstrap Dependencies */
.breednet-nav {
    background-color: #fff;
    position: relative;
    width: 100%;
    padding: .5rem 1rem;
}

.breednet-nav-container {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    position: relative;
}

.breednet-logo {
    display: none;
}

.breednet-search {
    display: none;
}

.breednet-toggler {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
}

.breednet-toggler-icon {
    display: block;
    width: 56px;
    height: 40px;
    position: relative;
    background-color: #ececec;
    padding: .25rem .75rem;
    font-size: 1.25rem;
    line-height: 1;
    background-color: #ececec;
    border: 1px solid transparent;
    border-radius: .25rem;
}

.breednet-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breednet-menu-item {
    position: relative;
    margin: 0 0;
}

.breednet-menu-link {
    display: block;
    color: rgba(0,0,0,.5);
    text-decoration: none;
    padding: 0.5rem 0.5rem;
    font-size: 1rem;
    transition: background-color 0.3s;
}

    .breednet-menu-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #000;
        text-decoration: none;
    }

.breednet-dropdown {
    position: relative;
}

.breednet-dropdown-toggle {
    padding-right: 1.5rem;
    position: relative;
}

    .breednet-dropdown-toggle::after {
        content: '';
        display: inline-block;
        width: 0;
        height: 0;
        margin-left: 0.5rem;
        vertical-align: middle;
        border-top: 0.3rem solid;
        border-right: 0.3rem solid transparent;
        border-left: 0.3rem solid transparent;
        position: absolute;
        right: 0.5rem;
        top: 50%;
        transform: translateY(-50%);
        transition: transform 0.2s;
    }

.breednet-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.25rem;
    min-width: 10rem;
    padding: 0.5rem 0;
    margin: 0.125rem 0 0;
    z-index: 1000;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
}

.breednet-dropdown-item {
    display: block;
    width: 100%;
    padding: 0.5rem 1.5rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    text-decoration: none;
}

    .breednet-dropdown-item:hover {
        background-color: #f8f9fa;
        color: #16181b;
        text-decoration: none;
    }

.breednet-dropdown.open .breednet-dropdown-menu {
    display: block;
}

.breednet-dropdown.open .breednet-dropdown-toggle::after {
    transform: translateY(-50%) rotate(180deg);
}

.premium-menu-item .breednet-menu-link {
    background-color: mediumpurple;
    color: white;
}

/* Mobile Menu Overlay */
.breednet-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

    .breednet-overlay.active {
        display: block;
    }

/* Close button for mobile menu */
.breednet-close {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    z-index: 1001;
}

/* Mobile styles */
@media (max-width: 1199.98px) {
    .breednet-nav {
        background-color: #1a7c9c;
        position: relative;
        width: 100%;
    }

    .breednet-logo {
        display: block;
        margin-right: auto;
    }

    .breednet-search {
        display: flex;
        margin-right: 1rem;
    }

        .breednet-search .magnify-icon {
            cursor: pointer;
            font-size: 1.25rem;
        }

        .breednet-search .mobile-search-input {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            padding: 0.5rem;
            background-color: white;
            z-index: 1000;
        }

            .breednet-search .mobile-search-input.active {
                display: block;
            }

    .breednet-toggler {
        display: block;
    }

    .breednet-menu-container {
        position: fixed;
        top: 0;
        left: -320px;
        width: 320px;
        height: 100vh;
        background-color: #1a7c9c;
        z-index: 999;
        overflow-y: auto;
        transition: left 0.3s ease-in-out;
        padding: 1rem 1rem 4rem 1rem;
    }

        .breednet-menu-container.open {
            left: 0;
        }

    .breednet-close {
        display: block;
    }

    .breednet-menu {
        flex-direction: column;
        padding-top: 2rem;
    }

    .breednet-menu-item {
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .breednet-menu-link {
        padding: 1rem;
        color: white;
    }

    .breednet-dropdown-toggle::after {
        right: 1rem;
    }

    .breednet-dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        margin: 0;
        background-color: #22657b;
        padding: 0;
        border-radius: 0;
    }

    .breednet-dropdown-item {
        color: white;
        padding: 0.75rem 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

        .breednet-dropdown-item:hover {
            background-color: rgba(255, 255, 255, 0.1);
            color: white;
        }
}
/* Updated toggle icon with cross transition */
.breednet-toggler-icon span {
    display: block;
    position: absolute;
    height: 2px;
    width: 50%;
    background: rgba(0,0,0,.5);
    opacity: 1;
    left: 25%;
    transform-origin: center;
    transition: transform 0.3s ease-in-out, top 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

    .breednet-toggler-icon span:nth-child(1) {
        top: 8px;
    }

    .breednet-toggler-icon span:nth-child(2) {
        top: 18px;
    }

    .breednet-toggler-icon span:nth-child(3) {
        top: 28px;
    }

/* Toggle icon animation when menu is open */
.breednet-toggler[aria-expanded="true"] .breednet-toggler-icon span:nth-child(1) {
    top: 16px;
    transform: rotate(45deg);
}

.breednet-toggler[aria-expanded="true"] .breednet-toggler-icon span:nth-child(2) {
    opacity: 0;
}

.breednet-toggler[aria-expanded="true"] .breednet-toggler-icon span:nth-child(3) {
    top: 16px;
    transform: rotate(-45deg);
}

/* Optional: Change background color when toggled */
.breednet-toggler[aria-expanded="true"] .breednet-toggler-icon {
    background-color: #d8d8d8;
}