/* Public Website Specific Styles for Shifu.Frontend */

/* Mobile-first responsive design improvements */
@media (max-width: 768px) {
    .navbar-header {
        padding: 0.5rem;
    }
    
    .top-menu {
        font-size: 12px !important;
        padding: 0.25rem 0.5rem !important;
    }
    
    .dropdown.header-item {
        margin: 0 0.25rem !important;
    }
    
    .layout-width {
        padding: 0 1rem;
    }
    
    .footer .row {
        text-align: center;
    }
    
    .footer .col-md-3,
    .footer .col-md-5 {
        margin-bottom: 2rem;
    }
}

/* Enhanced navigation styles */
.top-menu {
    color: #ffffff;
    cursor: pointer;
    transition: color 0.3s ease;
}

.top-menu:hover {
    color: #E32652;
}

/* Profile dropdown improvements */
.profile-hd {
    background-color: #1a1a1a !important;
}

.profile-bg:hover {
    background-color: #2a2a2a !important;
}

.foot-menu {
    color: #cccccc;
    transition: color 0.3s ease;
}

.foot-menu:hover {
    color: #ffffff;
    text-decoration: none;
}

/* Shopping cart and notification buttons */
.btn-topbar {
    border: none;
    background: transparent;
    color: #ffffff;
    transition: all 0.3s ease;
}

.btn-topbar:hover {
    background-color: rgba(234, 19, 69, 0.1);
    color: #E32652;
}

/* Main content wrapper */
.auth-page-wrapper {
    min-height: calc(100vh - 200px);
}

/* Logo hover effects */
.logo img {
    transition: opacity 0.3s ease;
}

.logo:hover img {
    opacity: 0.8;
}

/* Button enhancements */
.btn-outline-primary {
    border-color: #E32652;
    color: #E32652;
}

.btn-outline-primary:hover {
    background-color: #E32652;
    border-color: #E32652;
    color: #ffffff;
}

.btn-primary {
    background-color: #E32652;
    border-color: #E32652;
}

.btn-primary:hover {
    background-color: #c91039;
    border-color: #c91039;
}

/* Hamburger menu styles */
.topnav-hamburger .hamburger-icon span {
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.topnav-hamburger:hover .hamburger-icon span {
    background-color: #E32652;
}

/* Alert improvements */
.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Back to top button */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    background-color: #E32652;
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(234, 19, 69, 0.3);
    transition: all 0.3s ease;
}

#back-to-top:hover {
    background-color: #c91039;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 19, 69, 0.4);
}

/* Dropdown menu improvements */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-radius: 12px;
}

/* Loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Focus states for accessibility */
button:focus,
.btn:focus,
a:focus {
    outline: 2px solid #E32652;
    outline-offset: 2px;
}

/* Dark mode optimizations */
body[data-bs-theme="dark"] {
    --bs-body-color: #ffffff;
    --bs-body-bg: #000000;
}

/* Improved spacing for smaller screens */
@media (max-width: 576px) {
    .header-item {
        margin: 0 0.125rem !important;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .navbar-brand-box .logo-lg img {
        height: 35px !important;
    }
    
    .dropdown-menu {
        width: 100% !important;
        max-width: 280px;
    }
}

/* Performance optimizations */
* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #E32652;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c91039;
}