﻿/* =============================================
   wwwroot/css/navbar.css
   SunShine Premium Navbar — Final Compact Version
   ============================================= */

/* ---------- Base Navbar ---------- */
.navbar-premium {
    background: linear-gradient(135deg, #071a10 0%, #0e3521 30%, #1a5230 60%, #0e3521 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
    padding: 0.25rem 0; /* Compact height */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 1030;
}

.navbar-scrolled {
    padding: 0.15rem 0;
    backdrop-filter: blur(25px);
    background: linear-gradient(135deg, rgba(7, 26, 16, 0.98), rgba(26, 82, 48, 0.98));
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 215, 0, 0.2);
}

/* ---------- Brand ---------- */
.navbar-brand-premium {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0.25rem 0;
    transition: transform 0.3s ease;
}

    .navbar-brand-premium:hover {
        transform: translateY(-1px);
    }

.brand-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-orb {
    width: 142px; /* Compact */
    height: 42px;
    background: linear-gradient(135deg, #FFD700, #F9A826, #FF8C00);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 2px solid rgba(255, 215, 0, 0.3);
    animation: borderGlow 3s ease-in-out infinite alternate;
}

    .logo-orb:hover {
        transform: scale(1.05) rotate(3deg);
        box-shadow: 0 8px 25px rgba(255, 215, 0, 0.7);
    }

    .logo-orb img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-main {
    font-size: 1.15rem; /* Compact */
    font-weight: 800;
    background: linear-gradient(135deg, #FFD700, #FFB347, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.3));
}

.brand-sub {
    font-size: 0.55rem; /* Compact */
    font-weight: 600;
    color: #FFD700;
    letter-spacing: 1.5px;
    margin-top: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.4);
}

/* ---------- Nav Links ---------- */
.navbar-nav {
    align-items: center;
    gap: 2px; /* Tight gap */
}

    .navbar-nav .nav-link {
        color: rgba(255, 245, 214, 0.9) !important;
        font-weight: 600;
        padding: 0.4rem 0.65rem !important; /* Compact */
        margin: 0;
        border-radius: 8px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        display: flex !important;
        align-items: center !important;
        font-size: 0.82rem; /* Compact */
        letter-spacing: 0.3px;
        white-space: nowrap;
    }

        .navbar-nav .nav-link::before {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 3px;
            background: linear-gradient(90deg, #FFD700, #F9A826, #FF8C00);
            transition: all 0.3s ease;
            border-radius: 3px;
            box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
        }

        .navbar-nav .nav-link::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.15), transparent);
            transition: left 0.5s ease;
        }

        .navbar-nav .nav-link:hover::after {
            left: 100%;
        }

        .navbar-nav .nav-link:hover,
        .navbar-nav .nav-link.active {
            color: #FFD700 !important;
            background: rgba(255, 215, 0, 0.08);
            transform: translateY(-1px);
        }

            .navbar-nav .nav-link:hover::before,
            .navbar-nav .nav-link.active::before {
                width: 70%;
            }

        /* Icon colors */
        .navbar-nav .nav-link i {
            transition: all 0.3s ease;
            width: 16px;
            text-align: center;
            font-size: 0.85rem;
            color: #FFD700;
        }

        .navbar-nav .nav-link:hover i,
        .navbar-nav .nav-link.active i {
            transform: scale(1.15);
            filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.6));
        }

/* ---------- Standard Dropdown ---------- */
.dropdown-menu-premium {
    background: linear-gradient(135deg, rgba(7, 26, 16, 0.98) 0%, rgba(26, 82, 48, 0.98) 100%);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 215, 0, 0.08);
    min-width: 220px;
}

.dropdown-item {
    color: rgba(255, 245, 214, 0.9);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    margin: 0.1rem 0;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center !important;
    font-size: 0.85rem;
    gap: 10px;
}

    .dropdown-item:hover {
        background: linear-gradient(90deg, rgba(255, 215, 0, 0.18), rgba(255, 140, 0, 0.1));
        color: #FFD700;
        transform: translateX(4px);
    }

    .dropdown-item i {
        width: 16px;
        text-align: center;
        color: #F9A826;
    }

.dropdown-divider {
    border-color: rgba(255, 215, 0, 0.15);
    margin: 0.4rem 0;
}

/* Category list specific active state */
.category-list-dropdown .dropdown-item.active {
    background: rgba(255, 215, 0, 0.15) !important;
    border-left: 3px solid #FFD700 !important;
    color: #FFD700 !important;
    border-radius: 0 8px 8px 0 !important;
}

/* ---------- Desktop Hover Dropdown ---------- */
@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu-premium {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-menu-premium {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* ---------- Mobile Toggler ---------- */
.navbar-toggler {
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 0.3rem 0.5rem;
    border-radius: 8px;
    background: rgba(255, 215, 0, 0.05);
}

    .navbar-toggler:hover {
        border-color: rgba(255, 215, 0, 0.6);
        background: rgba(255, 215, 0, 0.12);
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 215, 0, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- Animations ---------- */
@keyframes borderGlow {
    0% {
        border-color: rgba(255, 215, 0, 0.3);
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    }

    100% {
        border-color: rgba(255, 140, 0, 0.6);
        box-shadow: 0 6px 25px rgba(255, 215, 0, 0.6);
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: linear-gradient(135deg, rgba(7, 26, 16, 0.98) 0%, rgba(26, 82, 48, 0.98) 100%);
        backdrop-filter: blur(25px);
        border-radius: 12px;
        margin-top: 0.5rem;
        padding: 0.5rem;
        max-height: 80vh;
        overflow-y: auto;
        border: 1px solid rgba(255, 215, 0, 0.15);
    }

    .navbar-nav .nav-link {
        justify-content: center;
        margin: 0.2rem 0;
        padding: 0.5rem 1rem !important;
        font-size: 0.9rem;
    }

    .dropdown-menu-premium {
        background: rgba(255, 215, 0, 0.04);
        border: 1px solid rgba(255, 215, 0, 0.1);
        box-shadow: none;
        text-align: center;
        margin-top: 0;
    }

    .dropdown-item {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .brand-main {
        font-size: 1.1rem;
    }

    .brand-sub {
        font-size: 0.55rem;
    }

    .logo-orb {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }
}

/* Adjust Body Padding to match compact navbar height */
body {
    padding-top: 58px !important;
}
/* =============================================
   RE-DESIGNED RIGHT SIDE ACTIONS & AUTH
   ============================================= */

/* Right side wrapper */
.nav-right-actions {
    border-left: 1px solid rgba(255, 215, 0, 0.2);
    padding-left: 1rem;
}

/* --- Guest Auth Group (Login / Register) --- */
.auth-guest-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 215, 0, 0.15);
}

.auth-btn-login {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

    .auth-btn-login:hover {
        color: #FFD700;
        background: rgba(255, 215, 0, 0.1);
    }

.auth-btn-register {
    background: linear-gradient(135deg, #FFD700, #F9A826);
    color: #071a10;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.4rem 1.25rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

    .auth-btn-register:hover {
        background: linear-gradient(135deg, #FFE57F, #FF8C00);
        transform: translateY(-1px);
        box-shadow: 0 6px 15px rgba(255, 215, 0, 0.5);
        color: #071a10;
    }

/* --- Logged In User Profile --- */
.auth-profile-btn {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 50px;
    padding: 0.25rem 0.75rem 0.25rem 0.25rem !important;
    color: #fff !important;
    transition: all 0.3s ease;
}

    .auth-profile-btn:hover {
        background: rgba(255, 215, 0, 0.1);
        border-color: #FFD700;
    }

.auth-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #071a10;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* --- Mobile Adjustments --- */
@media (max-width: 991.98px) {
    .nav-right-actions {
        border-left: none;
        border-top: 1px solid rgba(255, 215, 0, 0.15);
        padding-left: 0;
        padding-top: 1rem;
        flex-direction: column;
        align-items: stretch !important;
        gap: 1rem;
    }

        .nav-right-actions > a.nav-link {
            text-align: center;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            padding: 0.75rem !important;
        }

    .auth-guest-group {
        flex-direction: column;
        width: 100%;
        background: transparent;
        padding: 0;
        border: none;
        gap: 0.75rem;
    }

    .auth-btn-login,
    .auth-btn-register {
        width: 100%;
        text-align: center;
        padding: 0.75rem;
    }

    .auth-profile-btn {
        justify-content: center;
        width: 100%;
        padding: 0.5rem !important;
    }
}