/* ============================================
   NAVBAR & FOOTER - GLOBAL SHARED STYLES
   These styles are safe and won't affect page-specific content
   ============================================ */

/* ============================================
   NAVBAR STYLES
   ============================================ */

.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 0.75rem 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: #2563eb !important;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand:hover {
    color: #1e40af !important;
    transform: translateY(-2px);
}

.navbar-brand i {
    font-size: 1.375rem;
}

.navbar-toggler {
    border: 2px solid #2563eb;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.navbar-toggler:hover .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.navbar-nav {
    gap: 0.5rem;
}

.nav-link {
    color: #374151 !important;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.625rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #2563eb !important;
    background: rgba(37, 99, 235, 0.08);
    transform: translateY(-1px);
}

.nav-link.active {
    color: #2563eb !important;
    background: rgba(37, 99, 235, 0.12);
}

/* Cart and Wishlist Icons */
.nav-link.position-relative {
    padding: 0.5rem 0.75rem !important;
}

.nav-link i.fs-5 {
    font-size: 1.25rem !important;
    transition: all 0.3s ease;
}

.nav-link:hover i.fs-5 {
    transform: scale(1.1);
}

/* Badge Styles for Cart/Wishlist Count */
.nav-link .badge {
    font-size: 0.625rem;
    padding: 0.25rem 0.4rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
    animation: badge-pop 0.3s ease;
}

@keyframes badge-pop {
    0% {
        transform: translate(-50%, -50%) scale(0);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    min-width: 200px;
    animation: dropdown-fade 0.3s ease;
}

@keyframes dropdown-fade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 0.625rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9375rem;
    color: #374151;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-item:hover {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    transform: translateX(4px);
}

.dropdown-item i {
    width: 18px;
    text-align: center;
    font-size: 0.875rem;
}

.dropdown-divider {
    margin: 0.5rem 0;
    opacity: 0.1;
}

.dropdown-toggle::after {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* User Name in Dropdown */
.nav-link.fw-bold.text-capitalize {
    color: #2563eb !important;
    font-weight: 700 !important;
    padding: 0.625rem 1rem !important;
}

.nav-link.fw-bold.text-capitalize:hover {
    background: rgba(37, 99, 235, 0.1);
}

/* ============================================
   FOOTER STYLES
   ============================================ */

.footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #e2e8f0;
    padding: 4rem 0 0;
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb 0%, #7c3aed 50%, #2563eb 100%);
    background-size: 200% 100%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.footer h5 {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #2563eb 0%, #7c3aed 100%);
    border-radius: 999px;
}

.footer h5 i {
    color: #2563eb;
    margin-right: 0.5rem;
}

.footer p {
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

.footer p i {
    color: #2563eb;
    width: 20px;
    text-align: center;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-links a:hover {
    background: #2563eb;
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
    border-color: #2563eb;
}

/* Footer Links */
.footer ul {
    padding: 0;
    margin: 0;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer ul li a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    position: relative;
    padding-left: 0;
}

.footer ul li a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
    color: #2563eb;
}

.footer ul li a:hover {
    color: #2563eb;
    padding-left: 20px;
}

.footer ul li a:hover::before {
    left: 0;
    opacity: 1;
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.875rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 991px) {
    .navbar-nav {
        padding: 1rem 0;
        gap: 0.25rem;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
    }
    
    .dropdown-menu {
        border: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: none;
    }
    
    .footer {
        padding: 3rem 0 0;
        margin-top: 3rem;
    }
    
    .footer h5 {
        margin-top: 2rem;
        font-size: 1rem;
    }
    
    .footer h5:first-child {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-brand i {
        font-size: 1.125rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        margin-top: 2rem;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.nav-link:focus,
.dropdown-item:focus,
.social-links a:focus,
.footer ul li a:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .navbar,
    .footer {
        display: none;
    }
}
