/**
 * Estilos para el Menú de Navegación Frontend
 */

/* Contenedor principal del menú */
.category-navigation-wrapper {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #155728;
    border-radius: 12px;
    padding: 10px;
    max-width: 1400px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(21, 87, 40, 0.3);
    position: relative;
    overflow: hidden;
}

/* Contenedor con control de navegación */
.navigation-container {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

/* Botones de navegación */
.nav-button {
    background: rgba(255, 255, 255, 0.1) !important;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px !important;
    border-color: transparent !important;
    cursor: pointer;
    display: flex;
    padding: 0px !important;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 10;
}

/* Ocultar botones en tablets y móviles */
@media (max-width: 1024px) {
    .nav-button {
        display: none;
    }
}

.nav-button:hover:not(:disabled) {
    background: #669F30 !important;
    color: #fff !important;
    transform: scale(1.05);
}

.nav-button:disabled {
    opacity: 0.3;
    color: #fff !important;
    cursor: not-allowed;
}

.nav-button svg {
    width: 12px;
    height: 20px;
    fill: currentColor;
}

/* Contenedor de categorías con scroll */
.categories-scroll-container {
    overflow: hidden;
    flex: 1;
    position: relative;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.categories-scroll-container:active {
    cursor: grabbing;
}

/* Indicador visual de scroll en móviles */
@media (max-width: 1024px) {
    .categories-scroll-container::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 40px;
        background: linear-gradient(to left, #155728, transparent);
        pointer-events: none;
        opacity: 0.7;
    }
}

.categories-wrapper {
    display: flex;
    gap: 15px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 5px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Cada categoría individual */
.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    text-decoration: none !important;
    color: white !important;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.category-item:hover {
    background: #669F30;
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 20px rgba(102, 159, 48, 0.4);
    color: white;
}

/* Icono SVG de la categoría */
.category-icon {
    width: 80px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.category-item:hover .category-icon {
    transform: scale(1.05);
}

.category-icon img,
.category-icon svg {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Texto de la categoría */
.category-name {
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    max-width: 100px;
    line-height: 1.3;
}

/* Responsive para tablets */
@media (max-width: 768px) {
    .category-item {
        min-width: 100px;
        padding: 10px 8px;
    }

    .category-icon {
        width: 60px;
        height: 36px;
    }

    .category-name {
        font-size: 11px;
    }

    .nav-button {
        width: 36px;
        height: 36px;
    }
}

/* Responsive para móviles */
@media (max-width: 480px) {
    .category-navigation-wrapper {
        padding: 15px 5px;
    }

    .navigation-container {
        gap: 5px;
    }

    .category-item {
        min-width: 85px;
        padding: 10px 5px;
        gap: 6px;
    }

    .category-icon {
        width: 50px;
        height: 32px;
    }

    .category-name {
        font-size: 10px;
        max-width: 75px;
    }

    .nav-button {
        width: 32px;
        height: 32px;
    }
}