/* menu.css - Custom styling for immersive social menu (Vanilla JS translation) */

:root {
    --brand-gold: #d8a47f;
    --brand-dark: #121212;
    --brand-navy: #001f3f;
    --brand-teal: #17a2b8;
    --brand-charcoal: #333333;
    --brand-cream: #f9f9f9;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--brand-cream);
    color: var(--brand-navy);
}

.font-outfit {
    font-family: 'Outfit', sans-serif;
}

.font-playfair {
    font-family: 'Playfair Display', serif;
}

/* Base custom scrollbar */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Glassmorphism */
.glass-drawer {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(245, 242, 235, 0.45) !important;
}

.glass-pill {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 31, 63, 0.1); /* Navy sutil */
}

/* Animaciones */
.action-btn {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.action-btn:active {
    transform: scale(0.85);
}

.like-btn.liked {
    color: #ff3b30;
    animation: pulse-heart 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pulse-heart {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Slide-Up Tray Animación */
.menu-tray {
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.8s ease-out;
}

.active-tray {
    transform: translateY(0);
    opacity: 1;
}

/* Mejoras de Contraste Tipográfico */
.text-editorial-shadow {
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.text-shadow-custom {
    text-shadow: 0px 2px 4px rgba(0,0,0,0.5) !important;
    color: #fff !important; /* Ensure the text is visible against the shadow/background */
}
.text-shadow-custom h1, .text-shadow-custom p {
    color: #fff !important; 
}

/* Ajuste específico para párrafos sutiles y legibilidad de descripciones */
.desc-text {
    color: #2C3E50 !important; /* Gris frío / Carbón azulado */
    font-weight: 500 !important; /* Grueso para lectura */
    text-shadow: 0px 1px 2px rgba(255, 255, 255, 0.9); /* Reflejo de luz sutil para separarlo del fondo */
}

/* Loading animations */
.loader-ring {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(0, 31, 63, 0.2);
    border-radius: 50%;
    border-top-color: var(--brand-navy);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Logo Setup */
.main-logo {
    display: block;
    margin: 0 auto;
    max-width: 180px;
    height: auto;
}

/* Mobile Background Override */
.mobile-glass-container {
    background-color: var(--brand-cream);
}

@media (max-width: 768px) {
    body {
        background-color: transparent !important;
    }
    
    .mobile-glass-container {
        background: transparent !important;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

/* Fallbacks for requested class names to ensure transparency */
.menu-tray, .glass-panel, .product-list, .menu-category, .product-card, .page-container, .category-card-container {
    background: rgba(245, 242, 235, 0.45) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.hero-image {
    display: block !important;
    width: 100%;
    height: auto;
    max-height: 35vh;
    object-fit: cover;
}
