/*
 * Navigation Bar Styles
 * For use with Custom HTML blocks in WordPress Block Editor
 * KCShofarYah Theme
 */
.custom-navbar-container {
    font-family: 'Poppins', sans-serif;
}

.custom-navbar {
    background: rgba(101, 68, 136, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.navbar-brand-mobile {
    display: none;
}

.logo-circle-mobile {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.2rem;
    background: transparent;
}

.logo-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.5rem;
}

/* Container for links to toggle them easily */
.custom-navbar-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    right: -1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
}

.nav-link:last-of-type::after {
    display: none;
}

/* Social Icons Container */
.navbar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.navbar-section-title {
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-icons,
.donate-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: white;
    transition: transform 0.2s ease, background 0.2s ease;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 50%;
    backdrop-filter: blur(5px);
}

.donate-icon {
    flex-direction: column;
    gap: 4px;
    height: auto;
    padding: 8px 12px;
    border-radius: 12px;
}

.donate-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-icon:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.25);
}

.social-icon i {
    font-size: 24px;
    color: white;
}

.custom-navbar a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.custom-navbar a:hover {
    color: var(--turquoise-surf);
}

.navbar-brand span {
    color: #ffffff !important;
}

/* Hamburger Menu Button (Hidden on Desktop) */
.custom-navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.custom-navbar-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Backdrop overlay */
.navbar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.navbar-backdrop.active {
    display: block;
    opacity: 1;
}

/* Close button in side menu */
.navbar-close {
    display: none;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .custom-navbar {
        justify-content: space-between;
    }
    
    .custom-navbar-toggle {
        display: flex;
        position: static;
    }
    
    .navbar-brand-mobile {
        display: block;
    }
    
    .custom-navbar-links {
        display: none;
    }
    
    .custom-navbar-links.active {
        display: flex;
    }

    .custom-navbar-links {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background: rgba(101, 68, 136, 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        transition: right 0.3s ease;
        gap: 1.5rem;
    }

    .custom-navbar-links.active {
        right: 0;
    }

    .custom-navbar-links a {
        text-align: center;
        color: #ffffff;
    }
    
    /* Header container for close button */
    .navbar-header {
        width: 100%;
        display: flex;
        justify-content: flex-end;
        margin-bottom: 1rem;
    }
    
    /* Close button visible on mobile */
    .navbar-close {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        cursor: pointer;
        width: 30px;
        height: 30px;
        padding: 0;
    }
    
    .navbar-close span {
        position: absolute;
        width: 25px;
        height: 3px;
        background-color: #ffffff;
        border-radius: 2px;
    }
    
    .navbar-close span:nth-child(1) {
        transform: rotate(45deg);
    }
    
    .navbar-close span:nth-child(2) {
        transform: rotate(-45deg);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .navbar-section {
        width: 100%;
        gap: 0.75rem;
        margin-top: 1.5rem;
        padding: 1.25rem;
        border-radius: 12px;
        background: var(--orange);
    }
    
    .navbar-section-title {
        font-size: 1.1rem;
    }
    
    /* Keep social icons horizontal on mobile */
    .social-icons,
    .donate-icons {
        flex-direction: row;
        gap: 1.25rem;
        width: 100%;
        justify-content: center;
    }
    
    .navbar-section .social-icon {
        width: 50px;
        height: 50px;
        background: rgba(255, 255, 255, 0.25);
    }
    
    .navbar-section .social-icon i {
        font-size: 28px;
    }
    
    /* Hamburger Animation when active */
    .custom-navbar-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .custom-navbar-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .custom-navbar-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
}