/* ========================================
   KÖZÖS KOMPONENSEK - NE DUPLIKÁLJ!
   ========================================
   Ez a fájl tartalmazza az összes közös CSS komponenst,
   amit több oldalon is használunk. 
   ======================================== */

/* ========== NOTIFICATION SYSTEM ========== */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 500px;
}

.notification {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    margin-bottom: 15px;
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    border-left: 4px solid;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.success {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, #e8f5e8 100%);
}

.notification.error {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #fff8f8 0%, #ffe8e8 100%);
}

.notification.info {
    border-left-color: #17a2b8;
    background: linear-gradient(135deg, #f8fbff 0%, #e8f4ff 100%);
}

.notification-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.notification.success .notification-icon {
    color: #28a745;
}

.notification.error .notification-icon {
    color: #dc3545;
}

.notification.info .notification-icon {
    color: #17a2b8;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
    color: #2c3e50;
}

.notification-message {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.4;
    word-wrap: break-word;
    white-space: normal;
    overflow-wrap: break-word;
}

.notification-close {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #2c3e50;
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    width: 100%;
}

.notification-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    width: 100%;
    transition: width 0.1s linear;
}

.notification.error .notification-progress-bar {
    background: linear-gradient(90deg, #dc3545, #e74c3c);
}

.notification.info .notification-progress-bar {
    background: linear-gradient(90deg, #17a2b8, #3498db);
}

/* Notification animations */
.notification.slide-in {
    animation: slideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.notification.slide-out {
    animation: slideOut 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideIn {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Notification responsive */
@media (max-width: 768px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification {
        padding: 14px 16px;
        min-width: 0;
        max-width: none;
    }
    
    .notification-title {
        font-size: 13px;
    }
    
    .notification-message {
        font-size: 12px;
    }
}

/* ========== MODAL STYLES ========== */
.modern-modal {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-modal.show {
    opacity: 1;
    visibility: visible;
}

.modern-modal-content {
    transform: translate(-50%, -50%) scale(0.8);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modern-modal.show .modern-modal-content {
    transform: translate(-50%, -50%) scale(1);
}

/* Modal Animations */
@keyframes modalSlideIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) translateY(0);
    }
}

@keyframes modalFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* ========== DROPDOWN MENU ========== */
.dropdown-menu {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px;
    border: none;
}

.dropdown-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown-menu li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f1f1;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu .dropdown-item {
    display: block;
    padding: 8px 20px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #f8f8f8;
}

/* ========== RAINBOW TEXT ANIMATION ========== */
.rainbow-text a {
    background: linear-gradient(90deg, red, orange, yellow, green, blue, indigo, violet, red);
    background-size: 400%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rainbow-animation 10s linear infinite;
}

@keyframes rainbow-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ========== UTILITY CLASSES ========== */
.balance {
    font-weight: bold;
}

/* ========== CART VISIBILITY (RESPONSIVE NAV) ========== */
/* Desktop: hide cart in responsive nav */
@media only screen and (min-width: 991px) {
    #responsive-nav .cart-menu-item {
        display: none !important;
    }
}

/* Mobile/Tablet: hide main cart icon */
@media only screen and (max-width: 991px) {
    .header-ctn .fa-shopping-cart {
        display: none !important;
    }
    .header-ctn .dropdown .qty {
        display: none !important;
    }
    .header-ctn .dropdown .fa-shopping-cart + span {
        display: none !important;
    }
    .header-ctn .cart-dropdown {
        display: none !important;
    }
}

@media only screen and (max-width: 768px) {
    .header-ctn .fa-shopping-cart {
        display: none !important;
    }
    .header-ctn .dropdown .qty {
        display: none !important;
    }
    .header-ctn .dropdown .fa-shopping-cart + span {
        display: none !important;
    }
    .header-ctn .cart-dropdown {
        display: none !important;
    }
}

@media only screen and (max-width: 480px) {
    .header-ctn .fa-shopping-cart {
        display: none !important;
    }
    .header-ctn .dropdown .qty {
        display: none !important;
    }
    .header-ctn .dropdown .fa-shopping-cart + span {
        display: none !important;
    }
    .header-ctn .cart-dropdown {
        display: none !important;
    }
}

/* ========== FOOTER PAYMENT STYLES ========== */
.footer-payments {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.footer-payments img {
    margin: 0 10px;
    filter: grayscale(0%);
    width: 80px;
    height: 50px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.footer-payments img:hover {
    transform: scale(1.1);
}

