/* Footer Styles - Save this in Layout/css/footer.css */

.main-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 10px 0;
    border-top: 1px solid #e0e0e0;
    padding-bottom: env(safe-area-inset-bottom, 10px); /* Add safe area for notched phones */
}

.footer-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    padding: 5px 0px;
    transition: all 0.3s ease;
}

.footer-item:hover {
    color: #e74c3c; /* GASTRO red color */
    transform: translateY(-3px);
}

.footer-item i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.footer-item span {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Active footer item */
.footer-item.active {
    color: #e74c3c;
    position: relative;
}


/* RTL support for footer */
html[dir="rtl"] .footer-item i {
    transform: scaleX(-1);
}

/* Adjustments for small screens */
@media (max-width: 380px) {
    .footer-item i {
        font-size: 1.2rem;
    }
    
    .footer-item span {
        font-size: 0.7rem;
    }
}


/* Special styling for offers button when active offers exist */
.footer-item.has-offers {
    color: #e74c3c;
    position: relative;
    animation: pulse 2s infinite;
}

.footer-item.has-offers i {
    color: #e74c3c;
}

/* Pulse animation for the offers button */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

/* RTL support for offers badge */
html[dir="rtl"] .offers-badge {
    right: auto;
    left: -5px;
}

/* Additional hover effect for offers button with active offers */
.footer-item.has-offers:hover {
    transform: translateY(-5px);
    color: #c0392b;
}

/* ===== Language Slide-Up Panel ===== */
.language-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    visibility: hidden;
}

.language-panel.open {
    pointer-events: auto;
    visibility: visible;
}

.language-panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
}

.language-panel.open .language-panel-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.language-panel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 60vh;
    overflow-y: auto;
    padding-bottom: env(safe-area-inset-bottom, 10px);
}

.language-panel.open .language-panel-content {
    transform: translateY(0);
}

.language-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px 12px;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
}

.language-panel-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #999;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.language-panel-close:hover {
    color: #333;
}

.language-panel-list {
    padding: 10px 15px 20px;
}

.lang-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    margin-bottom: 6px;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.lang-option:hover {
    background: #f5f5f5;
    color: #333;
}

.lang-option.active {
    background: #e74c3c;
    color: #ffffff;
    border-color: #e74c3c;
    font-weight: 700;
}

.lang-option.active i {
    color: #ffffff;
}

.lang-option i {
    font-size: 0.9rem;
}
