/* Modern Javítások a Shopper Frenzy Template-hez */

/* Javított Bejelentkezési Üzenet */
.welcome-message {
    display: none;
    position: fixed;
    top: 100px !important; /* Biztonságos távolság a menütől */
    left: 50%;
    transform: translate(-50%, 0);
    background: linear-gradient(135deg, #ff6600 0%, #ff8800 100%) !important;
    color: white;
    padding: 20px 40px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(255, 102, 0, 0.3);
    font-size: 18px;
    font-weight: 600;
    z-index: 10001 !important; /* Még magasabb z-index a menü felett */
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: calc(100% - 40px);
    max-width: 600px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.welcome-message i {
    margin-right: 10px;
    font-size: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.welcome-message.show {
    display: block !important;
    animation: welcomeSlideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards, 
               welcomeSlideOut 0.8s 4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes welcomeSlideIn {
    from {
        opacity: 0;
        top: 60px;
        transform: translate(-50%, -30px) scale(0.8);
    }
    to {
        opacity: 1;
        top: 100px;
        transform: translate(-50%, 0) scale(1);
    }
}

@keyframes welcomeSlideOut {
    from {
        opacity: 1;
        top: 100px;
        transform: translate(-50%, 0) scale(1);
    }
    to {
        opacity: 0;
        top: 60px;
        transform: translate(-50%, -30px) scale(0.8);
    }
}

/* Reszponzív beállítások a bejelentkezési üzenethez */
@media screen and (max-width: 768px) {
    .welcome-message {
        font-size: 16px !important;
        padding: 15px 25px !important;
        top: 140px !important; /* Mobil nézetben még magasabb pozíció */
        width: calc(100% - 20px) !important;
        max-width: none !important;
    }

    .welcome-message.show {
        animation: welcomeSlideInMobile 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards, 
                   welcomeSlideOutMobile 0.8s 4s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
    }

    @keyframes welcomeSlideInMobile {
        from {
            opacity: 0;
            top: 100px;
            transform: translate(-50%, -30px) scale(0.8);
        }
        to {
            opacity: 1;
            top: 140px;
            transform: translate(-50%, 0) scale(1);
        }
    }

    @keyframes welcomeSlideOutMobile {
        from {
            opacity: 1;
            top: 140px;
            transform: translate(-50%, 0) scale(1);
        }
        to {
            opacity: 0;
            top: 100px;
            transform: translate(-50%, -30px) scale(0.8);
        }
    }
}

@media screen and (max-width: 480px) {
    .welcome-message {
        font-size: 14px !important;
        padding: 12px 20px !important;
        top: 120px !important;
    }

    .welcome-message i {
        font-size: 16px !important;
        margin-right: 8px !important;
    }
}

/* Modern menü és meglévő rendszer együttműködése */
.modern-menu-container {
    margin-bottom: 15px;
}

/* Submenu modernizálás */
#s5_sub_menu {
    background: #f8f9fa;
    border-radius: 8px;
    margin: 10px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

#s5_sub_menu .submenu-title {
    background: linear-gradient(135deg, #ff6600 0%, #ff8800 100%);
    color: white;
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

#s5_sub_menu .submenu-title:hover {
    background: linear-gradient(135deg, #ff8800 0%, #ffaa00 100%);
    transform: translateY(-1px);
}

#s5_sub_menu .submenu-content {
    padding: 15px;
    background: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

#s5_sub_menu .submenu-content.active {
    max-height: 500px;
    padding: 15px;
}

/* Breadcrumb javítás */
#kovetosav {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    font-size: 14px;
    font-weight: 500;
    margin: 10px 0;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #ff6600;
}

#kovetosav li {
    margin-right: 8px;
    position: relative;
}

#kovetosav li::after {
    content: '>';
    margin-left: 8px;
    color: #ff6600;
    font-weight: bold;
}

#kovetosav li:last-child::after {
    display: none;
}

#kovetosav a {
    color: #495057;
    text-decoration: none;
    transition: color 0.3s ease;
}

#kovetosav a:hover {
    color: #ff6600;
    text-decoration: underline;
}

/* Chat gomb javítások */
#chatButton {
    box-shadow: 0 8px 25px rgba(255, 218, 159, 0.4) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#chatButton:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 12px 35px rgba(255, 218, 159, 0.6) !important;
}

/* Általános javítások */
.resp-main-menu-bar {
    margin-bottom: 20px;
}

/* Loading állapot */
.menu-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    background: linear-gradient(135deg, #ff6600 0%, #ff8800 100%);
    border-radius: 8px;
    margin: 10px 0;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility javítások */
.menu-item > a:focus,
.menu-item > span:focus {
    outline: 3px solid #0066cc !important;
    outline-offset: 2px !important;
}

/* Print stílusok */
@media print {
    .welcome-message,
    .modern-menu-container,
    #chatButton {
        display: none !important;
    }
}

/* Performance optimalizálások */
.modern-menu-container,
.welcome-message {
    will-change: transform, opacity;
}

/* Dark mode támogatás */
@media (prefers-color-scheme: dark) {
    #s5_sub_menu .submenu-content {
        background: #2c2c2c;
        color: white;
    }
    
    #kovetosav {
        background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
        color: white;
    }
    
    #kovetosav a {
        color: #e9ecef;
    }
}

/* Reduced motion támogatás */
@media (prefers-reduced-motion: reduce) {
    .welcome-message,
    .modern-menu-container *,
    #chatButton {
        animation: none !important;
        transition: none !important;
    }
} 