/* Navigation Redesign Styles */

:root {
    --nav-blue: #0052A5;
    --nav-red: #D32F2F;
    --nav-dark: #333333;
    --nav-gray: #f8f9fa;
    --nav-border: #e9ecef;
    --nav-text: #212529;
    --nav-hover: #f1f8ff;
}

/* Top Bar */
.top-bar {
    background-color: var(--nav-blue);
    color: white;
    font-size: 0.9rem;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    width: 95%;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar a:hover {
    opacity: 0.8;
}

.top-bar-social {
    display: flex;
    gap: 15px;
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-give-zakat {
    background-color: var(--nav-red);
    padding: 8px 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
}

.btn-partners {
    background-color: #e0e0e0;
    color: #333 !important;
    padding: 8px 16px;
    font-weight: 600;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
}

/* Main Header */
.main-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    height: 70px;
    display: flex;
    align-items: center;
    width: 100%;
    /* Ensure full width */
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Push Left and Right apart */
    max-width: 100%;
    /* Full width as requested */
    width: 100%;
    padding: 0 30px;
    /* Add breathing room on sides */
    height: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.logo-groups img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.btn-rebuild-gaza {
    background-color: #FFC107;
    color: #000;
    padding: 6px 15px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
    height: 38px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Navigation Links & Dropdowns */
.nav-center {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    /* Align links to the right */
    padding-right: 20px;
    /* Space before the donate button */
}

.nav-menu {
    display: flex;
    gap: 10px;
    /* Better spacing between links */
    margin: 0;
    list-style: none;
    padding: 0;
    align-items: center;
    height: 100%;
}

.nav-item {
    position: relative;
}

.nav-link-custom {
    display: block;
    padding: 10px 15px;
    color: var(--nav-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    font-size: 1rem;
}

.nav-link-custom:hover {
    color: var(--nav-blue);
}

.nav-link-custom i {
    font-size: 0.75em;
    margin-left: 6px;
    color: #999;
    transition: transform 0.3s ease, color 0.3s ease;
}

.nav-item:hover .nav-link-custom i {
    transform: rotate(180deg);
    color: var(--nav-blue);
}

/* Dropdown Menu */
.dropdown-menu-custom {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--nav-blue);
    /* Blue top border */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-radius: 0 0 4px 4px;
    padding: 10px 0;
    z-index: 1001;
}

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

.dropdown-item-custom {
    display: block;
    padding: 8px 20px;
    color: var(--nav-text);
    text-decoration: none;
    transition: background 0.2s, padding-left 0.2s;
}

.dropdown-item-custom:hover {
    background: var(--nav-hover);
    color: var(--nav-blue);
    padding-left: 25px;
    /* Slight slide effect */
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-donate-red {
    background-color: var(--nav-red);
    color: white;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-donate-red:hover {
    background-color: #b71c1c;
    color: white;
}

.basket-icon {
    position: relative;
    color: var(--nav-dark);
    font-size: 1.2rem;
    cursor: pointer;
}

.basket-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--nav-red);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Mobile Toggle */
.mobile-toggle-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--nav-dark);
}

/* Responsive */
@media (max-width: 1100px) {
    .nav-menu {
        display: none;
        /* Hide desktop menu on smaller screens, need mobile implementation */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        width: 100%;
    }

    .dropdown-menu-custom {
        position: static;
        box-shadow: none;
        border-top: none;
        border-left: 2px solid var(--nav-blue);
        padding-left: 10px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .nav-item.active .dropdown-menu-custom {
        display: block;
    }

    .top-bar .container {
        flex-direction: column;
        gap: 10px;
    }

    .logo-groups img {
        height: 50px;
    }

    .btn-rebuild-gaza {
        display: none;
        /* Hide on very small screens or move */
    }

    .mobile-toggle-btn {
        display: block;
    }

    .header-right {
        display: none;
        /* Simplify for mobile, maybe just donate button */
    }

    /* Mobile headers need adjustment */
    .header-left {
        width: 100%;
        justify-content: space-between;
    }

    .header-left .btn-donate-red-mobile {
        display: block;
        background: var(--nav-red);
        color: white;
        padding: 8px 12px;
        border-radius: 4px;
        font-size: 0.9rem;
        text-decoration: none;
    }
}